Wordpress fix order Resultset by distance

Job ID: 33821050

Budget: $30 – $250 USD

To goal is to show a search map with filters like this
https://kinepedia.be/zoek-een-therapeut/

but with sort on closest member first, filter options (fields of profile need to stay)

Possible solutions
1)Hack ultimate member, all date is present but for some seson sort by distance is not implemented
2) after short with JS (small resultset 20)
3)workaround with store location
add a shop location for every user location(0,1,2 locations per user) registered in the user accounts in Ultimate member with the members status.
And updated the store locations on change, remove actions on user account
auther of store location is the user.
store location is removed when user account loses member status.
4) your better idea

https://ultimatemember.com/

Store locator
https://wpstorelocator.co/documentation/

For solution 2
user story:new user
store location gets created with all relevant fields data copied from user profile
if praktijklocatie 1 or 2 is filled in
author is user
categories ar filter fields
specialisaties
huisbezoek
language flags

user story:update user
store location gets created/updated with all relevant fields data copied from user profile
if praktijklocation1 or 2 is filled or updated
author is user

user story: user loses member status or is removed
store location(s) gets removed
Related categories: WordPress Coding