[Geocoding] Reverse Geocoding to get road type information

Marc Tobias mtm at opencagedata.com
Wed Mar 9 13:20:16 UTC 2016


Hi Tao,

Adding the &extratags=1 parameter gives you a bit more information
about the found place

http://nominatim.openstreetmap.org/reverse.php?format=json&lat=44.08271035040696&lon=24.371495246887207&extratags=1

http://www.openstreetmap.org/way/221190121

The most interesting tag 'highway=primary' is missing from the
output though. It is stored in the Nominatim database and shown
on the detail.php page.

# select class,type from placex where osm_type='W' and osm_id=221190121;
   class  |  type
---------+---------
  highway | primary

Can you add an issue/request to
https://github.com/twain47/Nominatim/issues
so we can see if we can add it to the next release?


marc tobias




More information about the Geocoding mailing list