title: How to pass a geolocation variable from client to server side
body: <p>Can someone please suggest me a method to pass a client side Java Script location variable (lat,lng) to my server side as soon as the user allows for his geolocation to be used. So that I can use the location variable to query my database for stores within a range of 10 km and display them on a map.</p>
  
  <p>I am using <a href="http://www.w3schools.com/html/html5_geolocation.asp" rel="nofollow">HTML5 Geolocation</a> on the client side for obtaining user's location and Django + PostGIS database on the server side for carrying out the distance lookups.</p>