Newbie question

Hello, very new to openrouteservice, but familiar with the openstreetmap project. Am trying to understand the service, I was able to create token and generate API key, I went to the API Playground and plugged in coordinates I got from then click ‘Call Action’. I got the following response:

-“error”: {
“message”: “Could not find point 0: 14.4234100 121.0311700 within a radius of 350.0 meters.”
-“info”: {
-“engine”: {
“version”: “6.1.1”,
“timestamp”: 1592646145682}

Here are the points 14.42341,121.03117 and 14.43059,121.01534

What is the correct way to use this?

[lon, lat], not [lat, lon]. Didn’t come up in a while…

1 Like

and also please read hints:

Ouch!. Ok, got it.

I did say I was a newbie, but you did not have to be sarcastic about it. It would have been more helpful, if you just explained to me my mistake and correct it. You do know, the answer is not obvious, the error was vague without indicating why the error occurred, this is why I asked for help.

The hint your referring to is in the forums, it might have been logical and helpful to place that piece of information in the API Playground info for other newbies like me.

Also, being the project was using data from OpenStreetMap, it would have been logical to assume that I could just copy and paste coordinates from OpenStreetMap.

Sorry, i didn’t mean to offend you.

I know this is your first post, so this wasn’t the best greeting :sweat_smile:.

But please be sure to read and search before posting in general.
We try to make sure you encounter information before you have to post.
We put these templates in place and put the lat lon issue as first point exactly because a lot of people are asking about it.

Some people just tend to post without even looking at any documentation or searching the forum which just kind of renders the purpose of a forum useless. If you are not one of them: Sorry again.

In the defense of the Playground: If you click the ? (Help) Icon for the coordinates parameter, it states the order longitude,latitude as well.

If you want to copy coordinates from a map, try our client.
Leftclick on the map and a little popup in the bottom right corner let’s you copy coordinates both ways.

Best regards

Don’t get it… Who was being sarcastic? If I were you, I’d be happy that someone on a free forum, for a free and open, pretty extensive software, solves your little problem on a Saturday. Humility is a virtue.

Hello, Amandus and Nils, thank you for responding and helping me out. I am not out to pick a fight, (I don’t think we all have time for that) and I am really very grateful that you were able to point me in the right direction. But to be honest, the answer was very obvious for both of you but was not for me. I did try to search in both forum and in the main site, but I just couldn’t find an answer, this was the reason I finally went to the forums to ask.

I honestly did check those ? (Help) but it did not mention longtitude, latitude, maybe someone forgot to place it back on an upgrade (?). I placed an image of the popup being shown as of this minute, maybe it can be corrected.

In any case, thank you both of you, I am still trying to understand, but it is now one step clearer for me.


My apologies, you were indeed correct!
For the GET directions endpoint it doesn’t state the correct order :confused:
I will open an issue.

If you want to use the full potential of the API, you should use the POST endpoints.
The GET endpoint is for simple queries only.

best regards

No worries. Must have been overlooked, glad it will be corrected.

In any case, I am just figuring it out and testing the waters, simpler is better. I’ll review POST also, now that I got GET working.