Python: generate distance matrix for large number of locations

Published: 9/10/2019
Python: generate distance matrix for large number of locations
Source: STACKOVERFLOW.COM

I want to generate a distance matrix 500X500 based on latitude and longitude of 500 locations, using Haversine formula. Here is the sample data "coordinate.csv" for 10 locations: Name,Latitude,Longitude depot1,35.492807,139.6681689 depot2,33.6625572,130.4096027 depot3,35.6159881,139.7805445 customer1,35.622632,139.732631 customer2,35.857287,139.821461 customer3,35.955313,139.615387 customer4,35.

Read more
Related news
Comment
FACEBOOK