Use Nominatim to reverse geocode diary location information and display
a friendly human readable location instead of some coordinates.
This commit is contained in:
parent
1df4234c72
commit
0b913efd05
7 changed files with 40 additions and 9 deletions
|
@ -30,5 +30,9 @@ private
|
|||
expire_action(:controller => 'diary_entry', :action => 'rss', :language => nil, :display_name => nil)
|
||||
expire_action(:controller => 'diary_entry', :action => 'rss', :language => entry.language_code, :display_name => nil)
|
||||
expire_action(:controller => 'diary_entry', :action => 'rss', :language => nil, :display_name => entry.user.display_name)
|
||||
|
||||
if record.is_a?(DiaryEntry)
|
||||
expire_fragment(:controller => 'diary_entry', :action => 'view', :display_name => entry.user.display_name, :id => entry.id, :part => "location")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue