Last active
December 21, 2015 21:38
-
-
Save steveburkett/6369215 to your computer and use it in GitHub Desktop.
Monterra Apartments 1333 N 24th St Phoenix, AZ 85008 Plus URL: https://plus.google.com/104682086520694271755/about?gl=US&hl=en-US
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[15] pry(main)> details | |
{ | |
"debug_info" => [], | |
"html_attributions" => [], | |
"result" => { | |
"address_components" => [ | |
[0] { | |
"long_name" => "Monterra Apartments", | |
"short_name" => "Monterra Apartments", | |
"types" => [ | |
[0] "neighborhood", | |
[1] "political" | |
] | |
}, | |
[1] { | |
"long_name" => "Phoenix", | |
"short_name" => "Phoenix", | |
"types" => [ | |
[0] "locality", | |
[1] "political" | |
] | |
}, | |
[2] { | |
"long_name" => "Maricopa", | |
"short_name" => "Maricopa", | |
"types" => [ | |
[0] "administrative_area_level_2", | |
[1] "political" | |
] | |
}, | |
[3] { | |
"long_name" => "Arizona", | |
"short_name" => "AZ", | |
"types" => [ | |
[0] "administrative_area_level_1", | |
[1] "political" | |
] | |
}, | |
[4] { | |
"long_name" => "United States", | |
"short_name" => "US", | |
"types" => [ | |
[0] "country", | |
[1] "political" | |
] | |
} | |
], | |
"adr_address" => "Monterra Apartments, <span class=\"locality\">Phoenix</span>, <span class=\"region\">AZ</span>, <span class=\"country-name\">USA</span>", | |
"formatted_address" => "Monterra Apartments, Phoenix, AZ, USA", | |
"geometry" => { | |
"location" => { | |
"lat" => 33.4631155, | |
"lng" => -112.0293794 | |
}, | |
"viewport" => { | |
"northeast" => { | |
"lat" => 33.4639889, | |
"lng" => -112.028077 | |
}, | |
"southwest" => { | |
"lat" => 33.462214, | |
"lng" => -112.0302512 | |
} | |
} | |
}, | |
"icon" => "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png", | |
"id" => "8be07b42c2a1de1d2857208e0e614580beb4438f", | |
"name" => "Monterra Apartments", | |
"reference" => "CpQBjgAAAHzCYZGMKDUNA0-Jwzc5FF7nKfGIOtgIvdV39Iq6vCBsOlEbs-bIPRt3zS25b93-TI0dtDdJgtEM3gu0W8y4_JEnWT_EtadvUZDdWTtpNGx7X40HHU9sSNGMuNOJgGwHRAtZiFXLRGWh9sIQ7e9WNWW_p7oHcXbK3_gdlyex3-J9HocTz_wpBb-EKnuXqBqyBhIQ9-axTIzmWFVnYrKykYmyIBoUlnztasso9o1wMao16ZcdnygeuHo", | |
"types" => [ | |
[0] "neighborhood", | |
[1] "political" | |
], | |
"url" => "https://maps.google.com/maps/place?q=Monterra+Apartments&ftid=0x872b0de8a8dbc82b:0x96d697b5f8d2a7d4", | |
"vicinity" => "Phoenix" | |
}, | |
"status" => "OK" | |
} | |
[16] pry(main)> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[16] pry(main)> search | |
{ | |
"debug_info" => [], | |
"html_attributions" => [], | |
"results" => [ | |
[0] { | |
"geometry" => { | |
"location" => { | |
"lat" => 33.4631155, | |
"lng" => -112.0293794 | |
}, | |
"viewport" => { | |
"northeast" => { | |
"lat" => 33.4639889, | |
"lng" => -112.028077 | |
}, | |
"southwest" => { | |
"lat" => 33.462214, | |
"lng" => -112.0302512 | |
} | |
} | |
}, | |
"icon" => "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png", | |
"id" => "8be07b42c2a1de1d2857208e0e614580beb4438f", | |
"name" => "Monterra Apartments", | |
"reference" => "CpQBjgAAACgat8k4WwJWjPGminGjYAFs-hxLHE2mMhvGkVpSZtrlIfQHwwWMDPq4ppGU0UmFnYfcSjTywh4dnhyc8XGAXx-2c8fNxOJ6TiHp7S39u-fJ8qr_NKRhhq-C344y4TKh2GkYYI9keb1T9EV9ISeC78WhtC2fDCUteRjmGUPPmqX7RMR82JFl2W-m9DkoF7lQvxIQx5ShDb6TcZ4z9l-5zTSTMxoUEZuw2Xp71e4u7pFLmRW0Qt93bEk", | |
"types" => [ | |
[0] "neighborhood", | |
[1] "political" | |
], | |
"vicinity" => "Phoenix" | |
} | |
], | |
"status" => "OK" | |
} | |
[17] pry(main)> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[17] pry(main)> bl.url | |
"https://plus.google.com/104682086520694271755/about?gl=US&hl=en-US" | |
[18] pry(main)> bl.location.name | |
"Monterra Apartments" | |
[19] pry(main)> bl.location.contact_info | |
#<ContactInfo:0x007feee9c431c0> { | |
:id => 5, | |
:street => "1333 North 24th Street", | |
:street2 => nil, | |
:city => "Phoenix", | |
:state_code => "AZ", | |
:postal_code => "85008", | |
:country_code => "US", | |
:latitude => 33.463391, | |
:longitude => -112.030093, | |
:created_at => Tue, 03 Apr 2012 23:33:24 UTC +00:00, | |
:updated_at => Tue, 03 Apr 2012 23:33:24 UTC +00:00, | |
:location_id => 5, | |
:telephone => "(602) 795-1600" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment