Open mattdavenport opened 5 years ago
User enters the location they're at. If that field's not empty, call out to an external API (Open Streetmap?) to make a best attempt at getting map coordinates. Optionally, use a local library to covert map coordinates into a plus.code for easy display.
Monica already has some support for LocationIQ to support converting street addresses into GPS coordinates (or back), so I expect that support for locations on journal entries could be added without needing any additional APIs or integrations.
I think it would be a great idea to add geolocation to journal entries. This way we can build a map of where we journal from, and search entries by location.
The initial iteration of this wouldn't require GMaps or any API, but rather a simple Location field to keep track of where we are journaling from. However future iterations could expand upon this, adding a Google Maps autocomplete field, which would then save coordinates into the database per entry. This could later be displayed (and filtered) on a map component.