google.maps.Geocoder.geocode() geometry.location lat/lng property names change frequently

后端 未结 1 699
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 06:18

I have an application, and I\'m using the Google Javascript Geocoding API to fetch lat/lng for an address.

The code goes something like

geocoder = ne         


        
相关标签:
1条回答
  • 2020-11-29 06:59

    Use the documented properties, they will not change

    geometry.location is a google.maps.LatLng object, the documented methods are:

    lat()   number  Returns the latitude in degrees.
    lng()   number  Returns the longitude in degrees.
    
    0 讨论(0)
提交回复
热议问题