javascript - Passing LatLng values in Google-maps-v3 directions API -


How to pass LatLng values ​​for the original / destination parameters in Google's request API's request parameters.

Visit this link:

  var request = {origin: 'Chicago', // Here I want to add a latitude and longitude value destination: 'New York', Travel mode: google.maps .DirectionsTravelMode.DRIVING};  

You just need to be able to use a new Google Lat / lng pair. For example:

  Basic: new google.maps.LatLng (51.2244, -12.12221)  

Comments

Popular posts from this blog

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -