获得从谷歌地图家庭/办公地址 [英] Get Home/office address from google maps

查看:155
本文介绍了获得从谷歌地图家庭/办公地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于地图的Andr​​oid应用程序,而只是提供的功能使用Gmail帐户登录。目前,设备上的谷歌地图节省家庭和用户的办公地址。是否有可能得到这个数据,而无需用户不必输入呢?

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?

推荐答案

您可以地理code是谷歌地理编码API

You can geocode the addresses with Google Geocoding API.

根据你想要什么,你可以通过调用获得XML或JSON响应

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

如果所有的地址空间必须由 + 所取代。 你想要的数据位于的几何性质和GT;位置

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

这篇关于获得从谷歌地图家庭/办公地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆