With this Matrix Endpoint you submit the points and parameters via URL parameters and is the most convenient as it works out-of-the-box in the browser. If possible you should prefer using the that avoids problems with many locations and can also gzip the request. (Note, that all endpoints return gzipped responses).
643 matches
10 actions
GraphHopper Directions
10 actions
Other/GraphHopper Directions
GET Matrix 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
{
"type": "object",
"properties": {
"curbside": {
"type": "array",
"items": {
"type": "string",
"enum": [
"any",
"right",
"left"
]
}
},
"fail_fast": {
"type": "boolean"
},
"from_curbside": {
"type": "array",
"items": {
"type": "string",
"enum": [
"any",
"right",
"left"
]
}
},
"from_point": {
"type": "array",
"items": {
"type": "string"
}
},
"from_point_hint": {
"type": "array",
"items": {
"type": "string"
}
},
"out_array": {
"type": "array",
"items": {
"type": "string"
}
},
"point": {
"type": "array",
"items": {
"type": "string"
}
},
"point_hint": {
"type": "array",
"items": {
"type": "string"
}
},
"snap_prevention": {
"type": "array",
"items": {
"type": "string"
}
},
"to_curbside": {
"type": "array",
"items": {
"type": "string",
"enum": [
"any",
"right",
"left"
]
}
},
"to_point": {
"type": "array",
"items": {
"type": "string"
}
},
"to_point_hint": {
"type": "array",
"items": {
"type": "string"
}
},
"turn_costs": {
"type": "boolean"
},
"vehicle": {
"type": "string",
"enum": [
"car",
"bike",
"foot",
"hike",
"mtb",
"racingbike",
"scooter",
"truck",
"small_truck"
]
}
},
"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
{
"type": "object",
"properties": {
"distances": {
"type": "array",
"description": "The distance matrix for the specified points in the same order as the time matrix. The distances are in meters. If `fail_fast=false` the matrix will contain `null` for connections that could not be found.",
"items": {
"type": "array",
"items": {
"type": "number",
"format": "int64"
}
}
},
"hints": {
"type": "array",
"description": "Optional. Additional response data.",
"items": {
"type": "object",
"properties": {
"details": {
"type": "string",
"description": "Details of this hint"
},
"invalid_from_points": {
"type": "array",
"description": "Optional. An array of from_point indices of points that could not be found. Will only be added if `fail_fast=false` and some `from_point`s were not found.`",
"items": {
"type": "number",
"format": "int32"
}
},
"invalid_to_points": {
"type": "array",
"description": "Optional. An array of to_point indices of points that could not be found. Will only be added if `fail_fast=false` and some `to_point`s were not found.`",
"items": {
"type": "number",
"format": "int32"
}
},
"message": {
"type": "string",
"description": "Short description of this hint"
},
"point_pairs": {
"type": "array",
"description": "Optional. An array of two-element arrays representing the from/to_point indices of points for which no connection could be found. Will only be added if `fail_fast=false` and some connections were not found.",
"items": {
"type": "array",
"items": {
"type": "number",
"format": "int32"
}
}
}
}
}
},
"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"
}
}
},
"times": {
"type": "array",
"description": "The time matrix for the specified points in the order [[from1->to1, from1->to2, ...], [from2->to1, from2->to2, ...], ...]. The times are in seconds. If `fail_fast=false` the matrix will contain `null` for connections that could not be found.",
"items": {
"type": "array",
"items": {
"type": "number",
"format": "int64"
}
}
},
"weights": {
"type": "array",
"description": "The weight matrix for the specified points in the same order as the time matrix. The weights for different vehicles can have a different unit but the weights array is perfectly suited as input for Vehicle Routing Problems as it is currently faster to calculate. If `fail_fast=false` the matrix will contain `null` for connections that could not be found.",
"items": {
"type": "array",
"items": {
"type": "number",
"format": "double"
}
}
}
}
}