Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geolocation information by clicking on a map #264

Open
bruvellu opened this issue Dec 2, 2023 · 2 comments
Open

Add geolocation information by clicking on a map #264

bruvellu opened this issue Dec 2, 2023 · 2 comments
Assignees
Labels
feature Issues with ideas for new features

Comments

@bruvellu
Copy link
Owner

bruvellu commented Dec 2, 2023

Geolocation is an informative metadata, but it's not always embedded in the image. Users can input the latitude and longitude in the form, but it's time-consuming to switch to another page with a map, find out the coordinates, and then copy and paste the values.

To make it easier to input and edit geolocation data, the user could directly click on a map to extract the coordinates.

GeoDjango is a full app for dealing with geolocation data in Django. It might be an overkill for what we need, but it does seem to have a built-in functionality for extracting coordinates from a map by clicking (PointField). See this article for an example approach.

This functionality was included in the desktop editor Véliger. See the DockGeo class and the functions therein. How to convert between sexagesimal and decimal is here.

Currently, the fields storing latitude and longitude are regular a CharField. But perhaps more appropriate would be a DecimalField. The FloatField apparently is not ideal for that. How many digits should we include in these decimal values? According to this table, four digits give us an 11-meter accuracy, which should be good enough for the type of data we have. Or perhaps five digits (1m)? (also see the responses here)

Some map frameworks and APIs:

@bruvellu bruvellu added the feature Issues with ideas for new features label Dec 2, 2023
@bruvellu
Copy link
Owner Author

Initial implementation using Google Maps working since 0528ee0

@bruvellu
Copy link
Owner Author

bruvellu commented May 1, 2024

Google Maps requires a billing account to continue using. This may not be possible for us.

We should probably pivot to Leaflet which is active and has all the features we need.

@bruvellu bruvellu self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues with ideas for new features
Projects
None yet
Development

No branches or pull requests

1 participant