We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b21f377 + 09d7b32 commit b400a40Copy full SHA for b400a40
1 file changed
app/services/geocoding_service.rb
@@ -39,7 +39,8 @@ def self.geocode_address(address)
39
q: address,
40
format: 'json',
41
limit: 1,
42
- countrycodes: 'us'
+ countrycodes: 'us',
43
+ email: 'admin@civicpatch.org'
44
}
45
nominatim_uri = URI(nominatim_url)
46
if defined?(Rails) && Rails.logger
@@ -49,7 +50,7 @@ def self.geocode_address(address)
49
50
end
51
nominatim_uri.query = URI.encode_www_form(nominatim_params)
52
headers = {
- "User-Agent" => "civicpatch.org/1.0 (admin@civicpatch.org)",
53
+ "User-Agent" => "CivicPatchGeocoder (admin@civicpatch.org)",
54
"Accept-Language" => "en"
55
56
# Simple rate limiting: 1 request per second
0 commit comments