Get Home/office address from google maps

夙愿已清 提交于 2019-12-21 12:43:05

问题


I have an map based android app and am providing functionality to login using gmail account. Now, Google maps on the device has saved home and office address of the user. Is it possible to get this data without user having to input it?


回答1:


You can geocode the addresses with Google Geocoding API.

Depending of what you want, you can get an XML or JSON response by calling

http://maps.google.com/maps/api/geocode/json?address=ADRESS HERE

Where all the spaces of the address must be replaced by +. The data you want is located in geometry->location.



来源:https://stackoverflow.com/questions/18888122/get-home-office-address-from-google-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!