Action | Method | Resource | Description |
---|---|---|---|
Get all | GET | /users/:user_id/locations | Get all user locations with user_id . |
Create | POST | /users:user_id/locations | Create a user location with user_id . |
Delete | DELETE | /users/user_id/locations/location_id | Delete user location with user_id and location_id . |
The driver locations model is composed of the following attributes:
Attribute | Type | Required | Description |
---|---|---|---|
location | json | yes | The driver's position. (e.g. {"lat": 10, "lng": 10} ). Click here to see full information about location estructure. |
driver_id | int | yes | The driver's id. |
POST Restricticon
Only a user level 4 (Type: driver) can add his own driver location.