City found into "from" field but not into "to"

2 posts / 0 new
Last post
bulltma
City found into "from" field but not into "to"

Hi,

I am writing to you about a problem with an itinerary.
We are using the api to get directions into our application, but for a specific city (Montpellier, 43.612839,3.876772), we can't get it.

When we call the URL below, we can't get the itinerary :
http://open.mapquestapi.com/directions/v2/route?key=key&stateBoundaryDisplay=false&countryBoundaryDisplay=false&narrativeType=none&maxLinkId=0&outFormat=json&locale=fr_FR&unit=k&shapeFormat=raw&generalize=10&avoids=Limited%20Access&from=42.701488,2.896585&to=43.612839,3.876772,

But when we switch "from" and "to" values, the result is good :
http://open.mapquestapi.com/directions/v2/route?key=key&stateBoundaryDisplay=false&countryBoundaryDisplay=false&narrativeType=none&maxLinkId=0&outFormat=json&locale=fr_FR&unit=k&shapeFormat=raw&generalize=10&avoids=Limited%20Access&from=43.612839,3.876772&to=42.701488,2.896585

Is there an explanation for this behaviour ?

Thank you !


MQDennisClarke
RE: City found into "from" field but not into "to"
The map of Montpellier at 43.612839,3.876772 shows these are the coordinates for a large pedistrian area.  There is a roadway to the south that is used to exit this area; while i have not been to Montpellier, I am thinking that this road is a restricted access (gated) road.  Leaving a restricted area is generally done freely since there is an assumption that you have already been given access if you are departing.  Permission to enter the area is not assumed. I checked some street view images and it seems that the restricted access begins at this point: 43.610597, 3.876556  Using those coordinates as the destination, I was able to complete the route into Montpellier. http://open.mapquestapi.com/directions/v2/route?key=key&stateBoundaryDis...