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 -

multithreading - Reorderings in java memory model -

java - Add color code support to a Bukkit plugin -