LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C-coded Software to calculate distance between 2 cities? (https://www.linuxquestions.org/questions/linux-software-2/c-coded-software-to-calculate-distance-between-2-cities-4175572230/)

Xeratul 02-14-2016 06:29 AM

C-coded Software to calculate distance between 2 cities?
 
Hello,

I would like sthg faster than google map.

Is there a csv database to code something like:
http://geobytes.com/citydistancetool/

Example.

I get the lat/long for Paris and Roma from a csv database, and I can code a C programm on ncurses to calc the distance between those 2 cities.

Best regards

cliffordw 02-15-2016 10:00 AM

Hi,

On the same site, look at http://geobytes.com/geoworldmap/. This didn't quite work for me, but I found the data at http://www.geobytes.com/downloads/GeoWorldMap.zip. This contains a cities.txt file with exactly what you asked for ;-)

Regards,

Clifford

cliffordw 02-15-2016 10:36 AM

Some additional sources of data:

- http://download.geonames.org/export/dump/
- https://dev.maxmind.com/geoip/geoip2/geolite2/
- http://www.naturalearthdata.com/down...ulated-places/


All times are GMT -5. The time now is 01:25 AM.