NAV

សេចក្តីផ្តើម

អ្នករៀបចំផែនការផ្លូវ Zeo ជួយម្ចាស់កងនាវាបង្កើត និងបង្កើនប្រសិទ្ធភាពផ្លូវសម្រាប់អ្នកបើកបររបស់ពួកគេ។ ម្ចាស់កងនាវា ឬអាជីវកម្មខ្នាតតូចដែលធ្វើការដឹកជញ្ជូនម៉ាយល៍ចុងក្រោយក្នុងតំបន់អាចតាមដានស្ថានភាពដឹកជញ្ជូន ទីតាំងផ្ទាល់របស់អ្នកបើកបរ និងផ្ញើព័ត៌មានថ្មីៗតាមពេលវេលាជាក់ស្តែងដល់អតិថិជន។ កម្មវិធីទូរស័ព្ទរបស់ Zeo សម្រាប់អ្នកបើកបរដឹកជញ្ជូនត្រូវបានបំពាក់ជាមួយនឹងការរួមបញ្ចូលយ៉ាងរលូនជាមួយនឹងឧបករណ៍រុករកដ៏ពេញនិយមទាំងអស់ រួមទាំង waze, tomtom, Google maps ជាដើម។ កម្មវិធីបញ្ជាមានព័ត៌មានលម្អិតសំខាន់ៗទាំងអស់នៅចុងម្រាមដៃរបស់គាត់ រួមទាំងកំណត់ចំណាំ ព័ត៌មានលម្អិតអតិថិជន និងចំនួនកញ្ចប់។ Zeo គ្រប់គ្រងការបន្ថែម និងលុបអាសយដ្ឋានថាមវន្ត ហើយបញ្ជូនបន្តតាមលំដាប់ ដើម្បីផ្តល់នូវផ្លូវដែលប្រសើរឡើងបំផុត។ ជាមួយនឹងម្ចាស់កងនាវា Zeo សន្សំបានរហូតដល់ 200$ ក្នុងមួយខែក្នុងមួយអ្នកបើកបរ និងទទួលបានរបាយការណ៍ដែលមានគុណភាពខ្ពស់ដូចជា ភស្តុតាងនៃការដឹកជញ្ជូន ហត្ថលេខា និងត្រាពេលវេលាដឹកជញ្ជូន។

ការផ្ទៀងផ្ទាត់ភាពត្រឹមត្រូវ

ZeoRoutePlanner ប្រើសោ API ដើម្បីអនុញ្ញាតឱ្យចូលប្រើ API ។ អ្នកអាចចុះឈ្មោះសោ API ថ្មីនៅវេទិការបស់យើង (https://zeorouteplanner.com/app/team/settings/genrate-token).

ZeoRoutePlanner រំពឹងថាសម្រាប់សោ API នឹងត្រូវបានរួមបញ្ចូលនៅក្នុងសំណើ API ទាំងអស់ទៅកាន់ម៉ាស៊ីនមេនៅក្នុងប៉ារ៉ាម៉ែត្រដែលមើលទៅដូចខាងក្រោម៖

api_key: api_key

ម្ចាស់ហាង Api's

បង្កើតការឈប់

curl --location --request POST '{{base_url}}/api/v5/route_stop' \
--header 'Content-Type: application/json' \
--data-raw '{
    "api_key": "api_key",
    "stops": [
        {
            "address": "Gwalior Madhaya Predesh",
            "latitude": 0,
            "longitude": 0.0,
            "notes": "dsf",
            "optimize_status": "normal",
            "stop_duration": 5,
            "stop_date": "2022-03-10",
            "parcel_count": 2,
            "arrive_start": "now",
            "arrive_end": "anytime",
            "earliest": 0,
            "latest": 0,
            "driver_id": "",
            "stop_type": "delivery",
            "customer_name": "nishu",
            "customer_mobile_number": "+911234567890",
            "customer_email": "",
            "metadata": [{}]
        }
    ]
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "Stops added successfully"
}

ចំណុចបញ្ចប់នេះទាញយកកម្មវិធីបញ្ជាទាំងអស់។

សំណើរ HTTP

POST {{base_url}}/api/v5/route_stop

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
ឈប់ [{}] បញ្ឈប់អារេ

បញ្ឈប់​ប៉ារ៉ាម៉ែត្រ​វត្ថុ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
អាសយដ្ឋាន "" បញ្ឈប់អាសយដ្ឋាន
latitude "" អាសយដ្ឋាន រយៈទទឹង
រយៈបណ្តោយ "" អាសយដ្ឋានបណ្តោយ
កំណត់ចំណាំ "" សារណាមួយដែលត្រូវបន្ថែម
optimize_status "ធម្មតា"
stop_រយៈពេល "នៅឈប់"
មកដល់_ចាប់ផ្តើម "" "ឥឡូវ​នេះ"
មកដល់_ចុង "" "ពេលណាក៏បាន"
ឆាប់​បំផុត ""
ថ្មីបំផុត ""
stop_type "" (ការដឹកជញ្ជូន / យក)
ឈ្មោះ​អតិថិជន "" ឈ្មោះ​អតិថិជន
customer_mobile_number "" លេខទំនាក់ទំនងអតិថិជន
driver_id "" លេខសម្គាល់អ្នកបើកបរ
stop_date "" កាលបរិច្ឆេទឈប់
parcel_count 1 ចំនួនកញ្ចប់
ទិន្នន័យមេតា [] វាលផ្ទាល់ខ្លួន

ទទួលបានអ្នកបើកបរទាំងអស់។

curl --location -g --request GET '{{base_url}}/api/v5/drivers?api_key=api_key'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "success",
  "data": {
    "drivers": [
      {
        "id": 44914,
        "email": "0f12ebdd@gmail.com",
        "name": "nishu jain",
        "address": null,
        "phone_no": "8959294300",
        "active": true
      }
    ]
  }
}

ចំណុចបញ្ចប់នេះទាញយកកម្មវិធីបញ្ជាទាំងអស់។

សំណើរ HTTP

GET {{base_url}}/api/v5/drivers

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api

បង្កើត Driver

curl --location -g --request POST '{{base_url}}/api/v5/drivers' \
--header 'Content-Type: application/json' \
--data-raw '{
  "api_key": "api_key",
  "email": "nishu.jain396@gmail.com",
  "address": "Netaji Subhash Marg, Lal Qila, Chandni Chowk, New Delhi, Delhi 110006",
  "password": "12345678",
  "name": "nishu jain",
  "phone_no": " "
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "Driver created successfully",
  "data": {
    "driver": {
      "id": 44953,
      "email": "testthird1@gmail.com",
      "name": "test",
      "address": "Netaji Subhash Marg, Lal Qila, Chandni Chowk, New Delhi, Delhi 110006",
      "phone_no": "+918959294300",
      "active": true
    }
  }
}

ចំណុចបញ្ចប់នេះបង្កើតកម្មវិធីបញ្ជា។

សំណើរ HTTP

POST {{base_url}}/api/v5/drivers

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
អ៊ីម៉ែល "" អ៊ីមែលអ្នកបើកបរ
អាសយដ្ឋាន "" អាសយដ្ឋានអ្នកបើកបរ
ពាក្យសម្ងាត់ "" ពាក្យសម្ងាត់សម្រាប់គណនីអ្នកបើកបរ
ឈ្មោះ "" ឈ្មោះអ្នកបើកបរ
លេខទូរស័ព្ទ "" ទំនាក់ទំនងលេខ

ធ្វើបច្ចុប្បន្នភាពកម្មវិធីបញ្ជា

curl --location -g --request PUT '{{base_url}}/api/v5/drivers/:driver_id' \
--header 'Content-Type: application/json' \
--data-raw '{
  "api_key": "api_key",
  "name": "nishu jain",
    "address": "",
  "phone_no": "8959294300"
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "Driver updated successfully",
  "data": {
    "driver": {
      "id": 44953,
      "name": "nishu jain",
      "phone_no": "8959294300",
      "address": "dlehi",
      "email": "testthird1@gmail.com",
      "active": true
    }
  }
}

ចំណុចបញ្ចប់នេះធ្វើបច្ចុប្បន្នភាពព័ត៌មានលម្អិតអំពីកម្មវិធីបញ្ជា។

សំណើរ HTTP

PUT {{base_url}}/api/v5/drivers/:driver_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
អាសយដ្ឋាន "" អាសយដ្ឋានអ្នកបើកបរ
ឈ្មោះ "" ឈ្មោះអ្នកបើកបរ
លេខទូរស័ព្ទ "" ទំនាក់ទំនងលេខអ្នកបើកបរ
driver_id "" លេខសម្គាល់អ្នកបើកបរដែលយើងទទួលបានពីកម្មវិធីបញ្ជា api ទាំងអស់។

លុបកម្មវិធីបញ្ជា

curl --location -g --request DELETE '{{base_url}}/api/v5/drivers/:driver_id' \
--header 'Content-Type: application/json' \
--data-raw '{
  "api_key": "api_key"
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "Driver deleted successful"
}

ចំណុចបញ្ចប់នេះលុបកម្មវិធីបញ្ជា។

សំណើរ HTTP

DELETE {{base_url}}/api/v5/drivers/:driver_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
driver_id "" លេខសម្គាល់អ្នកបើកបរដែលយើងទទួលបានពីកម្មវិធីបញ្ជា api ទាំងអស់។

បង្កើតផ្លូវ

curl --location -g --request POST '{{base_url}}/api/v5/routes' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "start_address"  :   "Monroe, NC, USA",
   "start_latitude"   : 0.0,
   "start_longitude"   :0.0,
   "end_address"  :   "Monroe, NC, USA",
   "end_latitude"   : 0.0,
   "end_longitude"   :0.0,
   "route_name"  :   "July 2020 Roadtrip",
   "driver_id": "44968",
   "orginal": true,
   "route_date": "",
   "stops"  : [
    {
    "address": "Gwalior Madhaya Predesh", 
    "latitude":106.672053, 
    "longitude":0.0, 
    "notes":"dsf", 
    "optimize_status":"normal",
    "stop_duration":5, 
    "parcel_count": "",
    "arrive_start":"now", 
    "arrive_end":"anytime", 
    "earliest":0, 
    "latest":0, 
    "stop_type":"delivery", 
    "customer_name":"nishu",
    "customer_mobile_number":"+911234567890",
    "metadata": [{}]
    }
  ]
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "success",
  "data": {
    "route": {
        "id": 103110,
        "start_address": "new york",
        "end_address": "new york",
        "start_latitude": 40.7128,
        "start_longitude": 74.006,
        "end_latitude": 40.7128,
        "end_longitude": 74.006,
        "created_at": "2021-07-21T04:07:41.000Z",
        "route_name": "test",
        "route_stops": [
          {
            "id": 222472903,
            "address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
            "latitude": 25.9330248,
            "longitude": -80.2445472,
            "notes": "GOod",
            "optimize_status": "normal",
            "stop_duration": 10,
            "customer_name": "",
            "customer_mobile_number": "",
            "street": "17475 NW 27th Ave, Miami Gardens, FL 33056, EE. UU.",
            "city": "Miami-Dade County",
            "state": "Florida",
            "country": "Estados Unidos",
            "postal_code": "33056",
            "customer_email": "",
            "order_number": "",
            "order_status": "route_created",
            "h_no": "",
            "locality": ""
         }
      ]
    }
  }
}

ចំណុចបញ្ចប់នេះបង្កើតផ្លូវ។

សំណើរ HTTP

POST {{base_url}}/api/v5/routes

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
driver_id "" លេខសម្គាល់អ្នកបើកបរដែលយើងទទួលបានពីកម្មវិធីបញ្ជា api ទាំងអស់។
អាសយដ្ឋានចាប់ផ្តើម "" ផ្លូវចាប់ផ្តើមអាសយដ្ឋាន
start_latitude "" ចាប់ផ្តើមអាសយដ្ឋាន Latitude
start_longitude "" ចាប់ផ្តើមអាសយដ្ឋាន រយៈបណ្តោយ
អាសយដ្ឋានបញ្ចប់ "" អាសយដ្ឋានផ្លូវបញ្ចប់
end_latitude "" បញ្ចប់អាសយដ្ឋាន Latitude
end_longitude "" អាសយដ្ឋានបញ្ចប់ រយៈបណ្តោយ
route_name "" ឈ្មោះផ្លូវ
driver_id "" លេខ​សម្គាល់​កម្មវិធី​បញ្ជា​ដើម្បី​កំណត់​ផ្លូវ
ដើម ""
ឈប់ [] ឈប់រវាងផ្លូវ
កាលបរិច្ឆេទផ្លូវ '' កាលបរិច្ឆេទផ្លូវ

បញ្ឈប់​ប៉ារ៉ាម៉ែត្រ​វត្ថុ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
អាសយដ្ឋាន "" បញ្ឈប់អាសយដ្ឋាន
latitude "" អាសយដ្ឋាន រយៈទទឹង
រយៈបណ្តោយ "" អាសយដ្ឋានបណ្តោយ
កំណត់ចំណាំ "" សារណាមួយដែលត្រូវបន្ថែម
optimize_status "ធម្មតា"
stop_រយៈពេល "នៅឈប់"
មកដល់_ចាប់ផ្តើម "" "ឥឡូវ​នេះ"
មកដល់_ចុង "" "ពេលណាក៏បាន"
ឆាប់​បំផុត ""
ថ្មីបំផុត ""
stop_type "" (ការដឹកជញ្ជូន / យក)
ឈ្មោះ​អតិថិជន "" ឈ្មោះ​អតិថិជន
customer_mobile_number "" លេខទំនាក់ទំនងអតិថិជន
parcel_count 1 ចំនួនកញ្ចប់
ទិន្នន័យមេតា [{}] វាលផ្ទាល់ខ្លួន

ទទួលបានព័ត៌មានផ្លូវ

curl --location -g --request GET '{{base_url}}/api/v5/routes/:route_id' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "success",
  "data": {
    "route": {
      "id": 103110,
      "start_address": "new york",
      "end_address": "new york",
      "start_latitude": 40.7128,
      "start_longitude": 74.006,
      "end_latitude": 40.7128,
      "end_longitude": 74.006,
      "created_at": "2021-07-21T04:07:41.000Z",
      "route_name": "test",
      "route_stops": [
        {
          "id": 222472903,
          "address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
          "latitude": 25.9330248,
          "longitude": -80.2445472,
          "notes": "GOod",
          "optimize_status": "normal",
          "stop_duration": 10,
          "customer_name": "",
          "customer_mobile_number": "",
          "street": "17475 NW 27th Ave, Miami Gardens, FL 33056, EE. UU.",
          "city": "Miami-Dade County",
          "state": "Florida",
          "country": "Estados Unidos",
          "postal_code": "33056",
          "customer_email": "",
          "order_number": "",
          "order_status": "route_created",
          "h_no": "",
          "locality": ""
        }
      ]
    }
  }
}

ចំណុចបញ្ចប់នេះទទួលបានព័ត៌មានផ្លូវ។

សំណើរ HTTP

GET {{base_url}}/api/v5/routes/:route_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
លេខសម្គាល់ផ្លូវ "" លេខសម្គាល់ផ្លូវដែលយើងទទួលបានពីបញ្ជីផ្លូវ
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

ទទួលបានព័ត៌មានដែលធ្វើអោយប្រសើរឡើងនូវផ្លូវ

curl --location -g --request GET '{{base_url}}/api/v5/routes/:route_id/optimize_route' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "optimized": true,
        "legs": [
            {
                "distance": {
                    "text": "0 km",
                    "value": 0
                },
                "duration": {
                    "text": "",
                    "value": 0
                },
                "end_address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
                "start_address": "new york",
                "start_location": {
                    "lat": 25.9330248,
                    "lng": -80.2445472
                },
                "end_location": {
                    "lat": 25.9330248,
                    "lng": -80.2445472
                },
                "stop_id": "222473116",
                "optimize_status": "normal",
                "stop_type": "delivery",
                "arr_time": 0,
                "end_time": 600,
                "optimize_order": 1,
                "stop_order": null,
                "share_stop_id": null,
                "address_typed": {},
                "overview_polyline": "cah}CnwwhN"
            },
            {
                "distance": {
                    "text": "0 km",
                    "value": 0
                },
                "duration": {
                    "text": "10 mins",
                    "value": 600
                },
                "end_address": "new york",
                "start_address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
                "start_location": {
                    "lat": 25.9330248,
                    "lng": -80.2445472
                },
                "end_location": {
                    "lat": 25.9330248,
                    "lng": -80.2445472
                },
                "stop_id": null,
                "optimize_status": "normal",
                "stop_type": "normal",
                "arr_time": 600,
                "end_time": 0,
                "optimize_order": 2,
                "stop_order": 2000,
                "share_stop_id": 0,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "cah}CnwwhN"
            }
        ]
    }
}

ចំណុចបញ្ចប់នេះទទួលបានព័ត៌មានផ្លូវ។

សំណើរ HTTP

GET {{base_url}}/api/v5/routes/:route_id/optimize_route

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

លុបផ្លូវ

curl --location -g --request DELETE '{{base_url}}/api/v5/routes/:route_id' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "Route deleted successfully"
}

ផ្លូវលុបចំណុចបញ្ចប់នេះ។

សំណើរ HTTP

DELETE {{base_url}}/api/v5/routes/:route_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
លេខសម្គាល់ផ្លូវ "" លេខសម្គាល់ផ្លូវដែលយើងទទួលបានពីបញ្ជីផ្លូវ
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

ទទួលបានផ្លូវអ្នកបើកបរទាំងអស់។

curl --location -g --request GET '{{base_url}}/api/v5/routes' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "limit": 10,
   "offset": 10,
   "driver_id": "driver_id"
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "success",
  "data": {
    "routes": [
      {
        "id": 103110,
        "start_address": "new york",
        "end_address": "new york",
        "start_latitude": 40.7128,
        "start_longitude": 74.006,
        "end_latitude": 40.7128,
        "end_longitude": 74.006,
        "created_at": "2021-07-21T04:07:41.000Z",
        "route_name": "test",
        "route_stops": [
          {
            "id": 222472903,
            "address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
            "latitude": 25.9330248,
            "longitude": -80.2445472,
            "notes": "GOod",
            "optimize_status": "normal",
            "stop_duration": 10,
            "customer_name": "",
            "customer_mobile_number": "",
            "street": "17475 NW 27th Ave, Miami Gardens, FL 33056, EE. UU.",
            "city": "Miami-Dade County",
            "state": "Florida",
            "country": "Estados Unidos",
            "postal_code": "33056",
            "customer_email": "",
            "order_number": "",
            "order_status": "route_created",
            "h_no": "",
            "locality": ""
          }
        ]
      }
    ],
    "total_routes": 1
  }
}

ចំណុចបញ្ចប់នេះទៅយកផ្លូវទាំងអស់។

សំណើរ HTTP

GET {{base_url}}/api/v5/routes

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
ដែនកំណត់ 50 កំណត់ត្រាដើម្បីត្រឡប់
អុហ្វសិត 0 កំណត់ត្រាបន្ទាប់ដើម្បីត្រឡប់
driver_id លេខសម្គាល់អ្នកបើកបរ

ទទួលបានផ្លូវម្ចាស់ហាងទាំងអស់។

curl --location -g --request GET '{{base_url}}/api/v5/routes/all_routes' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "limit": 10,
   "offset": 10,
   "start_date": dd-mm-yyyy,
   "end_date": dd-mm-yyyy
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "success",
  "data": {
    "routes": [
      {
        "id": 103110,
        "start_address": "new york",
        "end_address": "new york",
        "start_latitude": 40.7128,
        "start_longitude": 74.006,
        "end_latitude": 40.7128,
        "end_longitude": 74.006,
        "created_at": "2021-07-21T04:07:41.000Z",
        "route_name": "test",
        "route_stops": [
          {
            "id": 222472903,
            "address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA",
            "latitude": 25.9330248,
            "longitude": -80.2445472,
            "notes": "GOod",
            "optimize_status": "normal",
            "stop_duration": 10,
            "customer_name": "",
            "customer_mobile_number": "",
            "street": "17475 NW 27th Ave, Miami Gardens, FL 33056, EE. UU.",
            "city": "Miami-Dade County",
            "state": "Florida",
            "country": "Estados Unidos",
            "postal_code": "33056",
            "customer_email": "",
            "order_number": "",
            "order_status": "route_created",
            "h_no": "",
            "locality": ""
          }
        ]
      }
    ],
    "total_routes": 1
  }
}

ចំណុចបញ្ចប់នេះទៅយកផ្លូវទាំងអស់។

សំណើរ HTTP

GET {{base_url}}/api/v5/routes/all_routes

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
ដែនកំណត់ 50 កំណត់ត្រាដើម្បីត្រឡប់
អុហ្វសិត 0 កំណត់ត្រាបន្ទាប់ដើម្បីត្រឡប់
ថ្ងៃ​ចាប់ផ្តើម គ្មាន កាលបរិច្ឆេទចាប់ផ្តើមផ្លូវ (dd-mm-yyyy)
កាលបរិច្ឆេទបញ្ចប់ គ្មាន កាលបរិច្ឆេទបញ្ចប់ផ្លូវ (dd-mm-yyyy)

បង្កើតផ្លូវសម្រាប់អ្នកបើកបរដោយម្ចាស់ហាង

curl --location --request POST '{{base_url}}/api/v5/routes/import_orders' \
--header 'Content-Type: multipart/form-data' \
--form 'start_address=""' \
--form 'end_address=""' \
--form 'driver_email="\"\""' \
--form 'api_key="\"\""' \
--form 'file=@"/path/to/file"'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "route": {
            "id": 104244,
            "start_address": "Delhi",
            "end_address": "Delhi",
            "start_latitude": 28.7040592,
            "start_longitude": 77.1024902,
            "end_latitude": 28.7040592,
            "end_longitude": 77.1024902,
            "created_at": "2021-09-27T06:18:29.000Z",
            "route_name": "2021-Sep-09",
            "route_stops": [
                {
                    "id": 16921825,
                    "address": "Delhi",
                    "latitude": 28.7040592,
                    "longitude": 77.1024902,
                    "notes": "test",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "ayush",
                    "customer_mobile_number": "7838479870",
                    "street": "",
                    "city": "",
                    "state": "Delhi",
                    "country": "India",
                    "postal_code": "",
                    "customer_email": "ayush@gmail.com",
                    "order_number": null,
                    "order_status": "route_created",
                    "h_no": "",
                    "locality": ""
                }
            ]
        }
    }
}

ចំណុចបញ្ចប់នេះប្រើសម្រាប់បង្កើតផ្លូវសម្រាប់អ្នកបើកបរ។

សំណើរ HTTP

POST {{base_url}}/api/v5/routes/import_orders

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" Api Access key (ចូលទៅកាន់ទំព័រ គេហទំព័រ url ចូលទៅក្នុងគណនីម្ចាស់ហាង បន្ទាប់មកចូលទៅកាន់ទំព័រ ទំព័រកំណត់ជ្រើសរើស get api token ហើយបង្កើត api_key)
អាសយដ្ឋានចាប់ផ្តើម "" អាសយដ្ឋានចាប់ផ្តើមនៃផ្លូវ
អាសយដ្ឋានបញ្ចប់ "" អាសយដ្ឋានចុងក្រោយនៃផ្លូវ
driver_អ៊ីមែល "" អ៊ីមែលរបស់អ្នកបើកបរ
ឯកសារ "" ផ្ទុកឡើងឯកសារក្នុងទម្រង់ xlsx អ្នកអាចទាញយកដោយចុចលើតំណ (តំណភ្ជាប់ឯកសារគំរូ)

ការដឹកជញ្ជូនទៅយក

បង្កើតផ្លូវ

curl -X POST \
  {{base_url}}/api/v6/routes/ \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: 5c922b4b-faf5-ea12-5660-518110acc248' \
  -d '{
  "api_key": "**************",
  "driver_id": 11111111111111,
  "start_address":"Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
  "start_latitude":19.1190749,
  "start_longitude":72.8951151,
  "end_address":"Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
  "end_latitude":19.1190749,
  "end_longitude":72.8951151,
  "route_name":"04-Jan-2022",
  "stops":[
    {
      "id":1633502641818,
      "address":"Taj Mahal pikcup",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"pickup",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":0,
      "address_typed":{
        "delivery_count":1
      },
      "stop_duration": 2,
      "stop_order": 1,
      "metadata": [{}]
    },
    {
      "id":0,
      "address":"Taj Mahal pickup link delivery",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"delivery",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":1633502641818,
      "address_typed":{
        "delivery_count":0
      },
      "stop_duration": 2,
      "stop_order": 2
    },
    {
      "id":0,
      "address":"Taj Mahal seperate delivery",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"delivery",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":0,
      "address_typed":{
        "delivery_count":0
      },
      "stop_duration": 2,
      "stop_order": 2
    }
  ]
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "route": {
            "id": 103169,
            "route_name": "04-Jan-2022",
            "start_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "end_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "start_latitude": 19.1190749,
            "start_longitude": 72.8951151,
            "end_latitude": 19.1190749,
            "end_longitude": 72.8951151,
            "created_at": "2022-01-11T11:48:16.000Z",
            "route_stops": [
                {
                    "id": 222473230,
                    "address": "Taj Mahal seperate delivery",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 2,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 222473231,
                    "address": "Taj Mahal pickup",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 1
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 1,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 222473232,
                    "address": "Taj Mahal pickup linked delivery",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 2,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 222473231
                }
            ]
        }
    }
}

ចំណុចបញ្ចប់នេះបង្កើតផ្លូវ។

សំណើរ HTTP

POST {{base_url}}/api/v6/routes

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ ប្រភេទ​ទិន្នន័យ Default ការពិពណ៌នា
driver_id int (*) ត្រូវការ driver_id សម្រាប់បង្កើតផ្លូវ
អាសយដ្ឋានចាប់ផ្តើម ខ្សែអក្សរ (*) អាសយដ្ឋានពីកន្លែងដែលផ្លូវចាប់ផ្តើម
start_latitude ទសភាគ 0 ទាមទារទាំង start_address ឬ start_latitude,start_longitude
start_longitude ទសភាគ 0 ទាមទារទាំង start_address ឬ start_latitude,start_longitude
អាសយដ្ឋានបញ្ចប់ ខ្សែអក្សរ ទីតាំងចុងក្រោយនៃផ្លូវ
end_latitude ទសភាគ ទាមទារទាំង end_address ឬ end_latitude, end_longitude
end_longitude ទសភាគ ទាមទារទាំង end_address ឬ end_latitude, end_longitude
route_name ខ្សែអក្សរ (*) កាលបរិច្ឆេទបច្ចុប្បន្ន (dd/mm/yy) ឈ្មោះផ្លូវ
ឈប់ អារេនៃវត្ថុ (*) បញ្ឈប់ព័ត៌មាននៅក្នុងអារេនៃវត្ថុ

បញ្ឈប់​ប៉ារ៉ាម៉ែត្រ​វត្ថុ

ប៉ា​រ៉ា​មែ​ត្រ ប្រភេទ​ទិន្នន័យ Default ការពិពណ៌នា
id INT (*) 0 1. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូន មិនចាំបាច់ផ្ញើលេខសម្គាល់ទេ។
2. ប្រសិនបើ stop_type pickup បន្ទាប់មកត្រូវផ្ញើលេខ 20 ខ្ទង់
stop_order int (*) 0 បន្ថែមលំដាប់នៃការឈប់
share_stop_id int 0 1. ប្រសិនបើ stop_type គឺ pickup ទុកវាជាលំនាំដើម
2. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូន ហើយមិនចង់ភ្ជាប់ជាមួយការទទួល ទុកវាជាលំនាំដើម
3. ប្រសិនបើអ្នកចង់ភ្ជាប់ជាមួយការទទួលណាមួយ បន្ទាប់មកដាក់លេខសម្គាល់នៃការឈប់ទទួលនោះ។
stop_type ខ្សែអក្សរ ចែកចាយ តម្លៃគួរតែជាការដឹកជញ្ជូន និងការទទួល
អាសយដ្ឋាន ខ្សែអក្សរ ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
latitude ទសភាគ 0 ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
រយៈបណ្តោយ ទសភាគ 0 ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
កំណត់ចំណាំ ខ្សែអក្សរ បញ្ឈប់ព័ត៌មានពាក់ព័ន្ធ
stop_រយៈពេល int 2 បញ្ជាក់រយៈពេលនៃការឈប់ជានាទី ពោលគឺរយៈពេលដែលវាត្រូវចំណាយពេលនៅកន្លែងអតិថិជន។
ឈ្មោះ​អតិថិជន ខ្សែអក្សរ ព័ត៌មានអតិថិជន
customer_mobile_number ខ្សែអក្សរ ព័ត៌មានអតិថិជន
customer_email ខ្សែអក្សរ ព័ត៌មានអតិថិជន
address_typed {} {} 1. ប្រសិនបើ stop_type គឺ pickup នោះ key គឺ delivery_count ហើយតម្លៃគឺស្ថិតនៅក្នុងចំនួនសរុបនៃការដឹកជញ្ជូនត្រូវបានភ្ជាប់ជាមួយការយកនេះ
2. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូនទុកវាជាលំនាំដើម

ធ្វើបច្ចុប្បន្នភាពផ្លូវ

curl -X POST \
  {{base_url}}/api/v6/routes/:route_id \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'postman-token: 5c922b4b-faf5-ea12-5660-518110acc248' \
  -d '{
  "api_key": "**************",
  "driver_id": 11111111111111,
  "start_address":"Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
  "start_latitude":19.1190749,
  "start_longitude":72.8951151,
  "end_address":"Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
  "end_latitude":19.1190749,
  "end_longitude":72.8951151,
  "route_name":"04-Jan-2022",
  "stops":[
    {
      "id":1633502641818,
      "address":"Taj Mahal pikcup",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"pickup",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":0,
      "address_typed":{
        "delivery_count":1
      },
      "stop_duration": 2,
      "stop_order": 1
    },
    {
      "id":0,
      "address":"Taj Mahal pickup link delivery",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"delivery",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":1633502641818,
      "address_typed":{
        "delivery_count":0
      },
      "stop_duration": 2,
      "stop_order": 2
    },
    {
      "id":0,
      "address":"Taj Mahal seperate delivery",
      "latitude":18.9225854,
      "longitude":72.83315429999999,
      "notes":"parsal in the left site",
      "stop_type":"delivery",
      "customer_name":"any",
      "customer_mobile_number":"0123456789",
      "customer_email":"example@gmail.com",
      "share_stop_id":0,
      "address_typed":{
        "delivery_count":0
      },
      "stop_duration": 2,
      "stop_order": 2
    }
  ]
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "route": {
            "id": 103169,
            "route_name": "04-Jan-2022",
            "start_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "end_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "start_latitude": 19.1190749,
            "start_longitude": 72.8951151,
            "end_latitude": 19.1190749,
            "end_longitude": 72.8951151,
            "created_at": "2022-01-11T11:48:16.000Z",
            "route_stops": [
                {
                    "id": 222473230,
                    "address": "Taj Mahal seperate delivery",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 2,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 222473231,
                    "address": "Taj Mahal pickup",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 1
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 1,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 222473232,
                    "address": "Taj Mahal pickup linked delivery",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "parsal in the left site",
                    "optimize_status": "normal",
                    "stop_duration": 2,
                    "customer_name": "any",
                    "customer_mobile_number": "0123456789",
                    "street": "",
                    "city": "",
                    "state": "",
                    "country": "",
                    "postal_code": "",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "example@gmail.com",
                    "order_number": null,
                    "order_status": null,
                    "stop_order": 2,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 222473231
                }
            ]
        }
    }
}

ផ្លូវធ្វើបច្ចុប្បន្នភាពចំណុចបញ្ចប់នេះ។

សំណើរ HTTP

POST {{base_url}}/api/v6/routes/:route_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ ប្រភេទ​ទិន្នន័យ Default ការពិពណ៌នា
driver_id int (*) ត្រូវការ driver_id សម្រាប់បង្កើតផ្លូវ
អាសយដ្ឋានចាប់ផ្តើម ខ្សែអក្សរ (*) អាសយដ្ឋានពីកន្លែងដែលផ្លូវចាប់ផ្តើម
start_latitude ទសភាគ 0 ទាមទារទាំង start_address ឬ start_latitude,start_longitude
start_longitude ទសភាគ 0 ទាមទារទាំង start_address ឬ start_latitude,start_longitude
អាសយដ្ឋានបញ្ចប់ ខ្សែអក្សរ ទីតាំងចុងក្រោយនៃផ្លូវ
end_latitude ទសភាគ ទាមទារទាំង end_address ឬ end_latitude, end_longitude
end_longitude ទសភាគ ទាមទារទាំង end_address ឬ end_latitude, end_longitude
route_name ខ្សែអក្សរ (*) កាលបរិច្ឆេទបច្ចុប្បន្ន (dd/mm/yy) ឈ្មោះផ្លូវ
ឈប់ អារេនៃវត្ថុ (*) បញ្ឈប់ព័ត៌មាននៅក្នុងអារេនៃវត្ថុ

បញ្ឈប់​ប៉ារ៉ាម៉ែត្រ​វត្ថុ

ប៉ា​រ៉ា​មែ​ត្រ ប្រភេទ​ទិន្នន័យ Default ការពិពណ៌នា
id INT (*) 0 1. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូន មិនចាំបាច់ផ្ញើលេខសម្គាល់ទេ។
2. ប្រសិនបើ stop_type pickup បន្ទាប់មកត្រូវផ្ញើលេខ 20 ខ្ទង់
stop_order int (*) 0 បន្ថែមលំដាប់នៃការឈប់
share_stop_id int 0 1. ប្រសិនបើ stop_type គឺ pickup ទុកវាជាលំនាំដើម
2. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូន ហើយមិនចង់ភ្ជាប់ជាមួយការទទួល ទុកវាជាលំនាំដើម
3. ប្រសិនបើអ្នកចង់ភ្ជាប់ជាមួយការទទួលណាមួយ បន្ទាប់មកដាក់លេខសម្គាល់នៃការឈប់ទទួលនោះ។
stop_type ខ្សែអក្សរ ចែកចាយ តម្លៃគួរតែជាការដឹកជញ្ជូន និងការទទួល
អាសយដ្ឋាន ខ្សែអក្សរ ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
latitude ទសភាគ 0 ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
រយៈបណ្តោយ ទសភាគ 0 ទាមទារអាសយដ្ឋាន ឬរយៈទទឹង រយៈបណ្តោយ
កំណត់ចំណាំ ខ្សែអក្សរ បញ្ឈប់ព័ត៌មានពាក់ព័ន្ធ
stop_រយៈពេល int 2 បញ្ជាក់រយៈពេលនៃការឈប់ជានាទី ពោលគឺរយៈពេលដែលវាត្រូវចំណាយពេលនៅកន្លែងអតិថិជន។
ឈ្មោះ​អតិថិជន ខ្សែអក្សរ ព័ត៌មានអតិថិជន
customer_mobile_number ខ្សែអក្សរ ព័ត៌មានអតិថិជន
customer_email ខ្សែអក្សរ ព័ត៌មានអតិថិជន
address_typed {} {} 1. ប្រសិនបើ stop_type គឺ pickup នោះ key គឺ delivery_count ហើយតម្លៃគឺស្ថិតនៅក្នុងចំនួនសរុបនៃការដឹកជញ្ជូនត្រូវបានភ្ជាប់ជាមួយការយកនេះ
2. ប្រសិនបើ stop_type គឺជាការដឹកជញ្ជូនទុកវាជាលំនាំដើម

ទទួលបានព័ត៌មានផ្លូវ

curl --location -g --request GET '{{base_url}}/api/v6/routes/:route_id' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "route": {
            "id": 104248,
            "start_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "end_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
            "start_latitude": 19.1190749,
            "start_longitude": 72.8951151,
            "end_latitude": 19.1190749,
            "end_longitude": 72.8951151,
            "created_at": "2021-12-30T07:32:10.000Z",
            "route_name": "06-Oct-2021",
            "route_stops": [
                {
                    "id": 16921846,
                    "address": "Taj Mahal Tower, Mumbai, PJ Ramchandani Marg, Apollo Bandar, Colaba, Mumbai, Maharashtra, India",
                    "latitude": 18.9225854,
                    "longitude": 72.8331543,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "PJ Ramchandani Marg, Apollo Bandar, Colaba, Mumbai, Maharashtra 400001, India",
                    "city": "Mumbai",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400001",
                    "address_typed": {
                        "delivery_count": 2
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 16921847,
                    "address": "Juhu Beach, Mumbai, Maharashtra",
                    "latitude": 19.1095171,
                    "longitude": 72.8241298,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "Juhu Beach, Juhu, Mumbai, Maharashtra 400049, India",
                    "city": "Mumbai Suburban",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400049",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 16921846
                },
                {
                    "id": 16921848,
                    "address": "JW Marriott Mumbai Juhu, Juhu Road, Juhu Tara, Juhu, Mumbai, Maharashtra, India",
                    "latitude": 19.1018504,
                    "longitude": 72.8262233,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "Juhu Rd, Juhu Tara, Juhu, Mumbai, Maharashtra 400049, India",
                    "city": "Mumbai Suburban",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400049",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 16921846
                },
                {
                    "id": 16921849,
                    "address": "Hotel Sea Princess, Juhu Road, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra, India",
                    "latitude": 19.09326,
                    "longitude": 72.8281264,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "Juhu Rd, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra 400049, India",
                    "city": "Mumbai Suburban",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400049",
                    "address_typed": {
                        "delivery_count": 2
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 0
                },
                {
                    "id": 16921850,
                    "address": "Standard Chartered Mumbai 23-25 M G Road, Mumbai Branch, 23-25, Mahatma Gandhi Road, Azad Maidan, Fort, Mumbai, Maharashtra, India",
                    "latitude": 18.9339261,
                    "longitude": 72.8313813,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "23-25, Mahatma Gandhi Road, Azad Maidan, Fort, Mumbai, Maharashtra 400001, India",
                    "city": "Mumbai",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400001",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 16921849
                },
                {
                    "id": 16921851,
                    "address": "Horniman Circle Garden, Homji Street, Kala Ghoda, Fort, Mumbai, Maharashtra, India",
                    "latitude": 18.93197,
                    "longitude": 72.8350343,
                    "notes": "",
                    "optimize_status": "normal",
                    "stop_duration": 5,
                    "customer_name": "",
                    "customer_mobile_number": "",
                    "street": "Horniman Circle Garden, 11, Homji St, Kala Ghoda, Fort, Mumbai, Maharashtra 400001, India",
                    "city": "Mumbai",
                    "state": "Maharashtra",
                    "country": "India",
                    "postal_code": "400001",
                    "address_typed": {
                        "delivery_count": 0
                    },
                    "customer_email": "",
                    "order_number": null,
                    "order_status": null,
                    "h_no": "",
                    "locality": "",
                    "share_stop_id": 16921849
                }
            ]
        }
    }
}

ចំណុចបញ្ចប់នេះទទួលបានព័ត៌មានផ្លូវ។

សំណើរ HTTP

GET {{base_url}}/api/v6/routes/:route_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
លេខសម្គាល់ផ្លូវ "" លេខសម្គាល់ផ្លូវដែលយើងទទួលបានពីបញ្ជីផ្លូវ
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

លុបផ្លូវដឹកជញ្ជូនទៅយក

curl --location -g --request DELETE '{{base_url}}/api/v6/routes/:route_id' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ៖

{
  "code": 200,
  "status": true,
  "message": "Route deleted successfully"
}

ផ្លូវលុបចំណុចបញ្ចប់នេះ។

សំណើរ HTTP

DELETE {{base_url}}/api/v6/routes/:route_id

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
លេខសម្គាល់ផ្លូវ "" លេខសម្គាល់ផ្លូវដែលយើងទទួលបានពីបញ្ជីផ្លូវ
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

ទទួលបានព័ត៌មានដែលធ្វើអោយប្រសើរឡើងនូវផ្លូវ

curl --location -g --request GET '{{base_url}}/api/v6/routes/:route_id/optimize_route' \
--header 'Content-Type: application/json' \
--data-raw '{
   "api_key"  :   "api_key",
   "driver_id": 44968
}'

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះប្រសិនបើ optimize: true

{
    "code": 200,
    "status": true,
    "message": "success",
    "data": {
        "optimized": true,
        "legs": [
            {
                "distance": {
                    "text": "11 km",
                    "value": 11545
                },
                "duration": {
                    "text": "22 mins 55 secs",
                    "value": 1375
                },
                "end_address": "Hotel Sea Princess, Juhu Road, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra, India",
                "start_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 19.1190749,
                    "lng": 72.8951151
                },
                "end_location": {
                    "lat": 19.09326,
                    "lng": 72.8281264
                },
                "stop_id": "16921855",
                "optimize_status": "normal",
                "stop_type": "pickup",
                "arr_time": 1375,
                "end_time": 1675,
                "optimize_order": 1,
                "stop_order": 4,
                "share_stop_id": 0,
                "address_typed": {
                    "delivery_count": 2
                },
                "overview_polyline": "ieusByg|{L|@Dj@N\\Nb@d@`@h@HRF`@MnAFvBL\\|APhA[NK^LXCj@WvBUh@EZXb@BbACh@K`AdAhAvAZjBDx@z@xAhD|ElA~Dz@nAn@LhBf@rCv@`BP|DX~BL`A?n@GrCy@l@Cx@@dBHv@NbAf@hFnCr@h@e@r@}@dA_DjCyBdBiB|Ak@n@_@j@k@xAQz@Gv@SvHEl@Mv@YhAg@bBsBvHu@|C_IlYw@hDkAhGgCtNs@nEo@jDn@t@f@bAb@hAPbAbAxK^dDAbABj@AjAM`AcAdD]tAMz@]tCOzAmBlIcCjJ?j@JT\\ZvUxCMfAQx@C^m@vBm@vAqAvB{EzGzDvB~BhAbUbHXPj@jGcAxMCpBb@xN@~AKlApCj@jBZpBNjNClAI@R}E`OyC~QoDtWaC|O?LFXJLPFZBlI]lHy@nCg@tFk@pBOT?^FXRHR\\hBBHFFD@X?~B[dCYHCHGFO@SEaA@WFQHKXMT@vEYxG[x@ADf@"
            },
            {
                "distance": {
                    "text": "21 km",
                    "value": 21458
                },
                "duration": {
                    "text": "34 mins 46 secs",
                    "value": 2086
                },
                "end_address": "Taj Mahal Tower, Mumbai, PJ Ramchandani Marg, Apollo Bandar, Colaba, Mumbai, Maharashtra, India",
                "start_address": "Hotel Sea Princess, Juhu Road, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 19.09326,
                    "lng": 72.8281264
                },
                "end_location": {
                    "lat": 18.9225854,
                    "lng": 72.8331543
                },
                "stop_id": "16921852",
                "optimize_status": "normal",
                "stop_type": "pickup",
                "arr_time": 3461,
                "end_time": 3761,
                "optimize_order": 2,
                "stop_order": 1,
                "share_stop_id": 0,
                "address_typed": {
                    "delivery_count": 2
                },
                "overview_polyline": "gdpsBufo{LEg@~C?`@DZLZTh@j@h@Xb@JtNx@`BXz@FrBEn@?t@SnDZHEHONg@^kDhAyHfBuIf@mCx@}LdLLbCFvIB~r@pAtBF~CTtIfAbA@zAC~AW|JwCxBk@~EyAzD{AfBi@pAa@tJsC|Ai@rK`@p@?fAE~@Sv@_@vCcB^QXK~E]xBg@xGq@lAGrRC`JGzAUlTkIrPuGzEuA|AYbHo@bIMpFNbERpI\\fUtCxGx@zDb@`APh@`@hEgBv@_@rBqDd@e@f@SbAQ`B?TCpA[j@YXMZWf@w@bOaXNo@KUCWBWHULQRKZGZBXNNTHX?XFTLLnA~@`MpIjHlE~@v@rHlE~LvGbBj@zEjApBv@nBdA`CzAdA~@n@r@p@f@l@Zn@Pv@Nr@ZrCj@fGz@|Cv@`B\\|Dh@l@PpANlE?nABbAZ|DbBfB`@fALrOh@~@Hn@RlCvAl@Vn@Jb@?zDWzCI`C?rBJrTrAnBTbBXbFdAvEdA|LhBbGl@tATfAJr@A|AI|AMxB[|BOf@H|Bf@n@NrAx@lAdAv@\\t@JvEBfFI`HQR?d@Fp@ExCFvAHvGjAr@J`@JhETdFHhBHvC@h@DvB\\f@BlD@jAExBa@t@IlAG^G\\ObAkA\\Q`@GxE_@tDS~AUXO\\[`AgAb@]f@[p@U`JaB~@K`AAjAGdAOl@Md@OjBq@~@a@t@Sn@Ef@?tCTbC`@nFtAbAb@`@L\\DZ?|WwArBEfBAxBh@vBt@nEfA|Cp@dBl@p@\\~LfIVTTb@TXh@HTNbCMpHKjICxH@tACz@Qt@]bAeAXg@?Q@QFOJMLGPEN?N@rB{@|C_CfA{@J?@BJFt@dANNN@J?tAgALGVA~E|ATRYAoE}AUEKDiAx@"
            },
            {
                "distance": {
                    "text": "1 km",
                    "value": 1314
                },
                "duration": {
                    "text": "6 mins 4 secs",
                    "value": 364
                },
                "end_address": "Horniman Circle Garden, Homji Street, Kala Ghoda, Fort, Mumbai, Maharashtra, India",
                "start_address": "Taj Mahal Tower, Mumbai, PJ Ramchandani Marg, Apollo Bandar, Colaba, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 18.9225854,
                    "lng": 72.8331543
                },
                "end_location": {
                    "lat": 18.93197,
                    "lng": 72.8350343
                },
                "stop_id": "16921857",
                "optimize_status": "normal",
                "stop_type": "delivery",
                "arr_time": 3825,
                "end_time": 4125,
                "optimize_order": 3,
                "stop_order": 6,
                "share_stop_id": 16921855,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "aznrBmgp{Lc@XICoAgBKG_GtEi@l@S^@TCPOXMJQFS?[IOMIMCQ?Q@QFOGUEa@[gASq@q@o@[QiASyAKmDc@uEsAmAc@s@a@y@i@_BuAi@OoF_@"
            },
            {
                "distance": {
                    "text": "1 km",
                    "value": 1082
                },
                "duration": {
                    "text": "6 mins 33 secs",
                    "value": 393
                },
                "end_address": "Standard Chartered Mumbai 23-25 M G Road, Mumbai Branch, 23-25, Mahatma Gandhi Road, Azad Maidan, Fort, Mumbai, Maharashtra, India",
                "start_address": "Horniman Circle Garden, Homji Street, Kala Ghoda, Fort, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 18.93197,
                    "lng": 72.8350343
                },
                "end_location": {
                    "lat": 18.9339261,
                    "lng": 72.8313813
                },
                "stop_id": "16921856",
                "optimize_status": "normal",
                "stop_type": "delivery",
                "arr_time": 4218,
                "end_time": 4518,
                "optimize_order": 4,
                "stop_order": 5,
                "share_stop_id": 16921855,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "isprB{up{LcAIVKzAJn@v@Pn@Ar@I^QZWV[N_@Ha@A[E[OGJSFkHu@sBjKqBxIxBS|B["
            },
            {
                "distance": {
                    "text": "20 km",
                    "value": 20984
                },
                "duration": {
                    "text": "35 mins 42 secs",
                    "value": 2142
                },
                "end_address": "JW Marriott Mumbai Juhu, Juhu Road, Juhu Tara, Juhu, Mumbai, Maharashtra, India",
                "start_address": "Standard Chartered Mumbai 23-25 M G Road, Mumbai Branch, 23-25, Mahatma Gandhi Road, Azad Maidan, Fort, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 18.9339261,
                    "lng": 72.8313813
                },
                "end_location": {
                    "lat": 19.1018504,
                    "lng": 72.8262233
                },
                "stop_id": "16921854",
                "optimize_status": "normal",
                "stop_type": "delivery",
                "arr_time": 6360,
                "end_time": 6660,
                "optimize_order": 5,
                "stop_order": 3,
                "share_stop_id": 16921852,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "y_qrB_zo{LrDc@Yk@Y[w@c@cK}GoAm@qA_@cJuB_Cy@kBa@eB?uBD_ThAoBHe@?SAu@WaA]qFwA_AQ_AOuCSc@Am@Du@R}@^mBr@e@Nm@LgANmAF_AB_AH_J~Am@Tg@Xc@\\_AfA_@\\]N_BVwDRyE^]FYNeAhAa@Ra@FmAFs@H{B`@mADoDAg@CwB]g@EwCAkBIeFIiEUoAM_HoAsBK{EGaDLoJNcACuCC{@M{@a@mAcAsAw@i@Q_Cg@a@E}BLsBXaBNaAFsABiAKsAUgE_@{@Q}LkBuEiAaFeAeBWmBUqTsAsBK_C?{CH{DVg@Aq@Ko@WmCwAm@S}@GqOi@kAMiBa@}DeB_AYmAEqE?qAOs@@}Dk@wBa@sA]oB_@iAQaC]uCk@w@GgASe@Qu@]u@k@i@m@gAcAiC_BcB}@uBy@_B]_D}@_A[}Aw@aH{Du@q@aC{AqDsBgAg@mHkE_MkImBmAQCSDSASE]\\_FpIiHlM[n@O`@Kb@EhBGVKJKBMAu@k@c@Wa@Wu@K_A?_ANc@Rc@`@sBrDyG`DcB_AyMcBmBSsCc@_M_BeW}@aILaHn@{AXwEtAiK|DgDvAmTnIaBV{]Fy@DeHv@_CLOHaCXmARi@RqDtBe@NaATiBFiLc@OB_C|@mDjAyJvCoC`A}C|@wD~@_IjC_B^gAHcBB}@CmJkAqF]sNMmFKg\\w@wIFaCMcDAqFMm@vIU|BaC|Ly@bFi@|DKvAIZOJUAoD[u@Ro@?sBD{@GaBYuNy@c@Ki@Yi@k@[U[Ma@EyE@yGZwEX[TORCXDnAEREFSNyGdAS@OCMIIM_@sBEIQOYKuDVqIdAw@L}@HB\\XHHF@LAHEHw@J"
            },
            {
                "distance": {
                    "text": "1 km",
                    "value": 1040
                },
                "duration": {
                    "text": "7 mins 48 secs",
                    "value": 468
                },
                "end_address": "Juhu Beach, Mumbai, Maharashtra",
                "start_address": "JW Marriott Mumbai Juhu, Juhu Road, Juhu Tara, Juhu, Mumbai, Maharashtra, India",
                "start_location": {
                    "lat": 19.1018504,
                    "lng": 72.8262233
                },
                "end_location": {
                    "lat": 19.1095171,
                    "lng": 72.8241298
                },
                "stop_id": "16921853",
                "optimize_status": "normal",
                "stop_type": "delivery",
                "arr_time": 6828,
                "end_time": 7128,
                "optimize_order": 6,
                "stop_order": 2,
                "share_stop_id": 16921852,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "_zqsB_}n{Le@HM?MGEGCOBKRME]cBVkBL}H^QEyDb@wHXMRE\\Bj@GLOPYHqA?]DUXAfBmC~@WRJdA"
            },
            {
                "distance": {
                    "text": "9 km",
                    "value": 9969
                },
                "duration": {
                    "text": "26 mins 34 secs",
                    "value": 1594
                },
                "end_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India",
                "start_address": "Juhu Beach, Mumbai, Maharashtra",
                "start_location": {
                    "lat": 19.1095171,
                    "lng": 72.8241298
                },
                "end_location": {
                    "lat": 19.1190749,
                    "lng": 72.8951151
                },
                "stop_id": null,
                "optimize_status": "normal",
                "stop_type": "normal",
                "arr_time": 8422,
                "end_time": 0,
                "optimize_order": 7,
                "stop_order": 2000,
                "share_stop_id": 0,
                "address_typed": {
                    "delivery_count": 0
                },
                "overview_polyline": "ogssBenn{LKeAVSlC_A@gBKBAaAGaA@u@CQX@JUCY{@Bg@E[GeEwByFgDs@m@kAsAu@UdBqDsC@_ICyKBU?DeSJgCEoGLuC@y@E{EGe@MmDIYGc@KuD@mDG]GsEAwGBeD@Y|@cE`@wBL{@\\sFr@{EB_@?]GwABkCP_Cf@iBvCuGpBeDv@kDn@{DrEyQp@gDVeBV{BZiBnAuEPw@Fo@@}@GoAkA{M[{CY_A[w@g@u@UUWc@pH_c@z@kDhEuOxBsIj@oBxDoNJy@Dy@JcFHgB\\gBXs@l@mAb@g@r@s@zCgChEgDhAyASKSUiFwC_@Mu@Qy@GkAEi@@i@F}@XmAVm@Hq@@qAE{Gc@cAOwC{@mBe@_@IEU{@oAmA_EiD}E{@yAEy@[kBiAwAaAeAi@JcABc@C[Yi@DwBTk@VYB_@MOJiAZ}AQM]GwBLoAGa@ISa@i@c@e@]Ok@O}@E"
            }
        ]
    }
}

ពាក្យបញ្ជាខាងលើត្រឡប់ JSON ដែលមានរចនាសម្ព័ន្ធដូចនេះ ប្រសិនបើធ្វើឱ្យប្រសើរ៖ មិនពិត

{
    "code": 200,
    "status": true,
    "message": "Some stops is not settled in route optimization",
    "data": {
        "optimized": false,
        "legs": [],
        "route_stops": [
          {
            "id": 17019017,
            "address": "New York",
            "latitude": 40.7128,
            "longitude": 74.006,
            "optimized": false,
            "errors": [
                "Could not found nearest road"
            ]
          }
        ]
    }
}

ចំណុចបញ្ចប់នេះទទួលបានព័ត៌មានផ្លូវ។

សំណើរ HTTP

GET {{base_url}}/api/v6/routes/:route_id/optimize_route

ប៉ារ៉ាម៉ែត្រសំណួរ

ប៉ា​រ៉ា​មែ​ត្រ Default ការពិពណ៌នា
api_key "" សោចូល Api
driver_id "" លេខសម្គាល់អ្នកបើកបរនៃផ្លូវ

WebHooks

ZeoRoutePlanner អនុញ្ញាតឱ្យអ្នកប្រើ webhook យើងអាចជូនដំណឹងអ្នកអំពីព្រឹត្តិការណ៍។ អ្នកអាចចុះឈ្មោះ webhook ថ្មីនៅវេទិការបស់យើង ("https://zeorouteplanner.com/app/team/settings/genrate-token").

ព្រឹត្តិការណ៍

កំហុស

Zeo Route Planner API ប្រើកូដកំហុសខាងក្រោម៖

កូដកំហុស អត្ថន័យ
400 សំណើមិនល្អ - សំណើរបស់អ្នកមិនត្រឹមត្រូវទេ។
401 គ្មានការអនុញ្ញាត -- សោ API របស់អ្នកខុស។
404 រកមិនឃើញ -- សំណើដែលបានបញ្ជាក់មិនអាចត្រូវបានរកឃើញទេ។
500 កំហុសម៉ាស៊ីនមេខាងក្នុង -- យើងមានបញ្ហាជាមួយម៉ាស៊ីនមេរបស់យើង។ ព្យាយាម​ម្តង​ទៀត​នៅ​ពេលក្រោយ។
503 សេវាកម្មមិនអាចប្រើបាន - យើងនៅក្រៅបណ្តាញជាបណ្តោះអាសន្នសម្រាប់ការថែទាំ។ សូម​ព្យាយាម​ម្តង​ទៀត​នៅ​ពេល​ក្រោយ។