Skip to content

Instantly share code, notes, and snippets.

@phil-lopreiato
Created April 27, 2016 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save phil-lopreiato/9e98d3f9b7b9ae59c3646066e48febbf to your computer and use it in GitHub Desktop.
Save phil-lopreiato/9e98d3f9b7b9ae59c3646066e48febbf to your computer and use it in GitHub Desktop.
City Google Places API Request
$ http https://maps.googleapis.com/maps/api/place/details/json?key=API_KEY&placeid=ChIJOwg_06VPwokRYv534QaPC8g
{
"html_attributions": [
],
"result": {
"address_components": [
{
"long_name": "New York",
"short_name": "New York",
"types": [
"locality",
"political"
]
},
{
"long_name": "New York",
"short_name": "NY",
"types": [
"administrative_area_level_1",
"political"
]
},
{
"long_name": "United States",
"short_name": "US",
"types": [
"country",
"political"
]
}
],
"adr_address": "\u003cspan class=\"locality\"\u003eNew York\u003c/span\u003e, \u003cspan class=\"region\"\u003eNY\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eUSA\u003c/span\u003e",
"formatted_address": "New York, NY, USA",
"geometry": {
"access_points": [
{
"location": {
"lat": 40.750568,
"lng": -73.99351900000001
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
},
{
"location": {
"lat": 40.7527262,
"lng": -73.9772294
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
},
{
"location": {
"lat": 40.684901,
"lng": -73.97767999999999
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
},
{
"location": {
"lat": 40.7569645,
"lng": -73.99049870000002
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
},
{
"location": {
"lat": 40.700691,
"lng": -73.790661
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
},
{
"location": {
"lat": 40.7602282,
"lng": -74.00332689999999
},
"travel_modes": [
"DRIVING",
"BICYCLING",
"WALKING",
"TRANSIT"
]
}
],
"location": {
"lat": 40.7127837,
"lng": -74.0059413
},
"viewport": {
"northeast": {
"lat": 40.91525559999999,
"lng": -73.70027209999999
},
"southwest": {
"lat": 40.4960439,
"lng": -74.25573489999999
}
}
},
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
"id": "7eae6a016a9c6f58e2044573fb8f14227b6e1f96",
"name": "New York",
"place_id": "ChIJOwg_06VPwokRYv534QaPC8g",
"reference": "CnRuAAAAC_MN9Is7qPNDjHbU47RbnMGGkxUecWQuQMQqRPbuGggjCRooL3hskiIPxhOdYGxrfPSXOp0na7Nim8tLdMiANRcPYok7mD5IbwZf_5btyukgepZVZiKsMnvy32I48ZiadF9nXOXbd3i2tUytB7nfPhIQUEg44Ph-f98U7K4n5SINCBoUZNSydvds29Ha0bm_pXWRudXqOgA",
"scope": "GOOGLE",
"types": [
"locality",
"political"
],
"url": "https://maps.google.com/?q=New+York,+NY,+USA&ftid=0x89c24fa5d33f083b:0xc80b8f06e177fe62",
"vicinity": "New York"
},
"status": "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment