ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

Integrate Nominating

Open nmccready opened this issue 8 years ago • 5 comments

From @stefan-niedermann on January 28, 2015 12:24

Is a Integration of OSM Nominating Service planned?

http://wiki.openstreetmap.org/wiki/Nominatim

As a User i want to be able to pass e.g. a city name instead of coordinates to display a marker.

Copied from original issue: tombatossals/angular-leaflet-directive#622

nmccready avatar Oct 29 '15 16:10 nmccready

From @tombatossals on January 29, 2015 11:46

Hi @stefan-niedermann , that's a really interesting feature, I'm going to take a look at integrate it.

How is your idea of using it? We could, for example, define the nominatim server as a default (overridable)

defaults: {
    ...
    nominatim: {
        server: ' http://nominatim.openstreetmap.org/reverse'
    }
}

And the center attribute of the directive could take care of "name" instead of lat/lng parameters:

    center: {
        name: "221B Baker Street, London, UK"
    }

Does this seems acceptable to you? Do you have another idea?

nmccready avatar Oct 29 '15 16:10 nmccready

From @stefan-niedermann on January 29, 2015 19:14

And the center attribute of the directive could take care of "name" instead of lat/lng parameters

sounds great! What i imagined: Use search api (https://nominatim.openstreetmap.org/search?) to get lat and lng. eg a user could define a marker or center map like this:

center: {
    address: {
        street: <housenumber> <streetname>
        city: <city>
        county: <county>
        state: <state>
        country: <country>
        postalcode: <postalcode>
    }
}

so give the user more alternatives: 1.) lat / lng 2.) name (query a string in a unknown format using reverse api) 3.) address (query an address by detailed information using search api)

but what if a user puts multiple of these solutions which are in conflict to each other?

nmccready avatar Oct 29 '15 16:10 nmccready

From @razvansr on May 19, 2015 13:52

Hi guys, Is this feature still planned for a future release?

nmccready avatar Oct 29 '15 16:10 nmccready

From @tombatossals on July 4, 2015 17:1

Hi, I have integrated the Nominatim with the "bounds" property. This will be merged soon if the rest of developers consider it interesting. We could think about adding this feature with the "center" property too.

nmccready avatar Oct 29 '15 16:10 nmccready

Hi @nmccready , Currently the default nominatim search url is over http. nominatim: { server: ' http://nominatim.openstreetmap.org/search' }. There should be a provision to override this url in the defaults property to make this call over https instead of http.

sachin8080 avatar May 27 '19 05:05 sachin8080