Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directions GeoJSON response contains 'fare' and 'transport' properties #1486

Closed
1 task done
TheGreatRefrigerator opened this issue Jun 29, 2023 · 0 comments · Fixed by #1586
Closed
1 task done

Directions GeoJSON response contains 'fare' and 'transport' properties #1486

TheGreatRefrigerator opened this issue Jun 29, 2023 · 0 comments · Fixed by #1586
Labels
api bug 🐞 Erroneous behavior of the backend

Comments

@TheGreatRefrigerator
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Where did you encounter this issue?

live API, self-hosted instance

Request URL

https://api.openrouteservice.org/v2/directions/driving-car/geojson

POST Request Body

{"coordinates":[[8.681495,49.41461],[8.686507,49.41943]]}

Response

Response
{"type":"FeatureCollection","metadata":{"attribution":"openrouteservice.org | OpenStreetMap contributors","service":"routing","timestamp":1688051836562,"query":{"coordinates":[[8.681495,49.41461],[8.686507,49.41943]],"profile":"driving-car","format":"geojson"},"engine":{"version":"7.1.0","build_date":"2023-06-16T03:06:42Z","graph_date":"2023-06-19T18:05:47Z"}},"bbox":[8.681423,49.414599,8.68651,49.41943],"features":[{"bbox":[8.681423,49.414599,8.68651,49.41943],"type":"Feature","properties":{"transfers":0,"fare":0,"segments":[{"distance":891.1,"duration":189.7,"steps":[{"distance":1.8,"duration":0.4,"type":11,"instruction":"Head west on Gerhart-Hauptmann-Straße","name":"Gerhart-Hauptmann-Straße","way_points":[0,1]},{"distance":313.8,"duration":75.3,"type":1,"instruction":"Turn right onto Wielandtstraße","name":"Wielandtstraße","way_points":[1,6]},{"distance":251.7,"duration":36.2,"type":1,"instruction":"Turn right onto Mönchhofstraße","name":"Mönchhofstraße","way_points":[6,10]},{"distance":211.8,"duration":50.8,"type":0,"instruction":"Turn left onto Keplerstraße","name":"Keplerstraße","way_points":[10,13]},{"distance":109.5,"duration":26.3,"type":1,"instruction":"Turn right onto Moltkestraße","name":"Moltkestraße","way_points":[13,14]},{"distance":2.4,"duration":0.6,"type":0,"instruction":"Turn left onto Werderplatz","name":"Werderplatz","way_points":[14,15]},{"distance":0.0,"duration":0.0,"type":10,"instruction":"Arrive at Werderplatz, straight ahead","name":"-","way_points":[15,15]}]}],"way_points":[0,15],"summary":{"distance":891.1,"duration":189.7}},"geometry":{"coordinates":[[8.681495,49.414599],[8.68147,49.414599],[8.681488,49.41465],[8.681423,49.415746],[8.681656,49.41659],[8.681826,49.417081],[8.681881,49.417392],[8.682461,49.417389],[8.682676,49.417387],[8.683595,49.417372],[8.68536,49.417365],[8.685299,49.417726],[8.68503,49.419215],[8.685015,49.419257],[8.68651,49.419413],[8.686507,49.41943]],"type":"LineString"}}]}

Current behavior

The GeoJSON response returns 'fare' and 'transfers' properties.

Expected behavior

'fare' and 'transfers' properties should only be returned for public-transport profile.

Openrouteservice Version

7.1.0

Build date

No response

Graph date

No response

Forum Topic Link

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api bug 🐞 Erroneous behavior of the backend
Projects
No open projects
Status: Awaiting release
Development

Successfully merging a pull request may close this issue.

1 participant