I am trying to: get the users location on the search page instead of the results page. Whats happening is the results page is displaying an error until the user clicks to share location. Also if location sharing is turned on sometime the page still shows the error until fully loaded.
Link to a page where the issue can be seen: hidden link << select a location and hit search. The results page is here: hidden link or hidden link depending on what search tab you use.
I expected to see: The results but instead
Instead, I got: the location services error repeated over and over from an internal loop. Also if location sharing is turned on sometime the page still shows the error until fully loaded.
Is it possible to get the user location prior to the results page? meaning the coordinates of the website visitor before the results page?
The results page requires the users location. So if it doesn't have the users location it askes for it via browser notification, then if the user click YES to share their location it displays the results.
An example would be when I come to the search page I get a browser notification that asks if I would like to share my location.