Skip to content

Instantly share code, notes, and snippets.

@eperedo
Created September 12, 2018 20:08
Show Gist options
  • Save eperedo/172e8cf7eb0975aa3686279dc29aa14b to your computer and use it in GitHub Desktop.
Save eperedo/172e8cf7eb0975aa3686279dc29aa14b to your computer and use it in GitHub Desktop.
google place autocomplete example
{
"address_components": [
{
"long_name": "Avenida Arequipa",
"short_name": "Av. Arequipa",
"types": [
"route"
]
},
{
"long_name": "Cercado de Lima",
"short_name": "Cercado de Lima",
"types": [
"locality",
"political"
]
},
{
"long_name": "Provincia de Lima",
"short_name": "Provincia de Lima",
"types": [
"administrative_area_level_2",
"political"
]
},
{
"long_name": "Gobierno Regional de Lima",
"short_name": "Gobierno Regional de Lima",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "Perú",
"short_name": "PE",
"types": [
"country",
"political"
]
}
],
"adr_address": "<span class=\"street-address\">Av. Arequipa</span>, <span class=\"locality\">Cercado de Lima</span>, <span class=\"country-name\">Perú</span>",
"formatted_address": "Av. Arequipa, Cercado de Lima, Perú",
"geometry": {
"location": {
"lat": -12.0724207,
"lng": -77.03631310000003
},
"viewport": {
"south": -12.08802995000005,
"west": -77.03878435000001,
"north": -12.05683374999995,
"east": -77.03368814999999
}
},
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
"id": "a22a58a2d611a39385932858a2f9a8db565c1670",
"name": "Avenida Arequipa",
"place_id": "EiRBdi4gQXJlcXVpcGEsIENlcmNhZG8gZGUgTGltYSwgUGVyw7oiSCpGChQKEgl3lYlSFMgFkRECRUhQssOUUhIUChIJZ5ZTHtvIBZERKdp7oIpTRU8aGAoKDX6vzPgV2QAV0hIKDagWz_gVq2cV0g",
"reference": "CuQB1QAAAOuyYYwAy1xmYrkUNPhAbXlSb4lK59anJ6fLpLGZACiP7bB559ZnDT42SrtW4uLCr8otudPnQ5B6RBeUL0949s7CcmopiRI0ouze6gemqpE1qpIYsXfCr6HYrUtlB2wXUgqjd8rjMXSS5BsUlVCLlnoajBy09GnbM3nmWbHnSmMrpDri4JuONG0KbnvLaavqk4bx_VAe41m55fIJzpnjV5-I9d4SXWQrLJO-khxEkVji7fH-SbvTSoHB18NrXPu1H4L2S_G6tLLHZN6tGX00IwM6U_Lpw9ctz8jjR-tCyveyEhBcNR0YkT6aG9OVj6tzoo3XGhQX1NFeH_18ac2gl-b_18eMzYbRIw",
"scope": "GOOGLE",
"types": [
"route"
],
"url": "https://maps.google.com/?q=Av.+Arequipa,+Cercado+de+Lima,+Per%C3%BA&ftid=0x9105c81452899577:0x5294c3b250484502",
"utc_offset": -300,
"vicinity": "Cercado de Lima",
"html_attributions": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment