I need to be able to map out in coordinates real world cities and then have a method that calculated the distance between two cities that I give it... What would be the best way to do this? just citie object that has coordinates and then ill figure out the fomula for calculating the distance my self or a hash map or something... another thing is how am i gonna figure out the coordinates of the cities? Im talking about real world cities so yeah... i had an idea of getting the latitude and longitude of the cities and then somehow when calculating distance turn it into kilo meters... If anyone can help my if this I would be glad!
Thank you very much! If you need more info just tell me and ill add it.
What I mainly need: A suggestion to based on what map the cities and a lead on implementing distance calculations.. I would not like to check out the distance between each city i make to all the rest online then put it in because it seams to be a lot of work and if i manage to figure out a algorithm then it would be much faster and easier to add cities to the game...