Class: GoogleGeocode::Location
- Inherits:
-
Struct
- Object
- Struct
- GoogleGeocode::Location
- Defined in:
- lib/google_geocode.rb,
lib/google_geocode.rb
Overview
A Location contains the following fields:
latitude
-
Latitude of the location
longitude
-
Longitude of the location
address
-
Street address of the result.
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#coordinates ⇒ Object
The coordinates for this location.
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
34 35 36 |
# File 'lib/google_geocode.rb', line 34 def address @address end |
#latitude ⇒ Object
Returns the value of attribute latitude
34 35 36 |
# File 'lib/google_geocode.rb', line 34 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
34 35 36 |
# File 'lib/google_geocode.rb', line 34 def longitude @longitude end |
Instance Method Details
#coordinates ⇒ Object
The coordinates for this location.
117 118 119 |
# File 'lib/google_geocode.rb', line 117 def coordinates [latitude, longitude] end |