Class: Geocoder::Client
- Inherits:
-
Object
- Object
- Geocoder::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/thrift/geocoder.rb
Instance Method Summary collapse
- #bulkReverseGeocode(r) ⇒ Object
- #bulkSlugLookup(r) ⇒ Object
- #geocode(r) ⇒ Object
- #getS2CellInfos(r) ⇒ Object
- #recv_bulkReverseGeocode ⇒ Object
- #recv_bulkSlugLookup ⇒ Object
- #recv_geocode ⇒ Object
- #recv_getS2CellInfos ⇒ Object
- #recv_refreshStore ⇒ Object
- #recv_reverseGeocode ⇒ Object
- #refreshStore(r) ⇒ Object
- #reverseGeocode(r) ⇒ Object
- #send_bulkReverseGeocode(r) ⇒ Object
- #send_bulkSlugLookup(r) ⇒ Object
- #send_geocode(r) ⇒ Object
- #send_getS2CellInfos(r) ⇒ Object
- #send_refreshStore(r) ⇒ Object
- #send_reverseGeocode(r) ⇒ Object
Instance Method Details
#bulkReverseGeocode(r) ⇒ Object
41 42 43 44 |
# File 'lib/thrift/geocoder.rb', line 41 def bulkReverseGeocode(r) send_bulkReverseGeocode(r) return recv_bulkReverseGeocode() end |
#bulkSlugLookup(r) ⇒ Object
56 57 58 59 |
# File 'lib/thrift/geocoder.rb', line 56 def bulkSlugLookup(r) send_bulkSlugLookup(r) return recv_bulkSlugLookup() end |
#geocode(r) ⇒ Object
11 12 13 14 |
# File 'lib/thrift/geocoder.rb', line 11 def geocode(r) send_geocode(r) return recv_geocode() end |
#getS2CellInfos(r) ⇒ Object
86 87 88 89 |
# File 'lib/thrift/geocoder.rb', line 86 def getS2CellInfos(r) send_getS2CellInfos(r) return recv_getS2CellInfos() end |
#recv_bulkReverseGeocode ⇒ Object
50 51 52 53 54 |
# File 'lib/thrift/geocoder.rb', line 50 def recv_bulkReverseGeocode() result = (BulkReverseGeocode_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'bulkReverseGeocode failed: unknown result') end |
#recv_bulkSlugLookup ⇒ Object
65 66 67 68 69 |
# File 'lib/thrift/geocoder.rb', line 65 def recv_bulkSlugLookup() result = (BulkSlugLookup_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'bulkSlugLookup failed: unknown result') end |
#recv_geocode ⇒ Object
20 21 22 23 24 |
# File 'lib/thrift/geocoder.rb', line 20 def recv_geocode() result = (Geocode_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'geocode failed: unknown result') end |
#recv_getS2CellInfos ⇒ Object
95 96 97 98 99 |
# File 'lib/thrift/geocoder.rb', line 95 def recv_getS2CellInfos() result = (GetS2CellInfos_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getS2CellInfos failed: unknown result') end |
#recv_refreshStore ⇒ Object
80 81 82 83 84 |
# File 'lib/thrift/geocoder.rb', line 80 def recv_refreshStore() result = (RefreshStore_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'refreshStore failed: unknown result') end |
#recv_reverseGeocode ⇒ Object
35 36 37 38 39 |
# File 'lib/thrift/geocoder.rb', line 35 def recv_reverseGeocode() result = (ReverseGeocode_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'reverseGeocode failed: unknown result') end |
#refreshStore(r) ⇒ Object
71 72 73 74 |
# File 'lib/thrift/geocoder.rb', line 71 def refreshStore(r) send_refreshStore(r) return recv_refreshStore() end |
#reverseGeocode(r) ⇒ Object
26 27 28 29 |
# File 'lib/thrift/geocoder.rb', line 26 def reverseGeocode(r) send_reverseGeocode(r) return recv_reverseGeocode() end |
#send_bulkReverseGeocode(r) ⇒ Object
46 47 48 |
# File 'lib/thrift/geocoder.rb', line 46 def send_bulkReverseGeocode(r) ('bulkReverseGeocode', BulkReverseGeocode_args, :r => r) end |
#send_bulkSlugLookup(r) ⇒ Object
61 62 63 |
# File 'lib/thrift/geocoder.rb', line 61 def send_bulkSlugLookup(r) ('bulkSlugLookup', BulkSlugLookup_args, :r => r) end |
#send_geocode(r) ⇒ Object
16 17 18 |
# File 'lib/thrift/geocoder.rb', line 16 def send_geocode(r) ('geocode', Geocode_args, :r => r) end |
#send_getS2CellInfos(r) ⇒ Object
91 92 93 |
# File 'lib/thrift/geocoder.rb', line 91 def send_getS2CellInfos(r) ('getS2CellInfos', GetS2CellInfos_args, :r => r) end |
#send_refreshStore(r) ⇒ Object
76 77 78 |
# File 'lib/thrift/geocoder.rb', line 76 def send_refreshStore(r) ('refreshStore', RefreshStore_args, :r => r) end |
#send_reverseGeocode(r) ⇒ Object
31 32 33 |
# File 'lib/thrift/geocoder.rb', line 31 def send_reverseGeocode(r) ('reverseGeocode', ReverseGeocode_args, :r => r) end |