Appearance
Routing Options
For advanced options formatted as json object. For structure refer to the examples. The available parameters are:
avoid_features: array of features to avoid. The available features are :Feature Available for highwaysdriving-* tollwaysdriving-* ferriesdriving-*, cycling-*, foot-*, wheelchair fordsdriving-*, cycling-*, foot-* stepscycling-*, foot-*, wheelchair avoid_borders:"all"for no border crossing."controlled"to cross open borders but avoid controlled ones. Only fordriving-*profiles.avoid_countries: array of country ids to exclude from routing withdriving-*profiles. Can be used together with"avoid_borders": "controlled"."[11,193]"would exclude Austria and Switzerland. List of countries and application examples can be found in the country list.vehicle_type(forprofile=driving-hgvonly):hgv,bus,agricultural,delivery,forestryandgoods. It is needed for vehicle restrictions to work.profile_params: Specifies additional routing parameters.weightings: Weightings will prioritize specified factors over the shortest path.steepness_difficulty: Specifies the fitness level forcycling-*profiles.level:0= Novice,1= Moderate,2= Amateur,3= Pro. The prefered gradient increases with level
green: Specifies the Green factor forfoot-*profiles.factor: Values range from0to1.0equals normal routing.1will prefer ways through green areas over a shorter route.
quiet: Specifies the Quiet factor forfoot-*profiles.factor: Values range from0to1.0equals normal routing.1will prefer quiet ways over a shorter route.
restrictions: Specifies restrictions fordriving-hgv,wheelchairorcycling-*profiles.for
cycling-*:Parameter Description gradientOnly for avoided hillsor specifiedsteepness_difficulty. Specifies the maximum route steepness in percent. Values range from1to15. Routes with a higher gradient are avoided.for
driving-hgv: (you have to specify thevehicle_typein the options for these parameters)Parameter Description lengthLength restriction in meters. widthWidth restriction in meters. heightHeight restriction in meters. axleloadAxleload restriction in tons. weightWeight restriction in tons. hazmatSpecifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is false. for
wheelchair:Parameter Description surface_typeSpecifies the minimum surface type. Default is "cobblestone:flattened".track_typeSpecifies the minimum grade of the route. Default is "grade1".smoothness_typeSpecifies the minimum smoothness of the route. Default is "good".maximum_sloped_kerbSpecifies the maximum height of the sloped kerb in meters. Values are 0.03,0.06(default),0.1orany.maximum_inclineSpecifies the maximum incline as a percentage. 3,6(default),10,15orany.minimum_widthSpecifies the minimum width of a road in meters.
avoid_polygons: Comprises areas to be avoided for the route. Formatted as geojson polygon or geojson multipolygon.
URL Encoding
To use the curl command string you have to encode special characters. Values you need are shown in this table:
| Character | { | | | } | " | [ | ] |
|---|---|---|---|---|---|---|
| Encoding | %7B | %7C | %7D | %22 | %5B | %5D |
Sometimes needs to be used for the options object.

