• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Getting distance using Google Maps API

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 24654
58
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you at least point me out in the right direction ?
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!