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

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -