Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Supported vehicle types in "info" endpoint #43

Open
fbonzon opened this issue Oct 17, 2016 · 1 comment
Open

Supported vehicle types in "info" endpoint #43

fbonzon opened this issue Oct 17, 2016 · 1 comment

Comments

@fbonzon
Copy link

fbonzon commented Oct 17, 2016

It would be nice to know, before sending a routing request to the API, what vehicle types are allowed with our API key. Some GraphHopper account types don't have access to all vehicle types, e.g. free accounts have access only to car, foot and bike.

Currently, there is no way to programmatically know if, say, mtb vehicle will be allowed, other than issuing a routing API call and check if it returns an error or not.

From the documentation:

features A json object per supported vehicles with name and supported features like elevation

It is not clear if "supported" refers to the API system itself, or to my specific key used to call the info endpoint.

Currently, all vehicle types supported by the API are returned, regardless of the given API key.

Expected:
Either only vehicle types supported by the key are returned.
Or a new key is created and returned, telling about allowed vehicles types for the given key.

In all cases, the documentation should be updated and made clear.

@fbonzon fbonzon changed the title Supported vehicle types in API "info" endpoint Supported vehicle types in "info" endpoint Oct 17, 2016
@karussell
Copy link
Member

karussell commented Oct 19, 2016

Yes, this would be nice to have. But since the changes to our package structure were negligible in the last 2 years, this is not a top priority for us. Same applies to #42

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

No branches or pull requests

2 participants