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

Cannot request green or noise extra info #688

Closed
rabidllama opened this issue Mar 26, 2020 · 0 comments · Fixed by #689
Closed

Cannot request green or noise extra info #688

rabidllama opened this issue Mar 26, 2020 · 0 comments · Fixed by #689
Milestone

Comments

@rabidllama
Copy link
Contributor

rabidllama commented Mar 26, 2020

Here's what I did

Requested a pedestrian route with green and/or noise selected as extra info

url:
https://api.openrouteservice.org/v2/directions/foot-walking/json?api_key=xxx
body:

{
    "preference": "fastest",
    "elevation": true,
    "coordinates": [
        [
            8.683276,
            49.413654
        ],
        [
            8.690014,
            49.402484
        ]
    ],
    "extra_info": [
        "noise"
    ]
}

Here's what I got

An error saying that the extra_info parameter is incorrect.


Here's what I was expecting

To get extra info relating to green and noise


Here's what I think could be improved

It seems the problem lies in there not being the green and noise values added as enum values for ExtraInfo in api/requests/common/APIEnums. Adding them there should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants