Update location
Description#
Allows couriers to update the system regarding their location. This serves the courier assignment mechanism.
Input#
Coordinates#
- Type
- Coordinates
- Validation
- Required
Address#
- Type
- String
- Validation
- Required
Mechanism#
- If the courier is not within any region and is not assigned to any delivery, toggle off their Entity propertyavailability.
- Save the following as the courier Entity propertylocation:
- Function inputCoordinates (as Entity propertyCoordinates)
- Function inputAddress (as Entity propertyAddress)
- Current region (as Entity propertyRegion)
- Current time (as Entity propertyLast updated)
Notes#
warning
- This function must be activated every 5 minutes in order to stay available.
- If the courier has an assigned delivery, the above note has no effect.