lib/geocoder/lookups/pickpoint.rb
require "geocoder/lookups/nominatim" require "geocoder/results/pickpoint" module Geocoder::Lookup class Pickpoint < Nominatim def name "Pickpoint" end def supported_protocols [:https] end def required_api_key_parts ["api_key"] end private # ---------------------------------------------------------------- def base_query_url(query) method = query.reverse_geocode? ? "reverse" : "forward" "#{protocol}://api.pickpoint.io/v1/#{method}?" end def query_url_params(query) { key: configuration.api_key }.merge(super) end def results(query) return [] unless doc = fetch_data(query) if !doc.is_a?(Array) && doc['message'] == 'Unauthorized' raise_error(Geocoder::InvalidApiKey, 'Unauthorized') end doc.is_a?(Array) ? doc : [doc] end end end
Source Files
- lib/easting_northing.rb
- lib/generators/geocoder/config/config_generator.rb
- lib/generators/geocoder/config/templates/initializer.rb
- lib/generators/geocoder/maxmind/geolite_city_generator.rb
- lib/generators/geocoder/maxmind/geolite_country_generator.rb
- lib/generators/geocoder/maxmind/templates/migration/geolite_city.rb
- lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
- lib/generators/geocoder/migration_version.rb
- lib/geocoder.rb
- lib/geocoder/cache.rb
- lib/geocoder/cache_stores/base.rb
- lib/geocoder/cache_stores/generic.rb
- lib/geocoder/cache_stores/redis.rb
- lib/geocoder/calculations.rb
- lib/geocoder/cli.rb
- lib/geocoder/configuration.rb
- lib/geocoder/configuration_hash.rb
- lib/geocoder/esri_token.rb
- lib/geocoder/exceptions.rb
- lib/geocoder/ip_address.rb
- lib/geocoder/kernel_logger.rb
- lib/geocoder/logger.rb
- lib/geocoder/lookup.rb
- lib/geocoder/lookups/abstract_api.rb
- lib/geocoder/lookups/amap.rb
- lib/geocoder/lookups/amazon_location_service.rb
- lib/geocoder/lookups/azure.rb
- lib/geocoder/lookups/baidu.rb
- lib/geocoder/lookups/baidu_ip.rb
- lib/geocoder/lookups/ban_data_gouv_fr.rb
- lib/geocoder/lookups/base.rb
- lib/geocoder/lookups/bing.rb
- lib/geocoder/lookups/db_ip_com.rb
- lib/geocoder/lookups/esri.rb
- lib/geocoder/lookups/freegeoip.rb
- lib/geocoder/lookups/geoapify.rb
- lib/geocoder/lookups/geocoder_ca.rb
- lib/geocoder/lookups/geocodio.rb
- lib/geocoder/lookups/geoip2.rb
- lib/geocoder/lookups/geoportail_lu.rb
- lib/geocoder/lookups/google.rb
- lib/geocoder/lookups/google_places_details.rb
- lib/geocoder/lookups/google_places_search.rb
- lib/geocoder/lookups/google_premier.rb
- lib/geocoder/lookups/here.rb
- lib/geocoder/lookups/ip2location.rb
- lib/geocoder/lookups/ip2location_io.rb
- lib/geocoder/lookups/ip2location_lite.rb
- lib/geocoder/lookups/ipapi_com.rb
- lib/geocoder/lookups/ipbase.rb
- lib/geocoder/lookups/ipdata_co.rb
- lib/geocoder/lookups/ipgeolocation.rb
- lib/geocoder/lookups/ipinfo_io.rb
- lib/geocoder/lookups/ipqualityscore.rb
- lib/geocoder/lookups/ipregistry.rb
- lib/geocoder/lookups/ipstack.rb
- lib/geocoder/lookups/latlon.rb
- lib/geocoder/lookups/location_iq.rb
- lib/geocoder/lookups/mapbox.rb
- lib/geocoder/lookups/mapquest.rb
- lib/geocoder/lookups/maxmind.rb
- lib/geocoder/lookups/maxmind_geoip2.rb
- lib/geocoder/lookups/maxmind_local.rb
- lib/geocoder/lookups/melissa_street.rb
- lib/geocoder/lookups/nationaal_georegister_nl.rb
- lib/geocoder/lookups/nominatim.rb
- lib/geocoder/lookups/opencagedata.rb
- lib/geocoder/lookups/osmnames.rb
- lib/geocoder/lookups/pc_miler.rb
- lib/geocoder/lookups/pdok_nl.rb
- lib/geocoder/lookups/pelias.rb
- lib/geocoder/lookups/photon.rb
- lib/geocoder/lookups/pickpoint.rb
- lib/geocoder/lookups/pointpin.rb
- lib/geocoder/lookups/postcode_anywhere_uk.rb
- lib/geocoder/lookups/postcodes_io.rb
- lib/geocoder/lookups/smarty_streets.rb
- lib/geocoder/lookups/telize.rb
- lib/geocoder/lookups/tencent.rb
- lib/geocoder/lookups/test.rb
- lib/geocoder/lookups/twogis.rb
- lib/geocoder/lookups/uk_ordnance_survey_names.rb
- lib/geocoder/lookups/yandex.rb
- lib/geocoder/models/active_record.rb
- lib/geocoder/models/base.rb
- lib/geocoder/models/mongo_base.rb
- lib/geocoder/models/mongo_mapper.rb
- lib/geocoder/models/mongoid.rb
- lib/geocoder/query.rb
- lib/geocoder/railtie.rb
- lib/geocoder/request.rb
- lib/geocoder/results/abstract_api.rb
- lib/geocoder/results/amap.rb
- lib/geocoder/results/amazon_location_service.rb
- lib/geocoder/results/azure.rb
- lib/geocoder/results/baidu.rb
- lib/geocoder/results/baidu_ip.rb
- lib/geocoder/results/ban_data_gouv_fr.rb
- lib/geocoder/results/base.rb
- lib/geocoder/results/bing.rb
- lib/geocoder/results/db_ip_com.rb
- lib/geocoder/results/esri.rb
- lib/geocoder/results/freegeoip.rb
- lib/geocoder/results/geoapify.rb
- lib/geocoder/results/geocoder_ca.rb
- lib/geocoder/results/geocodio.rb
- lib/geocoder/results/geoip2.rb
- lib/geocoder/results/geoportail_lu.rb
- lib/geocoder/results/google.rb
- lib/geocoder/results/google_places_details.rb
- lib/geocoder/results/google_places_search.rb
- lib/geocoder/results/google_premier.rb
- lib/geocoder/results/here.rb
- lib/geocoder/results/ip2location.rb
- lib/geocoder/results/ip2location_io.rb
- lib/geocoder/results/ip2location_lite.rb
- lib/geocoder/results/ipapi_com.rb
- lib/geocoder/results/ipbase.rb
- lib/geocoder/results/ipdata_co.rb
- lib/geocoder/results/ipgeolocation.rb
- lib/geocoder/results/ipinfo_io.rb
- lib/geocoder/results/ipqualityscore.rb
- lib/geocoder/results/ipregistry.rb
- lib/geocoder/results/ipstack.rb
- lib/geocoder/results/latlon.rb
- lib/geocoder/results/location_iq.rb
- lib/geocoder/results/mapbox.rb
- lib/geocoder/results/mapquest.rb
- lib/geocoder/results/maxmind.rb
- lib/geocoder/results/maxmind_geoip2.rb
- lib/geocoder/results/maxmind_local.rb
- lib/geocoder/results/melissa_street.rb
- lib/geocoder/results/nationaal_georegister_nl.rb
- lib/geocoder/results/nominatim.rb
- lib/geocoder/results/opencagedata.rb
- lib/geocoder/results/osmnames.rb
- lib/geocoder/results/pc_miler.rb
- lib/geocoder/results/pdok_nl.rb
- lib/geocoder/results/pelias.rb
- lib/geocoder/results/photon.rb
- lib/geocoder/results/pickpoint.rb
- lib/geocoder/results/pointpin.rb
- lib/geocoder/results/postcode_anywhere_uk.rb
- lib/geocoder/results/postcodes_io.rb
- lib/geocoder/results/smarty_streets.rb
- lib/geocoder/results/telize.rb
- lib/geocoder/results/tencent.rb
- lib/geocoder/results/test.rb
- lib/geocoder/results/twogis.rb
- lib/geocoder/results/uk_ordnance_survey_names.rb
- lib/geocoder/results/yandex.rb
- lib/geocoder/sql.rb
- lib/geocoder/stores/active_record.rb
- lib/geocoder/stores/base.rb
- lib/geocoder/stores/mongo_base.rb
- lib/geocoder/stores/mongo_mapper.rb
- lib/geocoder/stores/mongoid.rb
- lib/geocoder/util.rb
- lib/geocoder/version.rb
- lib/maxmind_database.rb