Sha256: eb7d75bc9bee89d7b9474cb14803718d8285ba2de27c8cc2c5d0319e02f61e5e

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

require 'rest-client'
require 'json'
require_relative 'client/reverse'
require_relative 'client/search'

module OpenStreetMap
  # Client requests
  class Client
    include OpenStreetMap::Client::Reverse
    include OpenStreetMap::Client::Search

    BASE_URI = 'https://nominatim.openstreetmap.org/'.freeze
    DEFAULT_USER_AGENT = "webgents/open_street_map_gem_#{SecureRandom.urlsafe_base64}".freeze
    REQUEST_TIMEOUT = 1

    def initialize(args = {}); end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
open_street_map-1.1 lib/open_street_map/client.rb