javagoogle-maps

google maps api java


i have a console application, needs to find the distance and route between two places using the google maps api. that means i do not have a browser and hence no javascript. is it possible to do it using java using a HTTP request or something. i have tried geocoding and can find the latitude and longitude of a given address using HTTP requests. how to find distance and routes using java.


Solution

  • Google only provides this in javascript. However, there is a request to provide it in java also. So possibly, it will be there in the near future.

    The fact that there is no out-of-the-box solution from google, doesn't mean that you can not create one for yourselve of course...

    [EDIT] For example, you could read the sourcecode of your directions in html to find the distance and the route.