Skip to content

Instantly share code, notes, and snippets.

@DruRly
Last active December 10, 2015 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DruRly/4492709 to your computer and use it in GitHub Desktop.
Save DruRly/4492709 to your computer and use it in GitHub Desktop.
Reverse Geocoding Output
[#<Geocoder::Result::Google:0x007fb18d5c0ff8
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"A344", "short_name"=>"A344", "types"=>["route"]},
{"long_name"=>"Wiltshire",
"short_name"=>"Wiltshire",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"England",
"short_name"=>"England",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]},
{"long_name"=>"SP4",
"short_name"=>"SP4",
"types"=>["postal_code_prefix", "postal_code"]},
{"long_name"=>"Salisbury",
"short_name"=>"Salisbury",
"types"=>["postal_town"]}],
"formatted_address"=>"A344, Salisbury, Wiltshire SP4, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.1798556, "lng"=>-1.8204221},
"southwest"=>{"lat"=>51.17806909999999, "lng"=>-1.827413}},
"location"=>{"lat"=>51.17901999999999, "lng"=>-1.8238803},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.1803113302915, "lng"=>-1.8204221},
"southwest"=>{"lat"=>51.1776133697085, "lng"=>-1.827413}}},
"types"=>["route"]}>,
#<Geocoder::Result::Google:0x007fb18d5c0d00
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"SP4 7DE",
"short_name"=>"SP4 7DE",
"types"=>["postal_code"]},
{"long_name"=>"Wiltshire",
"short_name"=>"Wiltshire",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]},
{"long_name"=>"Salisbury",
"short_name"=>"Salisbury",
"types"=>["postal_town"]}],
"formatted_address"=>"Salisbury, Wiltshire SP4 7DE, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.1865446, "lng"=>-1.8147963},
"southwest"=>{"lat"=>51.1658495, "lng"=>-1.8606635}},
"location"=>{"lat"=>51.1802192, "lng"=>-1.8270873},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.1865446, "lng"=>-1.8147963},
"southwest"=>{"lat"=>51.1658495, "lng"=>-1.8606635}}},
"types"=>["postal_code"]}>,
#<Geocoder::Result::Google:0x007fb18d5c0a08
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"Amesbury",
"short_name"=>"Amesbury",
"types"=>["political"]},
{"long_name"=>"Wiltshire",
"short_name"=>"Wiltshire",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"England",
"short_name"=>"England",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]}],
"formatted_address"=>"Amesbury, Wiltshire, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.1919313, "lng"=>-1.7117001},
"southwest"=>{"lat"=>51.1494527, "lng"=>-1.8535583}},
"location"=>{"lat"=>51.1712366, "lng"=>-1.7761112},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.1919313, "lng"=>-1.7117001},
"southwest"=>{"lat"=>51.1494527, "lng"=>-1.8535583}}},
"types"=>["political"]}>,
#<Geocoder::Result::Google:0x007fb18d5c0710
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"SP4",
"short_name"=>"SP4",
"types"=>["postal_code_prefix", "postal_code"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]},
{"long_name"=>"Salisbury",
"short_name"=>"Salisbury",
"types"=>["postal_town"]}],
"formatted_address"=>"Salisbury SP4, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.2759513, "lng"=>-1.6287743},
"southwest"=>{"lat"=>51.0708387, "lng"=>-1.8606635}},
"location"=>{"lat"=>51.18700579999999, "lng"=>-1.7711005},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.2759513, "lng"=>-1.6287743},
"southwest"=>{"lat"=>51.0708387, "lng"=>-1.8606635}}},
"types"=>["postal_code_prefix", "postal_code"]}>,
#<Geocoder::Result::Google:0x007fb18d5c0418
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"Salisbury",
"short_name"=>"Salisbury",
"types"=>["postal_town"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]}],
"formatted_address"=>"Salisbury, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.2759513, "lng"=>-1.5617645},
"southwest"=>{"lat"=>50.9187178, "lng"=>-2.2108535}},
"location"=>{"lat"=>51.1232079, "lng"=>-1.8390956},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.2759513, "lng"=>-1.5617645},
"southwest"=>{"lat"=>50.9187178, "lng"=>-2.2108535}}},
"types"=>["postal_town"]}>,
#<Geocoder::Result::Google:0x007fb18d5c80f0
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"Wiltshire",
"short_name"=>"Wiltshire",
"types"=>["administrative_area_level_2", "political"]},
{"long_name"=>"England",
"short_name"=>"England",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]}],
"formatted_address"=>"Wiltshire, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>51.7031417, "lng"=>-1.4857261},
"southwest"=>{"lat"=>50.944992, "lng"=>-2.3655985}},
"location"=>{"lat"=>51.2462714, "lng"=>-1.9922127},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>51.7031417, "lng"=>-1.4857261},
"southwest"=>{"lat"=>50.944992, "lng"=>-2.3655985}}},
"types"=>["administrative_area_level_2", "political"]}>,
#<Geocoder::Result::Google:0x007fb18d5c7df8
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"England",
"short_name"=>"England",
"types"=>["administrative_area_level_1", "political"]},
{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]}],
"formatted_address"=>"England, UK",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>55.8111127, "lng"=>1.7629159},
"southwest"=>{"lat"=>49.8647552, "lng"=>-6.4177822}},
"location"=>{"lat"=>52.3555177, "lng"=>-1.1743197},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>55.8111127, "lng"=>1.7629159},
"southwest"=>{"lat"=>49.8647877, "lng"=>-6.4027667}}},
"types"=>["administrative_area_level_1", "political"]}>,
#<Geocoder::Result::Google:0x007fb18d5c7b00
@cache_hit=nil,
@data=
{"address_components"=>
[{"long_name"=>"United Kingdom",
"short_name"=>"GB",
"types"=>["country", "political"]}],
"formatted_address"=>"United Kingdom",
"geometry"=>
{"bounds"=>
{"northeast"=>{"lat"=>60.91134479999999, "lng"=>33.9165549},
"southwest"=>{"lat"=>34.5640831, "lng"=>-8.649357199999999}},
"location"=>{"lat"=>55.378051, "lng"=>-3.435973},
"location_type"=>"APPROXIMATE",
"viewport"=>
{"northeast"=>{"lat"=>60.856553, "lng"=>1.7627096},
"southwest"=>{"lat"=>49.8669422, "lng"=>-8.649357199999999}}},
"types"=>["country", "political"]}>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment