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

Make the search more powerful #8

Open
PierreMesure opened this issue May 26, 2021 · 1 comment
Open

Make the search more powerful #8

PierreMesure opened this issue May 26, 2021 · 1 comment
Labels
enhancement New feature or request medium priority

Comments

@PierreMesure
Copy link
Member

Problem

I had to make the search function dumber when adapting to a Swedish context. The French version can return results for your municipality and sorts the centers based on how far they are from you.

That is a bit harder to implement in Sweden for several reasons.

The first one is political, people need to get vaccinated in their region because of the regionalisation of the Swedish healthcare. So when returning results by proximity, it should still filter out those who are not in the region of your municipality.

Other than that:

  • Municipalities are bigger than in France so it would be harder to give an accurate proximity
  • Postcodes would be a smarter way to solve it since they refer to a much smaller area. But to my knowledge, there is no open data of postcodes in Sweden so we would have to ask nicely to a private service like postnummerservice.se.
  • Vite Ma Dose implements a really quick autocomplete for municipalities thanks to static files.
@PierreMesure PierreMesure added enhancement New feature or request medium priority labels May 26, 2021
@elden1337
Copy link

Would a quick as-the-crow-flies distance sort be good enough? Or is travel time a requirement?

Do we have regional geojson shapes? If so it could be utilized to measure the within of user and return only objects matching that regionid to the sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority
Projects
None yet
Development

No branches or pull requests

2 participants