LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2016, 06:29 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
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
 
Old 02-15-2016, 10:00 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
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
 
Old 02-15-2016, 10:36 AM   #3
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
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/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where and how to calculate and measure the nodes distance and movement in c++ in NS2 Md Zishan Khan Linux - Networking 0 05-01-2015 12:44 PM
LXer: Cities In Motion & Cities In Motion 2 Released For Linux On Steam LXer Syndicated Linux News 0 01-09-2014 08:32 PM
java - jscience: how can I calculate the distance between two LatLong? eantoranz Programming 3 09-18-2012 04:49 PM
Can I make free long distance VoIP calls with asterisk.org software? abefroman Linux - Software 3 09-05-2005 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration