The GET request is the most simple one: just specify the parameter in the URL and you are done. Can be tried directly in every browser.
643 matches
10 actions
GraphHopper Directions
10 actions
Other/GraphHopper Directions
GET Route Endpoint
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
{
"type": "object",
"properties": {
"algorithm": {
"type": "string",
"enum": [
"round_trip",
"alternative_route"
]
},
"alternative_route.max_paths": {
"type": "integer",
"format": "int32"
},
"alternative_route.max_share_factor": {
"type": "number"
},
"alternative_route.max_weight_factor": {
"type": "number"
},
"avoid": {
"type": "string"
},
"block_area": {
"type": "string"
},
"calc_points": {
"type": "boolean"
},
"ch.disable": {
"type": "boolean"
},
"curbside": {
"type": "array",
"items": {
"type": "string",
"enum": [
"any",
"right",
"left"
]
}
},
"debug": {
"type": "boolean"
},
"details": {
"type": "array",
"items": {
"type": "string"
}
},
"elevation": {
"type": "boolean"
},
"heading": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"heading_penalty": {
"type": "integer",
"format": "int32"
},
"instructions": {
"type": "boolean"
},
"locale": {
"type": "string"
},
"optimize": {
"type": "string"
},
"pass_through": {
"type": "boolean"
},
"point": {
"type": "array",
"items": {
"type": "string"
}
},
"point_hint": {
"type": "array",
"items": {
"type": "string"
}
},
"points_encoded": {
"type": "boolean"
},
"round_trip.distance": {
"type": "integer",
"format": "int32"
},
"round_trip.seed": {
"type": "integer",
"format": "int64"
},
"snap_prevention": {
"type": "array",
"items": {
"type": "string"
}
},
"turn_costs": {
"type": "boolean"
},
"vehicle": {
"type": "string",
"enum": [
"car",
"bike",
"foot",
"hike",
"mtb",
"racingbike",
"scooter",
"truck",
"small_truck"
]
},
"weighting": {
"type": "string"
}
},
"required": [
"point"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
{
"type": "object",
"properties": {
"info": {
"type": "object",
"description": "Additional information for your request",
"properties": {
"copyrights": {
"type": "array",
"description": "Attribution according to our documentation is necessary if no white-label option included.",
"items": {
"type": "string"
}
},
"took": {
"type": "number",
"format": "double"
}
}
},
"paths": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ascend": {
"type": "number",
"format": "double",
"description": "The total ascent, in meters.\n"
},
"bbox": {
"type": "array",
"description": "The bounding box of the route geometry. Format: `[minLon, minLat, maxLon, maxLat]`.\n",
"items": {
"type": "number",
"format": "double"
}
},
"descend": {
"type": "number",
"format": "double",
"description": "The total descent, in meters.\n"
},
"details": {
"type": "object",
"description": "Details, as requested with the `details` parameter. Consider the value `{\"street_name\": [[0,2,\"Frankfurter Straße\"],[2,6,\"Zollweg\"]]}`.\nIn this example, the route uses two streets: The first, Frankfurter Straße, is\nused between `points[0]` and `points[2]`, and the second, Zollweg, between `points[2]` and `points[6]`.\nSee [here](https://discuss.graphhopper.com/t/2539) for discussion.\n"
},
"distance": {
"type": "number",
"format": "double",
"description": "The total distance, in meters. To get this information for one 'leg' please read [this blog post](https://www.graphhopper.com/blog/2019/11/28/routing-api-using-path-details/).\n"
},
"instructions": {
"type": "array",
"description": "The instructions for this route. This feature is under active development, and our instructions can sometimes be misleading,\nso be mindful when using them for navigation.\n",
"items": {
"type": "object",
"properties": {
"distance": {
"type": "number",
"format": "double",
"description": "The distance for this instruction, in meters.\n"
},
"exit_number": {
"type": "integer",
"format": "int32",
"description": "Only available for roundabout instructions (sign is 6). The count of exits at which the route leaves the roundabout.\n"
},
"interval": {
"type": "array",
"description": "Two indices into `points`, referring to the beginning and the end of the segment of the route\nthis instruction refers to.\n",
"items": {
"type": "integer",
"format": "int32"
}
},
"sign": {
"type": "integer",
"format": "int32",
"description": "A number which specifies the sign to show:\n\n| sign | description |\n|---|---|\n|-98| an U-turn without the knowledge if it is a right or left U-turn |\n| -8| a left U-turn |\n| -7| keep left |\n| -6| **not yet used**: leave roundabout |\n| -3| turn sharp left |\n| -2| turn left |\n| -1| turn slight left |\n| 0| continue on street |\n| 1| turn slight right |\n| 2| turn right |\n| 3| turn sharp right |\n| 4| the finish instruction before the last point |\n| 5| the instruction before a via point |\n| 6| the instruction before entering a roundabout |\n| 7| keep right |\n| 8| a right U-turn |\n| *| **For future compatibility** it is important that all clients are able to handle also unknown instruction sign numbers\n"
},
"street_name": {
"type": "string",
"description": "The name of the street to turn onto in order to follow the route.\n"
},
"text": {
"type": "string",
"description": "A description what the user has to do in order to follow the route. The language depends on the locale parameter.\n"
},
"time": {
"type": "integer",
"format": "int32",
"description": "The duration for this instruction, in milliseconds.\n"
},
"turn_angle": {
"type": "number",
"format": "double",
"description": "Only available for roundabout instructions (sign is 6). The radian of the route within the roundabout `0 < r < 2*PI` for clockwise and\n`-2*PI < r < 0` for counterclockwise turns.\n"
}
}
}
},
"points": {
"type": "object"
},
"points_encoded": {
"type": "boolean",
"description": "Whether the `points` and `snapped_waypoints` fields are polyline-encoded strings rather than JSON arrays\nof coordinates. See the field description for more information on the two formats.\n"
},
"points_order": {
"type": "array",
"description": "An array of indices (zero-based), specifiying the order in which the input points are visited.\nOnly present if the `optimize` parameter was used.\n",
"items": {
"type": "integer"
}
},
"snapped_waypoints": {
"type": "object"
},
"time": {
"type": "integer",
"format": "int64",
"description": "The total travel time, in milliseconds. To get this information for one 'leg' please read [this blog post](https://www.graphhopper.com/blog/2019/11/28/routing-api-using-path-details/).\n"
}
}
}
}
}
}