Beginning to work on the functionality of the geolocator directive