| Author |
Getting distance using Google Maps API
|
Shaahid Vawda
Greenhorn
Joined: Jul 20, 2012
Posts: 4
|
|
Hi I'm a student and I am doing a school project .
I need a way to calculate the distance between two addresses using the google maps API
I've only found ways to do it in javascript ,but I need a way to do it in java
Any suggestions ?
Thanks in advance
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
So why can't you translate the Javascript code into Java code?
I'm assuming you've already used the Google API to convert the addresses to latitude/longitude values; if you have Javascript code to find the distance between two of those, the Java code should be pretty similar. On the other hand, if my assumption is incorrect, then it would help for you to provide a more complete description of your problem.
|
 |
Shaahid Vawda
Greenhorn
Joined: Jul 20, 2012
Posts: 4
|
|
For my assignment I need to develop a program for a courier service
In my program i want to enter an address and get a distance to a particular address from a predefined address.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
I see. Then does that mean "I haven't done anything at all and I was hoping somebody else would do it for me"? Surely not! Tell us what you have done, and tell us what you can't do and what you have tried so far.
|
 |
Shaahid Vawda
Greenhorn
Joined: Jul 20, 2012
Posts: 4
|
|
|
Can you at least point me out in the right direction ?
|
 |
 |
|
|
subject: Getting distance using Google Maps API
|
|
|