timwaters / mapwarper

free open source public map georeferencer, georectifier and warper
http://mapwarper.net
MIT License
193 stars 80 forks source link

Mapzen RIP so need to replace mapzen for geosearch search for place #148

Closed timwaters closed 6 years ago

timwaters commented 6 years ago

mapzen is closing at beginning of Feb 2018, so we need to replace this in maps_controller and layers_controller in the geosearch method. Might not be used much, though.


      uri = URI('https://search.mapzen.com/v1/search')
      query_params = { :text => params[:place], :api_key => api_key, :size => 2, :sources => "wof,geonames", :layers => "coarse"}

      if !APP_CONFIG["geocode_country"].blank?
        query_params = query_params.merge({"boundary.country" => APP_CONFIG["geocode_country"]})
      end
timwaters commented 6 years ago

using nominatum