Skip to content

Error if no coordinates are found for the given address (OSM Provider in geocoder.js) #26

Description

@loicpascal

If I try to get the coordonates for a given address that not exists in OSM referential, the b.address.house_number returns error because of the undefined b.address.
It try to get house_number on undefined.

It is necessary to return false (or equivalent) when no coordonate are found.

I corrected the mistake by adding if (b.length === 0) { return false; } before returning all values at line 406.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions