Need PHP code for getlocation on the same page

I hope that this the right forum. But have somebody for me the PHP code for Get location on the same page, I understand that I have to do that with AJAX but I dont know how.
What I want is that when people go to my site the location will retrieved and that you can see the distance to the stores on the website. [link removed by mod]

Hey peterbrk, I have worked with google get location. You can check the link here, (removed)

Thank you but that is not where I am looking for.

I know that. If you get the location then its easy to measure distance. Thats why I gave that link. Thank you

Envato Studio is a freelancer platform. I would like to recommend one of the Websites & Programming experts at Envato Studio.