Class: Ym4r::GoogleMaps::Geocoding::Placemark
- Inherits:
-
Struct
- Object
- Struct
- Ym4r::GoogleMaps::Geocoding::Placemark
- Defined in:
- lib/ym4r/google_maps/geocoding.rb
Overview
A result from the Geocoding service.
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
Returns the value of attribute accuracy.
-
#address ⇒ Object
Returns the value of attribute address.
-
#administrative_area ⇒ Object
Returns the value of attribute administrative_area.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#dependent_locality ⇒ Object
Returns the value of attribute dependent_locality.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#sub_administrative_area ⇒ Object
Returns the value of attribute sub_administrative_area.
-
#thoroughfare ⇒ Object
Returns the value of attribute thoroughfare.
Instance Method Summary collapse
Instance Attribute Details
#accuracy ⇒ Object
Returns the value of attribute accuracy
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def accuracy @accuracy end |
#address ⇒ Object
Returns the value of attribute address
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def address @address end |
#administrative_area ⇒ Object
Returns the value of attribute administrative_area
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def administrative_area @administrative_area end |
#country_code ⇒ Object
Returns the value of attribute country_code
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def country_code @country_code end |
#dependent_locality ⇒ Object
Returns the value of attribute dependent_locality
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def dependent_locality @dependent_locality end |
#latitude ⇒ Object
Returns the value of attribute latitude
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def latitude @latitude end |
#locality ⇒ Object
Returns the value of attribute locality
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def locality @locality end |
#longitude ⇒ Object
Returns the value of attribute longitude
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def longitude @longitude end |
#postal_code ⇒ Object
Returns the value of attribute postal_code
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def postal_code @postal_code end |
#sub_administrative_area ⇒ Object
Returns the value of attribute sub_administrative_area
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def sub_administrative_area @sub_administrative_area end |
#thoroughfare ⇒ Object
Returns the value of attribute thoroughfare
106 107 108 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 106 def thoroughfare @thoroughfare end |
Instance Method Details
#latlon ⇒ Object
111 112 113 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 111 def latlon [latitude,longitude] end |
#lonlat ⇒ Object
107 108 109 |
# File 'lib/ym4r/google_maps/geocoding.rb', line 107 def lonlat [longitude,latitude] end |