Class: Geocoder::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/thrift/geocoder.rb

Instance Method Summary collapse

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_bulkReverseGeocodeObject

Raises:

  • (::Thrift::ApplicationException)


50
51
52
53
54
# File 'lib/thrift/geocoder.rb', line 50

def recv_bulkReverseGeocode()
  result = receive_message(BulkReverseGeocode_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'bulkReverseGeocode failed: unknown result')
end

#recv_bulkSlugLookupObject

Raises:

  • (::Thrift::ApplicationException)


65
66
67
68
69
# File 'lib/thrift/geocoder.rb', line 65

def recv_bulkSlugLookup()
  result = receive_message(BulkSlugLookup_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'bulkSlugLookup failed: unknown result')
end

#recv_geocodeObject

Raises:

  • (::Thrift::ApplicationException)


20
21
22
23
24
# File 'lib/thrift/geocoder.rb', line 20

def recv_geocode()
  result = receive_message(Geocode_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'geocode failed: unknown result')
end

#recv_getS2CellInfosObject

Raises:

  • (::Thrift::ApplicationException)


95
96
97
98
99
# File 'lib/thrift/geocoder.rb', line 95

def recv_getS2CellInfos()
  result = receive_message(GetS2CellInfos_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getS2CellInfos failed: unknown result')
end

#recv_refreshStoreObject

Raises:

  • (::Thrift::ApplicationException)


80
81
82
83
84
# File 'lib/thrift/geocoder.rb', line 80

def recv_refreshStore()
  result = receive_message(RefreshStore_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'refreshStore failed: unknown result')
end

#recv_reverseGeocodeObject

Raises:

  • (::Thrift::ApplicationException)


35
36
37
38
39
# File 'lib/thrift/geocoder.rb', line 35

def recv_reverseGeocode()
  result = receive_message(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)
  send_message('bulkReverseGeocode', BulkReverseGeocode_args, :r => r)
end

#send_bulkSlugLookup(r) ⇒ Object



61
62
63
# File 'lib/thrift/geocoder.rb', line 61

def send_bulkSlugLookup(r)
  send_message('bulkSlugLookup', BulkSlugLookup_args, :r => r)
end

#send_geocode(r) ⇒ Object



16
17
18
# File 'lib/thrift/geocoder.rb', line 16

def send_geocode(r)
  send_message('geocode', Geocode_args, :r => r)
end

#send_getS2CellInfos(r) ⇒ Object



91
92
93
# File 'lib/thrift/geocoder.rb', line 91

def send_getS2CellInfos(r)
  send_message('getS2CellInfos', GetS2CellInfos_args, :r => r)
end

#send_refreshStore(r) ⇒ Object



76
77
78
# File 'lib/thrift/geocoder.rb', line 76

def send_refreshStore(r)
  send_message('refreshStore', RefreshStore_args, :r => r)
end

#send_reverseGeocode(r) ⇒ Object



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

def send_reverseGeocode(r)
  send_message('reverseGeocode', ReverseGeocode_args, :r => r)
end