Sha256: 0dae1437a1154092bf717edad0a6066834ecfc31f5d2810e129da81578380957

Contents?: true

Size: 776 Bytes

Versions: 58

Compression:

Stored size: 776 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Map
    module Provider
      module Geocoding
        # The geocoding utility class for OpenStreetMap's (OSM) Nominatim based
        # geocoding services
        class Osm < ::Decidim::Map::Geocoding
          # @see Decidim::Map::Geocoding#handle
          def handle
            @handle ||= :nominatim
          end

          protected

          # @see Decidim::Map::Utility#configure!
          def configure!(config)
            @configuration = config.merge(
              http_headers: {
                "User-Agent" => "Decidim/#{Decidim.version} (#{Decidim.application_name})",
                "Referer" => organization.host
              }
            )
          end
        end
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.4 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.27.9 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.29.0 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.3 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.27.8 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.29.0.rc4 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.29.0.rc3 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.29.0.rc2 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.29.0.rc1 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.2 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.27.7 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.1 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.27.6 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.26.10 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.26.9 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.0 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.27.5 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.0.rc5 lib/decidim/map/provider/geocoding/osm.rb
decidim-core-0.28.0.rc4 lib/decidim/map/provider/geocoding/osm.rb