Routing api not given shape points in response.

6 posts / 0 new
Last post
gtl test
Routing api not given shape points in response.

Hi Team,

The following locations not giving route shape points when call the routing webservice

Please find the below  url for your reference.

The following url returning shape object inside the routing results:

http://open.mapquestapi.com/directions/v2/route?key=KEY&outFormat=json&r...

The below Url not given any route shapepoints

URL: https://www.mapquestapi.com/directions/v2/route?key=KEY&from=Hyvinkaa%2C...

 

 

Please look into this why not getting routing shape points for above request?

Iam waiting for your feedback..

Thanks.


MQBrianCoakley
Shape points are not returned
Shape points are not returned by default. Set a shape parameter, like generalize, and you should get back the shape points. 

gtl test
Hi MQBrianCoakley

Hi MQBrianCoakley

Thanks for your update, im not getting the  shapePoints even when passing the shape parameter to api call from our sample application.

please find the below url for your reference.

http://open.mapquestapi.com/directions/v2/route?key=KEY&outFormat=json&r...

Looking for your response thanks....


MQBrianCoakley
When putting my key in that
When putting my key in that request I get the list of raw latLng in route.shape.shapePoints. Are you not seeing that on your side?   {"route":{"hasTollRoad":false,"hasBridge":false,"boundingBox":{"lr":{"lng":121.489662,"lat":31.223855},"ul":{"lng":121.482376,"lat":31.245996}},"distance":3.6532,"shape":{"legIndexes":[0,91],"maneuverIndexes":[0,5,10,16,19,37,57,81,83,85,88,90],"shapePoints":[31.225078,121.488906,31.225078,121.488914..  

gtl test
When putting this url

When putting this url directly in browser, iam getting shape points, but from my application  i make a direction request, this time not getting any shape object from results.  i dont know what happining.

Is there any configaration required?

 


MQBrianCoakley
No, there should not be any
No, there should not be any further configuration required. Are the url values being url encoded? Can you see the request as it's leaving the network to see that the options are set properly?