Open PierreMesure opened 3 years ago
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.
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: