Address generated for OSM geocoding is now using country name and not code

rails5
echarp 5 years ago
parent 418930387f
commit b860fa7035
  1. 2
      app/models/event.rb
  2. 2
      app/models/orga.rb

@ -94,7 +94,7 @@ class Event < ApplicationRecord
end
def full_address
[address, city, region.try(:name), region.try(:code)].compact.join ', '
[address, city, region, region.region].compact.join ', '
end
def hashtags

@ -92,7 +92,7 @@ class Orga < ApplicationRecord
end
def full_address
[address, city, region.try(:name), region.try(:code)].compact.join ', '
[address, city, region, region.region].compact.join ', '
end
def to_s

Loading…
Cancel
Save