I have problem in option allToAll. in routeMatrix

4 posts / 0 new
Last post
BalajiKasiraj
I have problem in option allToAll. in routeMatrix

HI, 

We have 25 unique location (Latitude, Longitude). We just pass these 25 locations to MAPQuest API (Route Matrix) with the AlltoAll option as true. It returns result but few of the locations having the distance and time as 0. When we have passed these two locations alone it returns the output. 

I have attached these two url query as text file, please run this and check the results. I have attached the screen shot as well. 

Why the API returns the distance and time as 0? But the two locations alone has provided the correct result. 

25 Location in one Batch 

http://www.mapquestapi.com/directions/v2/routematrix?key=[Your-Query]&fo...
<route>
<locations><location>40.332196,-76.423451</location><location>40.271665,-76.883778</location>
<location>40.437351,-75.968393</location><location>40.157709,-76.307489</location><location>40.062803,-76.546504</location>
<location>40.24,-76.983637</location><location>40.245853,-77.000345</location><location>40.248,-77.02828</location>
<location>40.155178,-76.993117</location><location>40.200929,-76.967184</location><location>39.813202,-77.886243</location>
<location>40.163583,-76.718045</location><location>40.17839,-77.40281</location><location>39.939967,-75.907421</location>
<location>40.325823,-75.835363</location><location>39.77754,-77.66812</location><location>44.765186,-93.479247</location>
<location>40.04845,-77.49111</location><location>40.78444,-77.84512</location><location>40.779223,-76.68289</location>
<location>40.053119,-76.243197</location><location>40.271781,-76.847929</location><location>40.053946,-76.297425</location>
<location>40.060574,-76.306423</location><location>40.067895,-76.316114</location>
</locations><options><allToAll>True</allToAll></options></route>

Just two location in one Batch 

http://www.mapquestapi.com/directions/v2/routematrix?key=[Your-Key]&form...
<route><locations><location>44.765186,-93.479247</location><location>40.067895,-76.316114</location>
</locations><options><allToAll>True</allToAll></options></route>

these two location output is differed when we have called these locations along with other 23 location. Please advise

Image Link : http://imgur.com/cj7U9qu

 

 

 

 

 

Thanks 
Balaji

 

 

 

 

 

 

 

 

 

 


MQBrianCoakley
There are several time and
There are several time and distance limitations on the route matrix to keep the service available and responsive to all users. Lifting these limitations would render the service unusable as some requests would take significant resources to fulfil.

Balaji.K
Do you have any workaround to

Do you have any workaround to resolve the issue ? Please let us know?

Thanks 

Balaji K

 


MQBrianCoakley
No, the limits are in place
No, the limits are in place to conserve resources to keep the service usable for all users. You may need to make multiple requests to the service.