Driver Locations Model

ActionMethodResourceDescription
Get allGET/users/:user_id/locationsGet all user locations with user_id.
Create POST/users:user_id/locationsCreate a user location with user_id.
Delete DELETE/users/user_id/locations/location_idDelete user location with user_id and location_id.

The driver locations model is composed of the following attributes:

AttributeTypeRequiredDescription
location jsonyesThe driver's position. (e.g. {"lat": 10, "lng": 10}). Click here to see full information about location estructure.
driver_idintyesThe driver's id.

📘

POST Restricticon

Only a user level 4 (Type: driver) can add his own driver location.