retrieving lat/long of location using google.maps.geocoder

前端 未结 5 652
感动是毒
感动是毒 2020-12-10 11:36

i have been trying to use some ajax to save venue location in my application and stumbled across the following code on stack overflow

function getLatLong(add         


        
5条回答
  •  孤城傲影
    2020-12-10 12:00

    In my case simplest solution for getting latitude and longitude from place object was:

      var latitude=place.geometry.location['k'];
      var longitude=place.geometry.location['A'];
    

提交回复
热议问题