REST API to handle geolocation