Geodata on demand
This release introduces a new environment variable STORE_GEODATA
with default value true
to control whether to store geodata in the database or not. Currently, geodata is being used when:
- Fetching places geodata
- Fetching countries for a trip
- Suggesting place name for a visit
Opting out of storing geodata will make each feature that uses geodata to make a direct request to the geocoding service to calculate required data instead of using existing geodata from the database. Setting STORE_GEODATA
to false
can also use you some database space.
If you decide to opt out, you can safely delete your existing geodata from the database:
- Get into the console
- Run the following commands:
Point.update_all(geodata: {}) # to remove existing geodata
ActiveRecord::Base.connection.execute("VACUUM FULL") # to free up some space
Note, that this will take some time to complete, depending on the number of points you have. This is not a required step.
If you're running your own Photon instance, you can safely set STORE_GEODATA
to false
, otherwise it'd be better to keep it enabled, because that way Dawarich will be using existing geodata for its calculations.
Also, after updating to this version, Dawarich will start a huge background job to calculate countries for all your points. Just let it work.
Added

- Clicking on number of countries and cities in stats cards now opens a modal with a list of countries and cities visited in that year.

Changed
- Reverse geocoding is now working as on-demand job instead of storing the result in the database. #619
- Stats cards now show the last update time. #733
- Visit card now shows buttons to confirm or decline a visit only if it's not confirmed or declined yet.
- Distance unit is now being stored in the user settings. You can choose between kilometers and miles, default is kilometers. The setting is accessible in the user settings -> Maps -> Distance Unit. You might want to recalculate your stats after changing the unit. #1126

- Fog of war is now being displayed as lines instead of dots. Thanks to @MeijiRestored!
Fixed
- Fixed a bug with an attempt to write points with same lonlat and timestamp from iOS app. #1170
- Importing GeoJSON files now saves velocity if it was stored in either
velocity
orspeed
property. rake points:migrate_to_lonlat
should work properly now. #1083 #1161- PostGIS extension is now being enabled only if it's not already enabled. #1186
- Fixed a bug where visits were returning into Suggested state after being confirmed or declined. #848
- If no points are found for a month during stats calculation, stats are now being deleted instead of being left empty. #1066 #406
Removed
- Removed
DISTANCE_UNIT
constant. It can be safely removed from your environment variables in docker-compose.yml.
💙 This release is supported by Steven B., James Manolios, chenrik, aldumil, derpderpington, Chippie, dint, jhalpern, Lex Fradski, Schlufo, cyberswan.at, craftyklaus, JMyrng, Andre, hogenf, naraxius, Lemur, Embrace, martin4861, Alex, evetters, GregF, Jon Coffee, Lukas, Robbie G, Kilian, Hans G, Chris, tabaha, Andre, Michael C, Chris, DeaDHoRSe and Jonah B. on Patreon and KoFi 💙
What's Changed
- Fix GeoJSON import speed/velocity by @Freika in #1156
- Bump shoulda-matchers from 6.4.0 to 6.5.0 by @dependabot in #1172
- Bump chartkick from 5.1.4 to 5.1.5 by @dependabot in #1171
- Skip points without lonlat and timestamp from Owntracks by @Freika in #1174
- Fog of war improvements by @MeijiRestored in #1181
- Feature/store geodata by @Freika in #1177
- Feature/store geodata by @Freika in #1185
- Feature/mi km settings by @Freika in #1197
- Feature/countries and cities modal by @Freika in #1200
- 0.26.1 by @Freika in #1192
Full Changelog: 0.26.0...0.26.1