Class: Geocoder::Result::GooglePlacesSearch

Inherits:
Google
  • Object
show all
Defined in:
lib/geocoder/results/google_places_search.rb

Instance Attribute Summary

Attributes inherited from Base

#cache_hit, #data

Instance Method Summary collapse

Methods inherited from Google

#address, #address_components, #address_components_of_type, #bounds, #coordinates, #formatted_address, #geometry, #neighborhood, #partial_match, #place_id, #precision, #route, #street_address, #street_number, #sub_state, #sub_state_code, #viewport

Methods inherited from Base

#address, #coordinates, #initialize, #latitude, #longitude

Constructor Details

This class inherits a constructor from Geocoder::Result::Base

Instance Method Details

#cityObject



19
20
21
# File 'lib/geocoder/results/google_places_search.rb', line 19

def city
  ""
end

#countryObject



43
44
45
# File 'lib/geocoder/results/google_places_search.rb', line 43

def country
  ""
end

#country_codeObject



47
48
49
# File 'lib/geocoder/results/google_places_search.rb', line 47

def country_code
  ""
end

#photosObject



15
16
17
# File 'lib/geocoder/results/google_places_search.rb', line 15

def photos
  @data["photos"]
end

#postal_codeObject



39
40
41
# File 'lib/geocoder/results/google_places_search.rb', line 39

def postal_code
  ""
end

#provinceObject



31
32
33
# File 'lib/geocoder/results/google_places_search.rb', line 31

def province
  ""
end

#province_codeObject



35
36
37
# File 'lib/geocoder/results/google_places_search.rb', line 35

def province_code
  ""
end

#ratingObject



11
12
13
# File 'lib/geocoder/results/google_places_search.rb', line 11

def rating
  @data["rating"]
end

#stateObject



23
24
25
# File 'lib/geocoder/results/google_places_search.rb', line 23

def state
  ""
end

#state_codeObject



27
28
29
# File 'lib/geocoder/results/google_places_search.rb', line 27

def state_code
  ""
end

#typesObject



7
8
9
# File 'lib/geocoder/results/google_places_search.rb', line 7

def types
  @data["types"] || []
end