Hi , i understand that the “Near me” button triggers the geolocation (and makes the browser ask the user for location sharing permission), and then shows the location near me with lat/long.
I am using “selected cities’ in my directory and want to give the user and option to set the city based on the geolocation, rather than asking user to select using location switcher
ie. say i am currently in a city called “Pune” and the ‘near me” button takes me to this URL: https://yopune.com/location/near/me/18.5683732,73.9079119/
However, i would like it to see that this lcoation is in Pune, and so take me to https://yopune.com/location/maharashtra/pune
In my desired city location page, the links to CPTs are also changed to the city, whereas in the near/me/lat/long the CPT links are generic (all cities), and not contextualised to near me anymore
Any suggestions on how i can achieve this?
thanks,
Vivek