I want to use Google Maps JavaScript API v3 in my Java Application. For this I create HttpGet object with http://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false url.
I get the proper response, but instead of passing Station name I want to pass the latitude-longitude of the stations.
A documentation can be found at Here
How can I pass latitude-longitude to this service?
EDIT :
When I give the URL as - http://maps.googleapis.com/maps/api/directions/json?origin=Jackson+Av&destination=Prospect+Av&sensor=false I get the proper response, but when I give URL as -
http://maps.googleapis.com/maps/api/directions/json?origin=40.81649,73.907807&destination=40.819585,-73.90177&sensor=false I get the response as - ZERO RESULT