Class: OpenStreetMap::Client
- Inherits:
-
Object
- Object
- OpenStreetMap::Client
- Includes:
- HTTParty, Request
- Defined in:
- lib/open_street_map/client.rb,
lib/open_street_map/client/request.rb
Defined Under Namespace
Modules: Request
Constant Summary collapse
- BASE_URI =
'https://nominatim.openstreetmap.org/'
- DEFAULT_USER_AGENT =
"webgents/open_street_map_gem_#{SecureRandom.urlsafe_base64}"
Instance Method Summary collapse
-
#reverse(args = {}) ⇒ Object
Reverse geocoding generates an address from a latitude and longitude.
-
#search(args = {}) ⇒ Object
Search objects by query.
Instance Method Details
#reverse(args = {}) ⇒ Object
Reverse geocoding generates an address from a latitude and longitude
20 21 22 |
# File 'lib/open_street_map/client.rb', line 20 def reverse(args = {}) call('reverse', args) end |
#search(args = {}) ⇒ Object
Search objects by query
15 16 17 |
# File 'lib/open_street_map/client.rb', line 15 def search(args = {}) call('search', args) end |