[GIS] How to obtain road classification type at a point via nominatim

geocodingopenstreetmap

This is my first time posting here so please forgive me if i ask a trivial question. Is there a way of obtaining the type of road an object is settled in from a request via nominatim? (i have the geocoded sample)

For example:
http://nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1

does provide me with loads of info. yet, there is no info on the road the address is settled in. would like to obtain something like: rural road or even just grade*N* (where N stands for the level of hierarchy.) i hope what i'm looking for is understandable 🙂 thanks in advance!

Best Answer

The hierarchy of roads is reflected in OSM by the "highway" field. Possible values in hierarchical order are: motorway, trunk , primary, secondary, tertiary, unclassified, residential, service, track, path

See this wiki pages: http://wiki.openstreetmap.org/wiki/Highway:International_equivalence http://wiki.openstreetmap.org/wiki/Highway_tag_usage

highway=road is default for unknown classification (e.g. if only digitized by aerial photo).

BUT: It is allowed to change highway type in order to reflect the importance for routing purposes.