How to use longitude & latitude to show navigation route with indications turn-by-turn?

2 posts / 0 new
Last post
a.soria
How to use longitude & latitude to show navigation route with indications turn-by-turn?

Hello,

I am trying to do a turn-by-turn navigation using longitude and latitude on mapquest API using https://open.mapquestapi.com/guidance/v2/route?key=KEY&from=42.23547%2C-... but app didn't  shows the nav, only a message:

{"guidance" : {"info" : {"statuscode" : 400; "copyright" : {imageAltText" : 2018 MapQuest,Inc.","imageURL" : "http://api.mqcdn.com/res/logo/mqlogo.gif","text" : 2018 MapQuest, Inc."},"messages" : [We are unable to route with the given locations."]}}}

How can I use longitude and latitude?

When I try to run with a city names (https://open.mapquestapi.com/guidance/v2/route?key=KEY&from=Barcelona&to...), MapQuest runs and shows a json message with turn-by-turn indications, but not a route map.

What is wrong? Anybody helps me?

Thank You.

 

 


MQBrianCoakley
The destination in the
The destination in the request is in the ocean. The lat,lng format is correct if you use valid routable values like https://open.mapquestapi.com/guidance/v2/route?key=KEY&from=42.23211,-5....