From OpenStreetMap Wiki
Jump to navigation Jump to search


Help (89606) - The Noun Project.svg






OpenStreetMap に格納されている経路探索に使える地物は何でしょうか?

This page gives a guideline to what existing and regularly and consistently used tags should be interpreted for routing and how they are to be interpreted. If any meaning of a tag is added that affects routing then that tag and its meaning shall be added here.



Only ways marked with the key highway=* or junction=*, and areas marked by highway=* and area=yes or type=multipolygon, are a road that a car, bike or pedestrian can navigate on.

When creating routes for motor-vehicles beware for the values "footway", "pedestrian", "steps", "gate", "stile", "cattle_grid", "viaduct" and limit the usage of "ford", "service". Also notice that highway=services does not represent a road.


A way is oneway if and only if it has:


(the tag oneway=no has precedence over highway=motorway)

Roads which are one-way and change direction depending on time (eg: flyover in direction of rush-hour traffic flow) are tagged with oneway=reversible and should probably be treated as no access.


The following tags may contain the name of a street:

  • name=*, "name:<2digit-language-code>", int_name, ...
  • ref=*, "nat_ref", "loc_ref", "int_ref"

See: naming

There is also an external xml-webservice that can do searches for you.


The following tries to give a definite algorithm for resolving +

  • if a location is inside a given city/country/zip-code +
  • what city/country/zip-code a given location is in +

We are trying to cover all currently approved and used taggings for this and rate them in a deterministic order of importance. So you need not search everything to implement your algorithm.


A way is in a city/suburb/zip-code/... if and only if:

  • a) It is individually tagged as is_in=*.
  • c) エリア It is not inside such an area but a node tagged as place=* is inside an area with landuse=* with a value other than "farm", "quarry", "forest" or "water" and the way is inside the combination of that polygon and all intersected or "nearby" polygons of this kind (difficult to implement but a good autotetection.).
  • d) ノード None of these but the nearest point tagged as "place"= is less then XX km away.

For case (d) sensible values are:

  1. is tagged the radius is given by a radius-tag in meters or kilometers.
  2. if not tagged, these are sensible default-values:
Tag Element Radius
place=continent ノード n/a, continents must have borders
place=country ノード n/a, countries must have a defined border-polygon
place=state ノード n/a, states of countries must have a defined border-polygon
place=region ノード 500 km
place=county ノード 200 km
place=city ノード 10 km
place=town ノード 5 km
place=village ノード 1 km
place=hamlet ノード 300 m
place=suburb ノード 300 m
place=island ノード n/a, islands must have a defined coastline-polygon


This topic is currently for debate on the OSM-Dev mailing-list.

The current progress is documented in Tagging Country Borders.


You should limit the expected speed when crossing nodes tagged highway=traffic_signals, highway=stop or barrier=toll_booth as well as traffic_calming=*.


Access restrictions are documented on Key:access, and Conditional restrictions for more advanced cases.

The default access-restrictions for each vehicle- and highway-type are documented in /Access-Restrictions.

To compute access restrictions in the presence both of default values and explicit values, see Computing access restrictions.


Restrictions to prohibit certain kinds of turns at intersections are documented in JA:Relation:restriction.


The default maximum-speed if not given by maxspeed=* is now documented on on this page.


See addr:*=* for details on addresses.

Specialist routing data