Class: ApiBrasil::Services::Data::GeolocationService
- Inherits:
-
ApiBrasil::Services::DeviceProxyService
- Object
- BaseService
- ApiBrasil::Services::DeviceProxyService
- ApiBrasil::Services::Data::GeolocationService
- Defined in:
- lib/api_brasil/services/data/proxies.rb
Overview
Geolocalizacao (device-based): /geolocation/{action}.
Instance Attribute Summary
Attributes inherited from ApiBrasil::Services::DeviceProxyService
Attributes inherited from BaseService
Instance Method Summary collapse
-
#forward_geocoding(body, options = {}) ⇒ Object
Geocoding direto:
POST /geolocation/forward-geocoding. -
#geocode(body, options = {}) ⇒ Object
Converte endereco em coordenadas:
POST /geolocation/geocode. -
#initialize(http) ⇒ GeolocationService
constructor
A new instance of GeolocationService.
Methods inherited from ApiBrasil::Services::DeviceProxyService
Methods inherited from BaseService
#delete, #download, #get, #patch, #post, #put
Constructor Details
#initialize(http) ⇒ GeolocationService
Returns a new instance of GeolocationService.
11 12 13 |
# File 'lib/api_brasil/services/data/proxies.rb', line 11 def initialize(http) super(http, "geolocation") end |
Instance Method Details
#forward_geocoding(body, options = {}) ⇒ Object
Geocoding direto: POST /geolocation/forward-geocoding.
25 26 27 |
# File 'lib/api_brasil/services/data/proxies.rb', line 25 def forward_geocoding(body, = {}) request("forward-geocoding", body, ) end |
#geocode(body, options = {}) ⇒ Object
Converte endereco em coordenadas: POST /geolocation/geocode.
18 19 20 |
# File 'lib/api_brasil/services/data/proxies.rb', line 18 def geocode(body, = {}) request("geocode", body, ) end |