Hi,
I need the osmId in directions for the foot-hiking profile. I know it’s normally only available on wheelchair, so I modified my ors-config and added "OsmId": {}
in my ext_storages object for the foot-hiking profile.
Still, the osmId is not returned. Not even a warning message. When I use the public API, I get "
“Extra info requested but not available: osmid”", but when using my own instance, I don’t get anything beyond the route results. It’s making me wonder if my instance somehow doesn’t acknowledge extras at all? I’ve tried with extras that should be included in the profile by default, like “surface”, and still nothing is returned. I’ve even tried building the wheelchair profile only, and still nothing.
Thanks for your help!
Here’s my test query:
POST http://myprivateinstance:8080/ors/v2/directions/foot-hiking
{
"coordinates": [
[
-9.470355,
38.772992
]
],
"extra_info": [
"osmid",
"surface"
],
"options": {
"round_trip": {
"length": 5000,
"points": 3,
"seed": 1
}
}
}
And the result:
{
"routes": [
{
"summary": {
"distance": 6708.6,
"duration": 4830.2
},
"segments": [
{
"distance": 6708.6,
"duration": 4830.2,
"steps": [
{
"distance": 29.7,
"duration": 21.4,
"type": 11,
"instruction": "Head southeast on EN 247",
"name": "EN 247",
"way_points": [
0,
4
]
},
{
"distance": 51.6,
"duration": 37.2,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
4,
7
]
},
{
"distance": 47.5,
"duration": 34.2,
"type": 3,
"instruction": "Turn sharp right",
"name": "-",
"way_points": [
7,
11
]
},
{
"distance": 267.1,
"duration": 192.3,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
11,
21
]
},
{
"distance": 66.6,
"duration": 48.0,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
21,
25
]
},
{
"distance": 506.4,
"duration": 364.6,
"type": 13,
"instruction": "Keep right",
"name": "-",
"way_points": [
25,
53
]
},
{
"distance": 118.1,
"duration": 85.0,
"type": 5,
"instruction": "Turn slight right onto Viúva",
"name": "Viúva",
"way_points": [
53,
57
]
},
{
"distance": 450.4,
"duration": 324.2,
"type": 0,
"instruction": "Turn left onto Viúva",
"name": "Viúva",
"way_points": [
57,
78
]
},
{
"distance": 64.9,
"duration": 46.7,
"type": 13,
"instruction": "Keep right",
"name": "-",
"way_points": [
78,
80
]
},
{
"distance": 168.8,
"duration": 121.5,
"type": 6,
"instruction": "Continue straight",
"name": "-",
"way_points": [
80,
87
]
},
{
"distance": 165.5,
"duration": 119.1,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
87,
98
]
},
{
"distance": 67.3,
"duration": 48.4,
"type": 0,
"instruction": "Turn left onto Turfas (Pt.1)",
"name": "Turfas (Pt.1)",
"way_points": [
98,
104
]
},
{
"distance": 4.4,
"duration": 3.2,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
104,
105
]
},
{
"distance": 187.7,
"duration": 135.2,
"type": 1,
"instruction": "Turn right onto Turfas (Pt.2)",
"name": "Turfas (Pt.2)",
"way_points": [
105,
114
]
},
{
"distance": 52.2,
"duration": 37.5,
"type": 13,
"instruction": "Keep right onto Turfas (Pt.2)",
"name": "Turfas (Pt.2)",
"way_points": [
114,
117
]
},
{
"distance": 603.1,
"duration": 434.3,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
117,
131
]
},
{
"distance": 172.2,
"duration": 124.0,
"type": 4,
"instruction": "Turn slight left",
"name": "-",
"way_points": [
131,
137
]
},
{
"distance": 266.9,
"duration": 192.2,
"type": 13,
"instruction": "Keep right",
"name": "-",
"way_points": [
137,
144
]
},
{
"distance": 209.9,
"duration": 151.1,
"type": 1,
"instruction": "Turn right",
"name": "-",
"way_points": [
144,
147
]
},
{
"distance": 44.0,
"duration": 31.7,
"type": 5,
"instruction": "Turn slight right",
"name": "-",
"way_points": [
147,
149
]
},
{
"distance": 395.8,
"duration": 285.0,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
149,
163
]
},
{
"distance": 51.9,
"duration": 37.4,
"type": 0,
"instruction": "Turn left onto EN 247",
"name": "EN 247",
"way_points": [
163,
165
]
},
{
"distance": 452.6,
"duration": 325.9,
"type": 3,
"instruction": "Turn sharp right",
"name": "-",
"way_points": [
165,
180
]
},
{
"distance": 136.2,
"duration": 98.1,
"type": 2,
"instruction": "Turn sharp left",
"name": "-",
"way_points": [
180,
186
]
},
{
"distance": 195.3,
"duration": 140.6,
"type": 0,
"instruction": "Turn left",
"name": "-",
"way_points": [
186,
191
]
},
{
"distance": 136.6,
"duration": 98.4,
"type": 1,
"instruction": "Turn right onto EN 247",
"name": "EN 247",
"way_points": [
191,
198
]
},
{
"distance": 906.1,
"duration": 652.4,
"type": 6,
"instruction": "Continue straight onto EN 247",
"name": "EN 247",
"way_points": [
198,
222
]
},
{
"distance": 98.3,
"duration": 70.8,
"type": 0,
"instruction": "Turn left onto Caminho do Rio Touro",
"name": "Caminho do Rio Touro",
"way_points": [
222,
228
]
},
{
"distance": 629.4,
"duration": 453.1,
"type": 1,
"instruction": "Turn right onto Caminho do Rio Touro",
"name": "Caminho do Rio Touro",
"way_points": [
228,
248
]
},
{
"distance": 132.6,
"duration": 95.5,
"type": 1,
"instruction": "Turn right",
"name": "-",
"way_points": [
248,
255
]
},
{
"distance": 29.7,
"duration": 21.4,
"type": 2,
"instruction": "Turn sharp left onto EN 247",
"name": "EN 247",
"way_points": [
255,
259
]
},
{
"distance": 0.0,
"duration": 0.0,
"type": 10,
"instruction": "Arrive at EN 247, on the right",
"name": "-",
"way_points": [
259,
259
]
}
]
}
],
"bbox": [
-9.474179,
38.761196,
-9.456079,
38.773642
],
"geometry": "czskFvtxx@??LWNODCCa@RYRg@Jd@JTFFT?Vg@jAyAb@{@j@[f@o@Ti@Ji@CiAGe@HGGMh@{@FS?a@DUFy@@gAFQH_@FCLIRm@\\ENIZe@?]JQlAgA\\q@LIDQ?Qj@c@@o@DM?OBe@CeAHi@Ng@b@_@Vs@`@a@Rc@lAmBFSQg@G{ALWVa@FQR_ABQKe@MYEUMSa@YSAiBJSE]]QWW_@k@]iAy@[c@c@mA[o@Ag@@eAGYo@y@UA[KW}AYDWCYGO?YH[b@Ob@E\\U^SNWDEL[TG?CJi@@KNBFKFQRUd@Eb@I\\MZS`B?j@IvAONa@Ha@RRnATj@`@`@`CpA`@d@z@`AfAvF\\tAT|@`@bAVv@^fCFz@OjAp@vBd@j@JLn@Pt@F^El@Gl@Cd@V`AxBHNLD|DcAX|FRnBDpBMZK`A|AnANTd@b@vAbBTTR^Nf@n@nCb@h@\\PX@`@YLAXXJYXsAFXPLz@OjAP^P|@Hj@Av@W^GfCiAb@OT?l@^\\LjBBAO@SCaBUoB?e@CYoBwAB}AGkBK}@IITWRO`A]ROVg@Je@Bc@Cb@Kd@Wf@SNaA\\SNUVOXY|@e@jDKVKLgHvEqCnA[ZWt@YrAKXkBzBa@`@iBtAWJQ@yACO^MD[@c@Fs@XIFECOAUBm@R[^y@FuAEmBP_ADu@CiAY]Si@o@wAqBMYKa@yAeC_AkBUGODQwBIi@KQ@YEODO?u@EBONMV??",
"way_points": [
0,
259
]
}
],
"bbox": [
-9.474179,
38.761196,
-9.456079,
38.773642
],
"metadata": {
"attribution": "openrouteservice.org, OpenStreetMap contributors",
"service": "routing",
"timestamp": 1682084907948,
"query": {
"coordinates": [
[
-9.470355,
38.772992
]
],
"profile": "foot-hiking",
"format": "json",
"extra_info": [
"osmid",
"surface"
],
"options": {
"round_trip": {
"length": 5000.0,
"points": 3,
"seed": 1
}
}
},
"engine": {
"version": "7.0.1",
"build_date": "2023-03-08T12:06:41Z",
"graph_date": "2023-04-21T13:29:38Z"
}
}
}