Hello everyone,
Thank you very much for your detailed explanations! I have a similar problem, but it relates to responses for car routing (instructions).
Since cars are always routed on a road, all segments should have a name. This also applies to the example in the API Playground for the Get method:
https://api.openrouteservice.org/v2/directions/driving-car?api_key=apikey&start=8.681495,49.41461&end=8.687872,49.420318
However, when I do the routing for a route that runs on a highway in Germany, I don’t get a name for that highway (e.g.):
Is this a known issue that is being resolved? Thanks in advance!
REQUEST
https://api.openrouteservice.org/v2/directions/driving-car?api_key=apikey&start=7.702345399663591,51.504001383709635&end=7.616470557895012,51.51439055957174
RESPONSE
"properties": {
"segments": [
{
"distance": 9995.8,
"duration": 558,
"steps": [
{
"distance": 241.9,
"duration": 15.8,
"type": 11,
"instruction": "Head north on Iserlohner Straße, B 233",
"name": "Iserlohner Straße, B 233",
"way_points": [
0,
2
]
},
{
"distance": 2198,
"duration": 78.1,
"type": 13,
"instruction": "Keep right onto B 233, L 682",
"name": "B 233, L 682",
"way_points": [
2,
35
]
},
{
"distance": 464.1,
"duration": 59.9,
"type": 13,
"instruction": "Keep right",
"name": "-",
"way_points": [
35,
56
]
},
{
"distance": 6355.1,
"duration": 288.6,
"type": 12,
"instruction": "Keep left",
"name": "-",
"way_points": [
56,
107
]
},
{
"distance": 328.3,
"duration": 29.8,
"type": 13,
"instruction": "Keep right",
"name": "-",
"way_points": [
107,
111
]
},
{
"distance": 130.2,
"duration": 19.1,
"type": 1,
"instruction": "Turn right",
"name": "-",
"way_points": [
111,
115
]
},
{
"distance": 135.9,
"duration": 32.6,
"type": 1,
"instruction": "Turn right onto Wilhelmstraße",
"name": "Wilhelmstraße",
"way_points": [
115,
119
]
},
{
"distance": 71.2,
"duration": 17.1,
"type": 0,
"instruction": "Turn left onto Bertha-Krupp-Straße",
"name": "Bertha-Krupp-Straße",
"way_points": [
119,
121
]
},
{
"distance": 71.1,
"duration": 17.1,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
121,
125
]
},
{
"distance": 0,
"duration": 0,
"type": 10,
"instruction": "Arrive at your destination, straight ahead",
"name": "-",
"way_points": [
125,
125
]
}