Events and Orgas geocoding now uses the country code if available
This commit is contained in:
parent
b7beb0b5fa
commit
453e6d276d
@ -90,9 +90,7 @@ class Event < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
# Region seems to disturb openstreetmap :(
|
[address, city, region.try(:name), region.try(:code)].compact.join ', '
|
||||||
# address, city].compact.join ', '
|
|
||||||
[address, city, region.try(:name)].compact.join ', '
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def hashtags
|
def hashtags
|
||||||
|
@ -88,9 +88,7 @@ class Orga < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def full_address
|
def full_address
|
||||||
# Region seems to disturb openstreetmap :(
|
[address, city, region.try(:name), region.try(:code)].compact.join ', '
|
||||||
# [address, city].compact.join ', '
|
|
||||||
[address, city, region.try(:name)].compact.join ', '
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user