Propose new features
Designing Decidim together
Ability to use reverse geocoding
Is your feature request related to a problem? Please describe.
We were working on a module last year where you could not only add pins to the map of a proposal by the simple address geocoding, but also by clicking the map, which used the coordinates of the pins to fetch the addresses for the form. Simple geocoding was handled using the tools Decidim offered, but with the reverse geocoding we had to build the code from scratch.
Describe the solution you'd like
At the moment Decidim only supports address geocoding which allows the user to input an address and get the coordinates for it. However having reverse geocoding possibility ready in Decidim would benefit developers that want to create new modules for example.
Could this issue impact on users private data?
Something similar was proposed here: Position cursor on map to enter address
List of Endorsements
Report inappropriate content
Is this content inappropriate?
You are seeing a single comment
View all comments
Conversation with Ivan Vergés
Reverse geocoding is already supported once you create the proposal and the map is shown where you can move the pin around.
Also we made a module that enhances geocoding by adding a button with "use my location" that also uses reverese geocoding. See https://github.com/openpoke/decidim-module-reporting-proposals/pull/12
On the other hand, I don't totally understand what are you proposing here, the ability to create a proposal by clicking first on a place on a map?
At the moment if you move the pin around the map after writing the address it only updates the coordinates, not the address based on the coordinates. The proposal is indeed for the ability to click the map to mark a spot instead of writing an address on the input field.
Decidim has it's own reverse-geocoding logic in the backend (the one you're using in your module) but the goal would be to have reverse-geocoding in the frontend by calling the provider's -API (for example. "HERE") without any extra steps, like it does with simple-geocoding (https://github.com/decidim/decidim/blob/develop/decidim-core/app/packs/src/decidim/geocoding/provider/here.js).
This would be more efficient for the user, boosts the performance and also there would be no need to use modules for it.
Loading comments ...