The geofencing API allows you to define perimeters, also referred to as geofences, which surround the areas of interest . Your app gets a notification when the device crosses a geofence, which allows you to provide a useful experience when users are in the vicinity.