Get home / office address with Google Maps

I have a map-based Android application and I provide login features with a gmail account. Now Google maps on the device have saved the user's home and office address. Is it possible to get this data without user input?

+6
source share
1 answer

You can geocode addresses with the Google Geocoding API .

Depending on what you want, you may get an XML or JSON response by calling

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

If all address spaces should be replaced with + . The data you want is located in geometry->location .

0
source

Source: https://habr.com/ru/post/954137/


All Articles