ui-leaflet
ui-leaflet copied to clipboard
Integrate Nominating
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
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?
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?
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?
From @razvansr on May 19, 2015 13:52
Hi guys, Is this feature still planned for a future release?
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.
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.