The geocoding address does not use anymore the country if this country is "top level".

This should better handle the "other" country, which OSM has troubles with...
remotes/origin/master
echarp 5 years ago
parent 949d5dbd6a
commit 60df916a62
  1. 4
      app/models/event.rb

@ -86,7 +86,9 @@ class Event < ApplicationRecord
end
def full_address
[address, city, region, region.try(:region)].compact.join ', '
# Only uses the region if it is a sub-region and not a country
[address, city, region, region.try(:region) ? region.try(:region) : nil]
.compact.join ', '
end
def hashtags

Loading…
Cancel
Save