Proposa noves funcionalitats
#DecidimRoadmap Dissenyant el Decidim entre totes
Proposals - Improve address field user experience
We have received feedback that the address field is confusing. Users assume they can just enter the address, without giving the city as this instance of Decidim only concerns one city.
After they have entered an address, the points have been mapped e.g. to USA and Russia on the map as those are apparently the first results found from the geolocation service.
We should be able to configure a default city for the proposals component to fix this. This would allow the users to enter the street or location name and it would be automatically mapped to the correct city.
Another way to improve the user experience for the address selection would be to implement something similar what is available in Google Maps Platform (autocomplete feature):
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
Even with the autocomplete, I would see it beneficial if the geolocation queries could be restricted only to a specific city.
El desenvolupament d'aquesta proposta ha finalitzat
- Reviewed by @product and included in Decidim Roadmap
- It is funded by Mainio Tech
- Developed by Mainio Tech
- Available in release 0.23 via #6340
Llistat d'adhesions
Reportar contingut inapropiat
Aquest contingut no és apropiat?
13 comentaris
Conversa amb Armand
The autocomplete feature has a real added value for users. You will never know when your users want to mark something in this or this city.
Agreed with Armand. I think the autocomplete would be an optimal solution.
We are working on this :
- autocomplete
- restricting geocoding to a certain area (to avoid being pinned in Russia, Brazil for a local consultation)
@carol I understood recently that the pin displayed on the map above are only the ones from the proposal list displayed bellow which is very confusing. One would like to have all the proposal pinned on the map. What do you think ?
we're also working on the autocomplete! we just created the issue a few days ago: https://github.com/decidim/decidim/issues/6024
What do you mean with all the proposals? We're talking about the map in the context of a specific participation space, right?
@Virgile Deville have you thought further how you're gonna implement the geocoding to certain area?
I think the best option would be to use the "bounding box" parameter available e.g. with Here. There may be service specific differences regarding this (as there is also the other discussion to change Here to something better).
https://developer.here.com/documentation/geocoder/dev_guide/topics/resource-type-bounding-box.html
Change "here.com" for "Open Street Map"
So far we have implemented it simply just by customizing the geocoding validator and adding a suffix to the geocoding queries such as "{query}, Town, Country". It works better but we've noticed this also causes some of the results to be misinterpreted by the geocoder. E.g. someone had put an area name of a city in South Finland and it was geocoded to Lapland, even when the are name was correctly written and the area exists in that city.
Conversa amb Virgile Deville
Just the proposals from the component but all of them.
Currently only a few are being shown as pins on the maps.
Here is an image to be more clear.
https://imgur.com/aW1n0Z5
@carol
Oh yes, you're right! I should see al the proposals regardless of the first page (this reinforces my thesis that we should tend to have a triple view of components such as proposals or meetings: list, cards and map). Let's see if I can find the time to make a proposal detailing this.
@carol resurfaced this today while doing QA. Super interesting idea. Happy to work with you on this.
Yay! Let's think how to do it!
Conversa amb Virgile Deville
Hello @carol can you share some updates on this ?
Please link PR if there are any :)
@carol also we did a feature that limits the geocoding area to a country if you are interested https://github.com/OpenSourcePolitics/decidim/pull/951
This would be really cool to have but not only for the country, also to limit the city e.g. with the bounding box search. I believe most geocoders allow restricting the search with a bounding box (e.g. city's bounding coordinates).
This would allow getting rid of the matching results in other cities.
Deixa el teu comentari
Inicia la sessió amb el teu compte o registra't per afegir el teu comentari.
Carregant els comentaris ...