Created
January 13, 2018 20:47
-
-
Save joegaudet/85845af9bd43ef49dd9e9045cccb0375 to your computer and use it in GitHub Desktop.
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
[3] pry(main)> Geocoder.search('159 West 2nd Avenue, #221 Vancouver') | |
=> [#<Geocoder::Result::Google:0x0000000006aa9b68 | |
@cache_hit=nil, | |
@data= | |
{"address_components"=> | |
[{"long_name"=>"221", "short_name"=>"221", "types"=>["subpremise"]}, | |
{"long_name"=>"159", "short_name"=>"159", "types"=>["street_number"]}, | |
{"long_name"=>"West 2nd Avenue", "short_name"=>"W 2nd Ave", "types"=>["route"]}, | |
{"long_name"=>"East Side", "short_name"=>"East Side", "types"=>["neighborhood", "political"]}, | |
{"long_name"=>"Vancouver", "short_name"=>"Vancouver", "types"=>["locality", "political"]}, | |
{"long_name"=>"Greater Vancouver", "short_name"=>"Greater Vancouver", "types"=>["administrative_area_level_2", "political"]}, | |
{"long_name"=>"British Columbia", "short_name"=>"BC", "types"=>["administrative_area_level_1", "political"]}, | |
{"long_name"=>"Canada", "short_name"=>"CA", "types"=>["country", "political"]}, | |
{"long_name"=>"V5Y 1B8", "short_name"=>"V5Y 1B8", "types"=>["postal_code"]}], | |
"formatted_address"=>"159 W 2nd Ave #221, Vancouver, BC V5Y 1B8, Canada", | |
"geometry"=> | |
{"bounds"=>{"northeast"=>{"lat"=>49.269791, "lng"=>-123.1084201}, "southwest"=>{"lat"=>49.2694494, "lng"=>-123.1085848}}, | |
"location"=>{"lat"=>49.26962020000001, "lng"=>-123.1085024}, | |
"location_type"=>"ROOFTOP", | |
"viewport"=>{"northeast"=>{"lat"=>49.27096918029151, "lng"=>-123.1071534697085}, "southwest"=>{"lat"=>49.26827121970851, "lng"=>-123.1098514302915}}}, | |
"place_id"=>"EjExNTkgVyAybmQgQXZlICMyMjEsIFZhbmNvdXZlciwgQkMgVjVZIDFCOCwgQ2FuYWRh", | |
"types"=>["subpremise"]}>] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment