How to find 4000 unique latitudes , longitude duration and distance.(using allToAll option in Route Matrix)

2 posts / 0 new
Last post
BalajiKasiraj
How to find 4000 unique latitudes , longitude duration and distance.(using allToAll option in Route Matrix)

Hi, 
We have 4000 unique latitudes and longitudes in our table. We need output for AlltoAll options, if we cross join this location we will get 1600000 unique sources and destination locations. As per alltoAll option, we can send 25 locations per request. If we pass another 25 location it might have duplicate, how do we pass this to API for calculating distance and duration for all the 4000 location (AlltoAll) wit out duplicate calls.

 

Thanks

Balaji K


MQBrianCoakley
That depends on how you want
That depends on how you want to do it. Location x to z will get duplicated as location z to x. But the reverse route may be different depending on traffic patterns. But if reverse routes are not considered then if there are 4000 locations then each location needs fewer and fewer comparisons to remaining locations. The matrix does not handle this internally and we have no sample code for it, but the code may be able to reduce requests in this method.   vwxyz vw,vw,vy,vz wx,wy,wz xy,xz yz   You can contact an account manager using the Contact Us link in the upper right to get help putting this together.