-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
Description
On the above-mentioned endpoint, currently we only match the city (we get the 'search' query as city, state, country). This leads to discrepancies in the profiles shown on the result page because two cities at different places can have the same name.
So, along with 'city', we should filter on the basis of the 'state' as well.
Steps to reproduce the issue
- Create two alumni profiles with same city names but different states (ex. Hamirpur is in both HP and UP, Aurangabad is in both Bihar and Maharashtra).
- Go to
localhost:8000/geolocationpage, zoom in to the city you just created the profile with at any one of the states, and click on it to go to the/members/mapseachpage. - You'll see that the list contains profiles from other states as well (but with same city name).