Get zip code from latitude, longitude?

后端 未结 5 2012
长发绾君心
长发绾君心 2020-12-01 06:56

I want to get zip code from users current location(Latitude, Longitude), I had used MKReverse Geocoder delegate methods, but sometimes I am not able to get zip code informat

5条回答
  •  鱼传尺愫
    2020-12-01 07:22

    Sample code here:

    Get Zipcode from results[1].formatted_address

    https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse

提交回复
热议问题