---
# System prepended metadata

title: Driver tracking Apis

---

# Driver tracking Apis

### List all driver tracking info from order pickedup to delivery
- API: `/internal/api/v1/palantir/drivers-location`
- Method: `GET`
- Query Param:
  - `city`: Optional. City id. Integer Field
  - `driver_type`: Optinal. Driver type. Integer Field
      - `values`: `1`(bike) or `4`(bicycle)
  - `is_freelancer`: Optinal. Boolean Field(`true` or `false`). 
- Request Body: n/a
- Response:
    - code: `200`
      ```json
      {
          "data": [
              {
                  "id": 8888,
                  "name": "Md. Nure Alam Nahid",
                  "number": "01821182095",
                  "rating": "100%",
                  "profile_pic": "/uploads/img/profile/driver-01821182095-2021-12-09T06:40:13Z",
                  "latitude": 23.7767738,
                  "longitude": 90.4240898,
                  "completed_orders": 10,
                  "city_id": 1,
                  "driver_type": 4,
                  "is_freelancer": true
              }
          ]
      }
      ```
    - code: `200`
      ```json
      {
        "data": []
      }
      ```
    - code: `400`
    ```json
    {
        "message": "invaild is_freelancer query param: strconv.ParseBool: parsing \"true11\": invalid syntax"
    }
    ```
