some code added for geolocation -not tested!!

Have not tested.. revert if not working