개요
Zeo 경로 플래너는 차량 소유자가 운전자를 위한 경로를 생성하고 최적화하는 데 도움을 줍니다. 현지 라스트 마일 배송을 수행하는 차량 소유자 또는 소규모 기업은 배송 상태, 운전자의 실시간 위치를 추적하고 고객에게 실시간 업데이트를 보낼 수 있습니다. 배달 운전자를 위한 Zeo의 모바일 앱은 Waze, tomtom, Google 지도 등을 포함한 모든 인기 있는 탐색 도구와 완벽하게 통합되어 있습니다. 운전자는 메모, 고객 세부 정보 및 소포 수를 포함한 모든 중요한 세부 정보를 손끝에서 확인할 수 있습니다. Zeo는 동적 주소 추가 및 삭제를 처리하고 가장 최적화된 경로를 제공하기 위해 시퀀스를 다시 라우팅합니다. Zeo 차량 소유자는 운전자당 월 최대 200$를 절약하고 배송 증명, 서명 및 배송 타임 스탬프와 같은 고품질 보고서에 액세스할 수 있습니다.
인증
ZeoRoutePlanner는 API 키를 사용하여 API에 대한 액세스를 허용합니다. 당사 플랫폼(https://zeorouteplanner.com/app/team/settings/genrate-token).
ZeoRoutePlanner는 API 키가 다음과 같은 매개변수로 서버에 대한 모든 API 요청에 포함될 것으로 예상합니다.
api_key: api_key
상점 소유자 API
정류장 만들기
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
중지 | [{}] | 어레이 중지 |
개체 매개변수를 중지합니다.
매개 변수 | 태만 | 상품 설명 |
---|---|---|
주소 | "" | 정류장 주소 |
위도 | "" | 주소 위도 |
경도 | "" | 주소 경도 |
노트 | "" | 추가할 메시지 |
최적화_상태 | "정상" | |
stop_duration | "그만 멈춰라" | |
도착_시작 | "" | "지금" |
도착_끝 | "" | "언제든지" |
가장 이른 | "" | |
최근 | "" | |
stop_type | "" | (배달/픽업) |
고객 이름 | "" | 고객 이름 |
고객_모바일_번호 | "" | 고객 연락처 번호 |
드라이버 ID | "" | 운전자 ID |
중지_날짜 | "" | 중지 날짜 |
소포 개수 | 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
드라이버 생성
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
이메일 | "" | 드라이버 파트너 이메일 |
주소 | "" | 드라이버 주소 |
암호 | "" | 운전자 계정 비밀번호 |
name | "" | 운전자 이름 |
전화 번호 | "" | 연락처 번호 |
드라이버 업데이트
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
주소 | "" | 드라이버 주소 |
name | "" | 운전자 이름 |
전화 번호 | "" | 운전기사 연락처 |
드라이버 ID | "" | 모든 드라이버 API에서 얻는 드라이버 ID |
드라이버 삭제
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
드라이버 ID | "" | 모든 드라이버 API에서 얻는 드라이버 ID |
경로 생성
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
드라이버 ID | "" | 모든 드라이버 API에서 얻는 드라이버 ID |
시작_주소 | "" | 경로 시작 주소 |
시작_위도 | "" | 시작 주소 위도 |
시작_경도 | "" | 시작 주소 경도 |
end_address | "" | 경로 끝 주소 |
끝_위도 | "" | 끝 주소 위도 |
끝_경도 | "" | 끝 주소 경도 |
경로_이름 | "" | 노선명 |
드라이버 ID | "" | 경로를 할당할 운전자 ID |
원래의 | "" | |
중지 | [] | 노선 간 정차 |
경로_날짜 | '' | 노선 날짜 |
개체 매개변수를 중지합니다.
매개 변수 | 태만 | 상품 설명 |
---|---|---|
주소 | "" | 정류장 주소 |
위도 | "" | 주소 위도 |
경도 | "" | 주소 경도 |
노트 | "" | 추가할 메시지 |
최적화_상태 | "정상" | |
stop_duration | "그만 멈춰라" | |
도착_시작 | "" | "지금" |
도착_끝 | "" | "언제든지" |
가장 이른 | "" | |
최근 | "" | |
stop_type | "" | (배달/픽업) |
고객 이름 | "" | 고객 이름 |
고객_모바일_번호 | "" | 고객 연락처 번호 |
소포 개수 | 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
경로_ID | "" | 경로 목록에서 얻은 경로 ID |
드라이버 ID | "" | 경로의 운전자 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
드라이버 ID | "" | 경로의 운전자 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
경로_ID | "" | 경로 목록에서 얻은 경로 ID |
드라이버 ID | "" | 경로의 운전자 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
제한 | 50 | 반환할 기록 |
오프셋 | 0 | 반환할 다음 레코드 |
드라이버 ID | 운전자 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키(페이지로 이동 웹 사이트 주소 상점 소유자 계정에 로그인한 후 페이지로 이동 설정 페이지API 토큰 가져오기를 선택하고 api_key 생성) |
시작_주소 | "" | 경로의 시작 주소 |
end_address | "" | 경로의 끝 주소 |
드라이버_이메일 | "" | 운전자의 이메일 |
파일 | "" | 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
쿼리 매개변수
매개 변수 | 데이터 형식 | 태만 | 상품 설명 |
---|---|---|---|
드라이버 ID | 정수(*) | 경로를 생성하려면 Driver_id가 필요합니다. | |
시작_주소 | 끈 (*) | 경로가 시작되는 주소 | |
시작_위도 | 소수 | 0 | start_address 또는 start_latitude,start_longitude 중 하나가 필요합니다. |
시작_경도 | 소수 | 0 | start_address 또는 start_latitude,start_longitude 중 하나가 필요합니다. |
end_address | 현 | 경로의 끝 위치 | |
끝_위도 | 소수 | end_address 또는 end_latitude,end_longitude 중 하나가 필요합니다. | |
끝_경도 | 소수 | end_address 또는 end_latitude,end_longitude 중 하나가 필요합니다. | |
경로_이름 | 끈 (*) | 현재 날짜(dd/mm/yy) | 노선명 |
중지 | 객체 배열(*) | 객체 배열의 정보를 중지합니다. |
개체 매개변수를 중지합니다.
매개 변수 | 데이터 형식 | 태만 | 상품 설명 |
---|---|---|---|
id | 내부 (*) | 0 | 1. stop_type이 배달인 경우 ID를 보낼 필요가 없습니다. 2. stop_type 픽업인 경우 20자리 ID를 보내야 합니다. |
stop_order | 정수(*) | 0 | 중지 순서 추가 |
share_stop_id | INT | 0 | 1. stop_type이 픽업인 경우 기본값으로 둡니다. 2. stop_type이 배달이고 픽업과의 연결을 원하지 않는 경우 기본값으로 둡니다. 3. 픽업과 연결하려면 해당 픽업 정류장 ID를 입력하세요. |
stop_type | 현 | 배달 | 값은 배송과 픽업이어야 합니다. |
주소 | 현 | 주소 또는 위도, 경도가 필수입니다. | |
위도 | 소수 | 0 | 주소 또는 위도, 경도가 필수입니다. |
경도 | 소수 | 0 | 주소 또는 위도, 경도가 필수입니다. |
노트 | 현 | 관련 정보 중지 | |
stop_duration | INT | 2 | 정지 시간을 분 단위로 지정합니다. 즉, 고객 사이트에서 소요되는 시간입니다. |
고객 이름 | 현 | 고객 정보 | |
고객_모바일_번호 | 현 | 고객 정보 | |
고객_이메일 | 현 | 고객 정보 | |
주소_입력 | {} | {} | 1. stop_type이 픽업인 경우 키는 Delivery_count이고 값은 int입니다. 총 배송 횟수는 이 픽업과 연결됩니다. 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
쿼리 매개변수
쿼리 매개변수
매개 변수 | 데이터 형식 | 태만 | 상품 설명 |
---|---|---|---|
드라이버 ID | 정수(*) | 경로를 생성하려면 Driver_id가 필요합니다. | |
시작_주소 | 끈 (*) | 경로가 시작되는 주소 | |
시작_위도 | 소수 | 0 | start_address 또는 start_latitude,start_longitude 중 하나가 필요합니다. |
시작_경도 | 소수 | 0 | start_address 또는 start_latitude,start_longitude 중 하나가 필요합니다. |
end_address | 현 | 경로의 끝 위치 | |
끝_위도 | 소수 | end_address 또는 end_latitude,end_longitude 중 하나가 필요합니다. | |
끝_경도 | 소수 | end_address 또는 end_latitude,end_longitude 중 하나가 필요합니다. | |
경로_이름 | 끈 (*) | 현재 날짜(dd/mm/yy) | 노선명 |
중지 | 객체 배열(*) | 객체 배열의 정보를 중지합니다. |
개체 매개변수를 중지합니다.
매개 변수 | 데이터 형식 | 태만 | 상품 설명 |
---|---|---|---|
id | 내부 (*) | 0 | 1. stop_type이 배달인 경우 ID를 보낼 필요가 없습니다. 2. stop_type 픽업인 경우 20자리 ID를 보내야 합니다. |
stop_order | 정수(*) | 0 | 중지 순서 추가 |
share_stop_id | INT | 0 | 1. stop_type이 픽업인 경우 기본값으로 둡니다. 2. stop_type이 배달이고 픽업과의 연결을 원하지 않는 경우 기본값으로 둡니다. 3. 픽업과 연결하려면 해당 픽업 정류장 ID를 입력하세요. |
stop_type | 현 | 배달 | 값은 배송과 픽업이어야 합니다. |
주소 | 현 | 주소 또는 위도, 경도가 필수입니다. | |
위도 | 소수 | 0 | 주소 또는 위도, 경도가 필수입니다. |
경도 | 소수 | 0 | 주소 또는 위도, 경도가 필수입니다. |
노트 | 현 | 관련 정보 중지 | |
stop_duration | INT | 2 | 정지 시간을 분 단위로 지정합니다. 즉, 고객 사이트에서 소요되는 시간입니다. |
고객 이름 | 현 | 고객 정보 | |
고객_모바일_번호 | 현 | 고객 정보 | |
고객_이메일 | 현 | 고객 정보 | |
주소_입력 | {} | {} | 1. stop_type이 픽업인 경우 키는 Delivery_count이고 값은 int입니다. 총 배송 횟수는 이 픽업과 연결됩니다. 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
경로_ID | "" | 경로 목록에서 얻은 경로 ID |
드라이버 ID | "" | 경로의 운전자 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
경로_ID | "" | 경로 목록에서 얻은 경로 ID |
드라이버 ID | "" | 경로의 운전자 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
}'
위 명령은 최적화:true인 경우 다음과 같은 구조의 JSON을 반환합니다.
{
"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"
}
]
}
}
위 명령은 최적화:false인 경우 다음과 같은 구조의 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
쿼리 매개변수
매개 변수 | 태만 | 상품 설명 |
---|---|---|
api_key | "" | API 액세스 키 |
드라이버 ID | "" | 경로의 운전자 ID |
웹훅
ZeoRoutePlanner를 사용하면 웹후크를 사용하여 이벤트에 대해 알릴 수 있습니다. 우리 플랫폼에서 새로운 웹훅을 등록할 수 있습니다("https://zeorouteplanner.com/app/team/settings/genrate-token").
이벤트
- 진행 웹훅 중지
오류
Zeo Route Planner API는 다음 오류 코드를 사용합니다.
에러 코드 | 의미 |
---|---|
400 | 잘못된 요청 -- 귀하의 요청이 잘못되었습니다. |
401 | 승인되지 않음 - API 키가 잘못되었습니다. |
404 | 찾을 수 없음 -- 지정된 요청을 찾을 수 없습니다. |
500 | 내부 서버 오류 -- 서버에 문제가 발생했습니다. 나중에 다시 시도하세요. |
503 | 서비스를 사용할 수 없습니다 -- 유지 관리를 위해 일시적으로 오프라인 상태입니다. 나중에 다시 시도 해주십시오. |