osm-analytics icon indicating copy to clipboard operation
osm-analytics copied to clipboard

geocoding: autocomplete for osm search

Open tyrasd opened this issue 10 years ago • 6 comments

Autocomplete should also work for arbitrary region search (like for the hot projects). There are a couple of osm-based search engines (photon, mapzen, mapbox) with autocomplete support, but none of these provides the full geometry of the search results (e.g. an OSM-object-id to fetch the full geometry from). This currently leaves only nominatim, which on the other hand sadly doesn't support autocomplete.

Hints/Ideas for how to tackle this are welcome! :bow:

tyrasd avatar Apr 19 '16 14:04 tyrasd

Maybe it would help if we limit this to administrative boundaries, but that's still much too much data to be simply preloaded like the hot projects list…

tyrasd avatar Apr 19 '16 14:04 tyrasd

osmnames could be an option, although I think they don't directly provide the geometries like nominatim does.

tyrasd avatar Apr 19 '18 12:04 tyrasd

@tyrasd Have you considered running the Pelias API created by Mapzen or even hosted Pelias geocode.earth?

kamicut avatar Apr 19 '18 19:04 kamicut

thanks for the hint, but as far as I can see, it also doesn't return the full geometry of the search results, does it?

tyrasd avatar Apr 20 '18 10:04 tyrasd

Ah, sorry, I misunderstood the problem. Pelias returns the Mapzen whosonfirst id which you could use to return a full geometry, but I don’t know if it’s necessarily OSM. It seems the hosted whosonfirst is shut down though now that I’m looking for it.

kamicut avatar Apr 20 '18 14:04 kamicut

after digging around a bit, I found https://whosonfirst.org/browse/ which seems to be still operational and offer the kind of stuff we would need, for example https://data.whosonfirst.org/101/751/119/101751119.geojson

tyrasd avatar Apr 20 '18 14:04 tyrasd