on-internet
← Community

openrouteservice API - "error": "Authorization field missing"

Stack Overflow ·

I have a project for my university and I need to use openrouteservice API. I registered there and I generate an api-key. At API playground I choose Directions and then I get a basic route between two points with the profile provided. Returned response is in GeoJSON format. This method does not accept any request body or parameters other than profile, start coordinate, and end coordinate. I need to do this in C#, so this is my class where I want to call this API. class OpenRouteServiceCall{ private string \_apiKey = "my_key_number"; private HttpClient _client; private Uri _baseAddress; public O

Comments

Sign in or sign up to comment and upvote.

No comments yet.