add geolocation code