Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need to find distance between given two cities  RSS feed

 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to find thedistance between two cities?
I have two names of cities. EX Colombo & Galle
I need to write a programe to show these cities google map and need to draw a line between two cities.Also i need to calculate the distance?
can anyone tell me the way or give me simple example.I search through internet.Still not get good one.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find their latitudes and longitudes. Then implement a calculation which finds the distance between the two lat-long pairs. (That calculation CAN be found on the internet.)
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you tell me how to get longitudes & latitudes of a given citi?
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my class


This is my xml file



Can anyone tell me why it is giving error ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!