Class: Ym4r::GoogleMaps::Geocoding::Placemark

Inherits:
Struct
  • Object
show all
Defined in:
lib/ym4r/google_maps/geocoding.rb

Overview

A result from the Geocoding service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accuracyObject

Returns the value of attribute accuracy

Returns:

  • (Object)

    the current value of accuracy



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def accuracy
  @accuracy
end

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def address
  @address
end

#administrative_areaObject

Returns the value of attribute administrative_area

Returns:

  • (Object)

    the current value of administrative_area



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def administrative_area
  @administrative_area
end

#country_codeObject

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of country_code



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def country_code
  @country_code
end

#dependent_localityObject

Returns the value of attribute dependent_locality

Returns:

  • (Object)

    the current value of dependent_locality



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def dependent_locality
  @dependent_locality
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def latitude
  @latitude
end

#localityObject

Returns the value of attribute locality

Returns:

  • (Object)

    the current value of locality



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def locality
  @locality
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def longitude
  @longitude
end

#postal_codeObject

Returns the value of attribute postal_code

Returns:

  • (Object)

    the current value of postal_code



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def postal_code
  @postal_code
end

#sub_administrative_areaObject

Returns the value of attribute sub_administrative_area

Returns:

  • (Object)

    the current value of sub_administrative_area



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def sub_administrative_area
  @sub_administrative_area
end

#thoroughfareObject

Returns the value of attribute thoroughfare

Returns:

  • (Object)

    the current value of thoroughfare



106
107
108
# File 'lib/ym4r/google_maps/geocoding.rb', line 106

def thoroughfare
  @thoroughfare
end

Instance Method Details

#latlonObject



111
112
113
# File 'lib/ym4r/google_maps/geocoding.rb', line 111

def latlon
  [latitude,longitude]
end

#lonlatObject



107
108
109
# File 'lib/ym4r/google_maps/geocoding.rb', line 107

def lonlat
  [longitude,latitude]
end