adding geolocation API and events for coordinates processing