Primary competition visual

Sendy Logistics Challenge

Helping Kenya
$7 000 USD
Completed (over 6 years ago)
Prediction
2180 joined
448 active
Starti
Aug 23, 19
Closei
Nov 25, 19
Reveali
Nov 26, 19
ArcGIS api outputs wrong distance
Data ยท 10 Nov 2019, 14:35 ยท 3

I tried to use ArcGIS to get travel distance between two points as described here: https://developers.arcgis.com/python/guide/performing-route-analyses/

I took 'Pickup Lat', 'Pickup Long','Destination Lat', 'Destination Long' from train data set with index 38:

'-1.3331402,36.8925275; -1.3793096000000002,36.931042100000006'

The output of ArcGIS api for 'Total_Kilometers' is; 2.5671758892202243

While actual distance is train[['Distance (KM)']].iloc[38]: 9

I also checked on Google Maps the distance is 8.0 kms:

https://www.google.com/maps/dir/-1.3331402,36.8925275/'-1.3793096000000002,36.931042100000006'/

Discussion 3 answers

It’s longitude before latitude. Just change the order

10 Nov 2019, 16:09
Upvotes 0

Thank you, thierno, now it's correct

10 Nov 2019, 19:48
Upvotes 0

Hi Sandm,

I tried to use the link you provided to get the distance between points using ArcGIS, but getting error "User does not have permissions to access 'world/route.mapserver'. "

Did you face this issue or do you have any idea how to solve this?? Thanks in advance

11 Nov 2019, 21:05
Upvotes 0