Address generated for OSM geocoding is now using country name and not code
This commit is contained in:
parent
418930387f
commit
b860fa7035
@ -94,7 +94,7 @@ class Event < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
[address, city, region.try(:name), region.try(:code)].compact.join ', '
|
[address, city, region, region.region].compact.join ', '
|
||||||
end
|
end
|
||||||
|
|
||||||
def hashtags
|
def hashtags
|
||||||
|
@ -92,7 +92,7 @@ class Orga < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
[address, city, region.try(:name), region.try(:code)].compact.join ', '
|
[address, city, region, region.region].compact.join ', '
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user