رابط وظیفه
google.maps.journeySharing . Task
رابط google.maps.journeySharing . Task
جزئیات یک کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام کار در قالب "provider/{provider_id}/tasks/{task_id}". Task_id باید یک شناسه منحصر به فرد باشد و نه یک شناسه ردیابی. برای ذخیره شناسه ردیابی یک محموله، از قسمت tracking_id استفاده کنید. چندین کار می توانند tracking_id یکسان داشته باشند. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > اطلاعات مربوط به بخش های باقی مانده برای تکمیل این کار. |
status | نوع: string وضعیت اجرای فعلی کار. |
type | نوع: string نوع کار؛ به عنوان مثال، یک استراحت یا حمل و نقل. |
estimatedCompletionTime optional | نوع: Date optional مهر زمانی زمان تخمینی تکمیل کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
outcome optional | نوع: string optional نتیجه کار. |
outcomeLocation optional | نوع: LatLngLiteral optional مکانی که کار تکمیل شد (از ارائه دهنده). |
outcomeLocationSource optional | نوع: string optional تنظیمکننده مکان نتیجه کار («PROVIDER» یا «LAST_VEHICLE_LOCATION»). |
outcomeTime optional | نوع: Date optional مهر زمانی زمانی که نتیجه کار تنظیم شد (از ارائه دهنده). |
plannedLocation optional | نوع: LatLngLiteral optional مکانی که قرار است کار تکمیل شود. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
trackingId optional | نوع: string optional شناسه رهگیری محموله |
vehicleId optional | نوع: string optional شناسه وسیله نقلیه ای که این کار را انجام می دهد. |
رابط TaskInfo
google.maps.journeySharing . TaskInfo
رابط google.maps.journeySharing . TaskInfo
نوع TaskInfo، استفاده شده توسط DeliveryVehicleStop
.
خواص | |
---|---|
extraDurationMillis optional | نوع: number optional زمان اضافی برای انجام کار، در میلی ثانیه. |
id optional | نوع: string optional شناسه کار |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
رابط TaskTrackingInfo
google.maps.journeySharing . TaskTrackingInfo
رابط google.maps.journeySharing . TaskTrackingInfo
جزئیات یک شی اطلاعات ردیابی کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام در قالب "providers/{provider_id}/taskTrackingInfo/{tracking_id}"، که در آن tracking_id نشان دهنده شناسه ردیابی است. |
trackingId | نوع: string شناسه ردیابی یک کار.
|
estimatedArrivalTime optional | نوع: Date optional زمان تخمینی رسیدن به محل توقف. |
estimatedTaskCompletionTime optional | نوع: Date optional زمان تخمینی تکمیل یک کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
plannedLocation optional | نوع: LatLng optional مکانی که وظیفه تکمیل خواهد شد. |
remainingDrivingDistanceMeters optional | نوع: number optional مجموع مسافت باقیمانده بر حسب متر تا VehicleStop مورد علاقه. |
remainingStopCount optional | نوع: number optional تعداد توقف هایی که وسیله نقلیه تا رسیدن به ایستگاه وظیفه باقی مانده است، از جمله توقف کار را نشان می دهد. به عنوان مثال، اگر توقف بعدی خودرو، توقف کار باشد، مقدار 1 خواهد بود. |
routePolylinePoints optional | فهرستی از نقاطی که در صورت اتصال چند خطی از مسیر مورد انتظار وسیله نقلیه به محل این کار را تشکیل می دهند. |
state optional | نوع: string optional وضعیت فعلی اجرای Task. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
taskOutcome optional | نوع: string optional نتیجه تلاش برای اجرای یک Task. |
taskOutcomeTime optional | نوع: Date optional زمانی که نتیجه Task توسط ارائه دهنده تنظیم شد. |
رابط سفر
google.maps.journeySharing . Trip
رابط google.maps.journeySharing . Trip
جزئیات سفر توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
name | نوع: string در قالب "provider/{provider_id}/trips/{trip_id}". trip_id باید یک شناسه منحصر به فرد باشد. |
passengerCount | نوع: number تعداد مسافران این سفر؛ شامل راننده نمی شود |
remainingWaypoints | نوع: Array < VehicleWaypoint > آرایه ای از ایستگاه های بین راه که مسیر را از مکان فعلی تا نقطه خروج را نشان می دهد. |
status | نوع: string وضعیت فعلی سفر مقادیر ممکن عبارتند از: UNKNOWN_TRIP_STATUS، NEW، ENROUTE_TO_PICKUP، ARRIVED_AT_PICKUP، ARRIVED_AT_INTERMEDIATE_DESTINATION، ENROUTE_TO_INTERMEDIATE_DESTINATION، ENROUTE_TO_DROPOFF، یا COMPELED. |
type | نوع: string نوع سفر. مقادیر ممکن UNKNOWN_TRIP_TYPE، SHARED یا EXCLUSIVE هستند. |
vehicleId | نوع: string شناسه وسیله نقلیه ای که این سفر را انجام می دهد. |
actualDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری در آن پیاده شده است. |
actualPickupLocation optional | نوع: LatLngLiteral optional محل تحویل مشتری |
dropOffTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران پیاده خواهند شد، یا زمان واقعی زمانی که مسافران پیاده شدند. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
pickupTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران سوار خواهند شد، یا زمان واقعی زمانی که مسافران سوار شدند. |
plannedDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را ترک خواهند کرد. |
plannedPickupLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را تحویل می گیرند. |
رابط DeliveryVehicle
google.maps.journeySharing . DeliveryVehicle
رابط google.maps.journeySharing . DeliveryVehicle
جزئیات یک وسیله نقلیه تحویلی که توسط Fleet Engine بازگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, string optional > ویژگی های وسیله نقلیه تحویل سفارشی |
name | نوع: string در قالب "provider/{provider_id}/deliveryVehicles/{delivery_vehicle_id}". شناسه delivery_vehicle باید یک شناسه منحصر به فرد باشد. |
navigationStatus | نوع: string وضعیت ناوبری فعلی وسیله نقلیه |
remainingDistanceMeters | نوع: number مسافت رانندگی باقیمانده در بخش مسیر فعلی، بر حسب متر. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > بخش های سفر اختصاص داده شده به این وسیله نقلیه تحویل، از آخرین مکان گزارش شده خودرو شروع می شود. این تنها زمانی پر می شود که شی داده DeliveryVehicle از طریق FleetEngineDeliveryVehicleLocationProvider ارائه شود. |
currentRouteSegmentEndPoint optional | نوع: LatLngLiteral optional مکانی که بخش مسیر فعلی به پایان می رسد. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional آخرین مکان گزارش شده خودروی تحویل. |
remainingDurationMillis optional | نوع: number optional مدت زمان رانندگی باقی مانده در بخش مسیر فعلی، بر حسب میلی ثانیه. |
رابط DeliveryVehicleStop
google.maps.journeySharing . DeliveryVehicleStop
رابط google.maps.journeySharing . DeliveryVehicleStop
نوع DeliveryVehicleStop
خواص | |
---|---|
tasks | لیست وظایفی که باید در این ایستگاه انجام شود.
|
plannedLocation optional | نوع: LatLngLiteral optional محل توقف. |
state optional | نوع: DeliveryVehicleStopState optional وضعیت توقف. |
ثابت های DeliveryVehicleStopState
google.maps.journeySharing . DeliveryVehicleStopState
ثابت های google.maps.journeySharing . DeliveryVehicleStopState
وضعیت فعلی یک DeliveryVehicleStop
.
با تماس const {DeliveryVehicleStopState} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
ARRIVED | به ایستگاه رسید. فرض می کند که وقتی وسیله نقلیه در حال مسیریابی به ایستگاه بعدی است، تمام توقف های قبلی تکمیل شده است. |
ENROUTE | اختصاص داده شده و به طور فعال مسیریابی. |
NEW | ایجاد شده، اما به طور فعال مسیریابی نمی شود. |
UNSPECIFIED | ناشناخته. |
رابط VehicleJourneySegment
google.maps.journeySharing . VehicleJourneySegment
رابط google.maps.journeySharing . VehicleJourneySegment
VehicleJourneySegment نوع
خواص | |
---|---|
drivingDistanceMeters optional | نوع: number optional مسافت طی شده از ایستگاه قبلی تا این توقف، بر حسب متر. |
drivingDurationMillis optional | نوع: number optional زمان سفر از توقف قبلی این توقف، بر حسب میلی ثانیه. |
path optional | نوع: Array < LatLngLiteral > optional مسیر توقف قبلی (یا مکان فعلی وسیله نقلیه، اگر این توقف اولین توقف در لیست توقف ها باشد) تا این توقف. |
stop optional | نوع: DeliveryVehicleStop optional اطلاعات در مورد توقف |
رابط به روز رسانی مکان خودرو
google.maps.journeySharing . VehicleLocationUpdate
رابط google.maps.journeySharing . VehicleLocationUpdate
نوع به روز رسانی مکان خودرو
خواص | |
---|---|
heading optional | نوع: number optional عنوان به روز رسانی. 0 مربوط به شمال، 180 به جنوب است. |
location optional | نوع: LatLngLiteral | LatLng optional محل به روز رسانی. |
speedKilometersPerHour optional | نوع: number optional سرعت بر حسب کیلومتر در ساعت. |
time optional | نوع: Date optional زمانی که این بهروزرسانی از خودرو دریافت شد. |
رابط وسیله نقلیه
google.maps.journeySharing . VehicleWaypoint
رابط google.maps.journeySharing . VehicleWaypoint
نوع وسیله نقلیه.
خواص | |
---|---|
distanceMeters optional | نوع: number optional فاصله مسیر بین ایستگاه قبلی (یا مکان فعلی وسیله نقلیه، در صورتی که این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطهگذر بر حسب متر. |
durationMillis optional | نوع: number optional زمان سفر بین ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطه بین بر حسب میلیثانیه. |
location optional | نوع: LatLngLiteral optional محل ایستگاه راه. |
path optional | نوع: Array < LatLngLiteral > optional مسیر از ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاه های بین راه باشد) به این ایستگاه بین راه. |
رابط وسیله نقلیه
google.maps.journeySharing . Vehicle
رابط google.maps.journeySharing . Vehicle
جزئیات یک وسیله نقلیه بازگردانده شده توسط Fleet Engine.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های خودروی سفارشی |
name | نوع: string در قالب "provider/{provider_id}/vehicles/{vehicle_id}". Vehicle_id باید یک شناسه منحصر به فرد باشد. |
navigationStatus | وضعیت ناوبری فعلی وسیله نقلیه |
remainingDistanceMeters | نوع: number مسافت رانندگی باقیمانده در بخش مسیر فعلی، بر حسب متر. |
vehicleState | نوع: VehicleState وضعیت وسیله نقلیه |
vehicleType | نوع: VehicleType نوع این وسیله نقلیه |
currentRouteSegmentEndPoint optional | نوع: TripWaypoint optional نقطه ای که در آن بخش مسیر فعلی به پایان می رسد. |
currentRouteSegmentVersion optional | نوع: Date optional زمانی که بخش مسیر فعلی تنظیم شد. |
currentTrips optional | نوع: Array <string> optional فهرست شناسه سفر برای سفرهایی که در حال حاضر به این وسیله نقلیه اختصاص داده شده است. |
etaToFirstWaypoint optional | نوع: Date optional ETA به اولین ورودی در قسمت ایستگاه های بین راه. |
latestLocation optional | نوع: VehicleLocationUpdate optional آخرین مکان گزارش شده خودرو |
maximumCapacity optional | نوع: number optional تعداد کل سوارانی که این وسیله نقلیه می تواند حمل کند. درایور در این مقدار در نظر گرفته نمی شود. |
supportedTripTypes optional | انواع سفرهای پشتیبانی شده توسط این وسیله نقلیه. |
waypoints optional | نوع: Array < TripWaypoint > optional نقاط بین راهی که به این وسیله نقلیه اختصاص داده شده است. |
waypointsVersion optional | نوع: Date optional آخرین باری که قسمت ایستگاه های بین راه به روز شد. |
ثابت های وضعیت ناوبری خودرو
google.maps.journeySharing . VehicleNavigationStatus
ثابت های google.maps.journeySharing . VehicleNavigationStatus
وضعیت ناوبری فعلی یک Vehicle
.
با فراخوانی const {VehicleNavigationStatus} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
ARRIVED_AT_DESTINATION | وسیله نقلیه تقریباً 50 متر از مقصد فاصله دارد. |
ENROUTE_TO_DESTINATION | پیمایش گام به گام در دسترس است و پیمایش برنامه Driver وارد حالت GUIDED_NAV شده است. |
NO_GUIDANCE | ناوبری برنامه Driver در حالت FREE_NAV است. |
OFF_ROUTE | خودرو از مسیر پیشنهادی خارج شده است. |
UNKNOWN_NAVIGATION_STATUS | وضعیت ناوبری نامشخص |
ثابت های حالت خودرو
google.maps.journeySharing . VehicleState
ثابت های google.maps.journeySharing . VehicleState
وضعیت فعلی یک Vehicle
با فراخوانی const {VehicleState} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
OFFLINE | وسیله نقلیه سفرهای جدید را نمی پذیرد. |
ONLINE | خودرو در حال پذیرش سفرهای جدید است. |
UNKNOWN_VEHICLE_STATE | وضعیت نامشخص خودرو |
ثابت های نوع وسیله نقلیه
google.maps.journeySharing . VehicleType
ثابت های google.maps.journeySharing . VehicleType
نوع Vehicle
.
با فراخوانی const {VehicleType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
AUTO | یک ماشین |
TAXI | هر وسیله نقلیه ای که به عنوان یک تاکسی عمل می کند (معمولا دارای مجوز یا دارای مقررات قانونی). |
TRUCK | وسیله نقلیه ای با ظرفیت ذخیره سازی زیاد. |
TWO_WHEELER | یک موتور سیکلت، موتور سیکلت یا وسایل نقلیه دو چرخ دیگر. |
UNKNOWN | نوع وسیله نقلیه نامشخص |
ثابت های TripType
google.maps.journeySharing . TripType
ثابت های google.maps.journeySharing . TripType
انواع سفر که توسط یک Vehicle
پشتیبانی می شود.
با فراخوانی const {TripType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
EXCLUSIVE | این سفر منحصر به یک وسیله نقلیه است. |
SHARED | این سفر ممکن است یک وسیله نقلیه با سفرهای دیگر مشترک باشد. |
UNKNOWN_TRIP_TYPE | نوع سفر نامشخص |
رابط TripWaypoint
google.maps.journeySharing . TripWaypoint
رابط google.maps.journeySharing . TripWaypoint
نوع TripWaypoint.
خواص | |
---|---|
distanceMeters optional | نوع: number optional فاصله مسیر بین ایستگاه قبلی (یا مکان فعلی وسیله نقلیه، در صورتی که این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطهگذر بر حسب متر. |
durationMillis optional | نوع: number optional زمان سفر بین ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطه بین بر حسب میلیثانیه. |
location optional | نوع: LatLngLiteral optional محل ایستگاه راه. |
tripId optional | نوع: string optional سفر مرتبط با این ایستگاه. |
waypointType optional | نوع: WaypointType optional نقشی که این ایستگاه بین راهی در این سفر ایفا می کند، مانند پیکاپ یا تخلیه. |
ثابت های نوع Waypoint
google.maps.journeySharing . WaypointType
ثابت های google.maps.journeySharing . WaypointType
انواع ایستگاه های بین راهی که توسط Vehicle
پشتیبانی می شوند.
با فراخوانی const {WaypointType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
DROP_OFF_WAYPOINT_TYPE | نقاط راه برای پیاده کردن سوارکاران. |
INTERMEDIATE_DESTINATION_WAYPOINT_TYPE | نقاط راه برای مقاصد میانی در یک سفر چند مقصدی. |
PICKUP_WAYPOINT_TYPE | نقاط راه برای سوار کردن سواران. |
UNKNOWN_WAYPOINT_TYPE | نوع نقطه راه نامشخص. |
رابط TimeWindow
google.maps.journeySharing . TimeWindow
رابط google.maps.journeySharing . TimeWindow
یک محدوده زمانی
خواص | |
---|---|
endTime | نوع: Date زمان پایان پنجره زمانی (شامل). |
startTime | نوع: Date زمان شروع پنجره زمانی (شامل). |
رابط وظیفه
google.maps.journeySharing . Task
رابط google.maps.journeySharing . Task
جزئیات یک کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام کار در قالب "provider/{provider_id}/tasks/{task_id}". Task_id باید یک شناسه منحصر به فرد باشد و نه یک شناسه ردیابی. برای ذخیره شناسه ردیابی یک محموله، از قسمت tracking_id استفاده کنید. چندین کار می توانند tracking_id یکسان داشته باشند. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > اطلاعات مربوط به بخش های باقی مانده برای تکمیل این کار. |
status | نوع: string وضعیت اجرای فعلی کار. |
type | نوع: string نوع کار؛ به عنوان مثال، یک استراحت یا حمل و نقل. |
estimatedCompletionTime optional | نوع: Date optional مهر زمانی زمان تخمینی تکمیل کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
outcome optional | نوع: string optional نتیجه کار. |
outcomeLocation optional | نوع: LatLngLiteral optional مکانی که کار تکمیل شد (از ارائه دهنده). |
outcomeLocationSource optional | نوع: string optional تنظیمکننده مکان نتیجه کار («PROVIDER» یا «LAST_VEHICLE_LOCATION»). |
outcomeTime optional | نوع: Date optional مهر زمانی زمانی که نتیجه کار تنظیم شد (از ارائه دهنده). |
plannedLocation optional | نوع: LatLngLiteral optional مکانی که قرار است کار تکمیل شود. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
trackingId optional | نوع: string optional شناسه رهگیری محموله |
vehicleId optional | نوع: string optional شناسه وسیله نقلیه ای که این کار را انجام می دهد. |
رابط TaskInfo
google.maps.journeySharing . TaskInfo
رابط google.maps.journeySharing . TaskInfo
نوع TaskInfo، استفاده شده توسط DeliveryVehicleStop
.
خواص | |
---|---|
extraDurationMillis optional | نوع: number optional زمان اضافی برای انجام کار، در میلی ثانیه. |
id optional | نوع: string optional شناسه کار |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
رابط TaskTrackingInfo
google.maps.journeySharing . TaskTrackingInfo
رابط google.maps.journeySharing . TaskTrackingInfo
جزئیات یک شی اطلاعات ردیابی کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام در قالب "providers/{provider_id}/taskTrackingInfo/{tracking_id}"، که در آن tracking_id نشان دهنده شناسه ردیابی است. |
trackingId | نوع: string شناسه ردیابی یک کار.
|
estimatedArrivalTime optional | نوع: Date optional زمان تخمینی رسیدن به محل توقف. |
estimatedTaskCompletionTime optional | نوع: Date optional زمان تخمینی تکمیل یک کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
plannedLocation optional | نوع: LatLng optional مکانی که وظیفه تکمیل خواهد شد. |
remainingDrivingDistanceMeters optional | نوع: number optional مجموع مسافت باقیمانده بر حسب متر تا VehicleStop مورد علاقه. |
remainingStopCount optional | نوع: number optional تعداد توقف هایی که وسیله نقلیه تا رسیدن به ایستگاه وظیفه باقی مانده است، از جمله توقف کار را نشان می دهد. به عنوان مثال، اگر توقف بعدی خودرو، توقف کار باشد، مقدار 1 خواهد بود. |
routePolylinePoints optional | فهرستی از نقاطی که در صورت اتصال چند خطی از مسیر مورد انتظار وسیله نقلیه به محل این کار را تشکیل می دهند. |
state optional | نوع: string optional وضعیت فعلی اجرای Task. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
taskOutcome optional | نوع: string optional نتیجه تلاش برای اجرای یک Task. |
taskOutcomeTime optional | نوع: Date optional زمانی که نتیجه Task توسط ارائه دهنده تنظیم شد. |
رابط سفر
google.maps.journeySharing . Trip
رابط google.maps.journeySharing . Trip
جزئیات سفر توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
name | نوع: string در قالب "provider/{provider_id}/trips/{trip_id}". trip_id باید یک شناسه منحصر به فرد باشد. |
passengerCount | نوع: number تعداد مسافران این سفر؛ شامل راننده نمی شود |
remainingWaypoints | نوع: Array < VehicleWaypoint > آرایه ای از ایستگاه های بین راه که مسیر را از مکان فعلی تا نقطه خروج را نشان می دهد. |
status | نوع: string وضعیت فعلی سفر مقادیر ممکن عبارتند از: UNKNOWN_TRIP_STATUS، NEW، ENROUTE_TO_PICKUP، ARRIVED_AT_PICKUP، ARRIVED_AT_INTERMEDIATE_DESTINATION، ENROUTE_TO_INTERMEDIATE_DESTINATION، ENROUTE_TO_DROPOFF، یا COMPELED. |
type | نوع: string نوع سفر. مقادیر ممکن UNKNOWN_TRIP_TYPE، SHARED یا EXCLUSIVE هستند. |
vehicleId | نوع: string شناسه وسیله نقلیه ای که این سفر را انجام می دهد. |
actualDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری در آن پیاده شده است. |
actualPickupLocation optional | نوع: LatLngLiteral optional محل تحویل مشتری |
dropOffTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران پیاده خواهند شد، یا زمان واقعی زمانی که مسافران پیاده شدند. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
pickupTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران سوار خواهند شد، یا زمان واقعی زمانی که مسافران سوار شدند. |
plannedDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را ترک خواهند کرد. |
plannedPickupLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را تحویل می گیرند. |
رابط DeliveryVehicle
google.maps.journeySharing . DeliveryVehicle
رابط google.maps.journeySharing . DeliveryVehicle
جزئیات یک وسیله نقلیه تحویلی که توسط Fleet Engine بازگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, string optional > ویژگی های وسیله نقلیه تحویل سفارشی |
name | نوع: string در قالب "provider/{provider_id}/deliveryVehicles/{delivery_vehicle_id}". شناسه delivery_vehicle باید یک شناسه منحصر به فرد باشد. |
navigationStatus | نوع: string وضعیت ناوبری فعلی وسیله نقلیه |
remainingDistanceMeters | نوع: number مسافت رانندگی باقیمانده در بخش مسیر فعلی، بر حسب متر. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > بخش های سفر اختصاص داده شده به این وسیله نقلیه تحویل، از آخرین مکان گزارش شده خودرو شروع می شود. این تنها زمانی پر می شود که شی داده DeliveryVehicle از طریق FleetEngineDeliveryVehicleLocationProvider ارائه شود. |
currentRouteSegmentEndPoint optional | نوع: LatLngLiteral optional مکانی که بخش مسیر فعلی به پایان می رسد. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional آخرین مکان گزارش شده خودروی تحویل. |
remainingDurationMillis optional | نوع: number optional مدت زمان رانندگی باقی مانده در بخش مسیر فعلی، بر حسب میلی ثانیه. |
رابط DeliveryVehicleStop
google.maps.journeySharing . DeliveryVehicleStop
رابط google.maps.journeySharing . DeliveryVehicleStop
نوع DeliveryVehicleStop
خواص | |
---|---|
tasks | لیست وظایفی که باید در این ایستگاه انجام شود.
|
plannedLocation optional | نوع: LatLngLiteral optional محل توقف. |
state optional | نوع: DeliveryVehicleStopState optional وضعیت توقف. |
ثابت های DeliveryVehicleStopState
google.maps.journeySharing . DeliveryVehicleStopState
ثابت های google.maps.journeySharing . DeliveryVehicleStopState
وضعیت فعلی یک DeliveryVehicleStop
.
با تماس const {DeliveryVehicleStopState} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
ARRIVED | به ایستگاه رسید. فرض می کند که وقتی وسیله نقلیه در حال مسیریابی به ایستگاه بعدی است، تمام توقف های قبلی تکمیل شده است. |
ENROUTE | اختصاص داده شده و به طور فعال مسیریابی. |
NEW | ایجاد شده، اما به طور فعال مسیریابی نمی شود. |
UNSPECIFIED | ناشناخته. |
رابط VehicleJourneySegment
google.maps.journeySharing . VehicleJourneySegment
رابط google.maps.journeySharing . VehicleJourneySegment
VehicleJourneySegment نوع
خواص | |
---|---|
drivingDistanceMeters optional | نوع: number optional مسافت طی شده از ایستگاه قبلی تا این توقف، بر حسب متر. |
drivingDurationMillis optional | نوع: number optional زمان سفر از توقف قبلی این توقف، بر حسب میلی ثانیه. |
path optional | نوع: Array < LatLngLiteral > optional مسیر توقف قبلی (یا مکان فعلی وسیله نقلیه، اگر این توقف اولین توقف در لیست توقف ها باشد) تا این توقف. |
stop optional | نوع: DeliveryVehicleStop optional اطلاعات در مورد توقف |
رابط به روز رسانی مکان خودرو
google.maps.journeySharing . VehicleLocationUpdate
رابط google.maps.journeySharing . VehicleLocationUpdate
نوع به روز رسانی مکان خودرو
خواص | |
---|---|
heading optional | نوع: number optional عنوان به روز رسانی. 0 مربوط به شمال، 180 به جنوب است. |
location optional | نوع: LatLngLiteral | LatLng optional محل به روز رسانی. |
speedKilometersPerHour optional | نوع: number optional سرعت بر حسب کیلومتر در ساعت. |
time optional | نوع: Date optional زمانی که این بهروزرسانی از خودرو دریافت شد. |
رابط وسیله نقلیه
google.maps.journeySharing . VehicleWaypoint
رابط google.maps.journeySharing . VehicleWaypoint
نوع وسیله نقلیه.
خواص | |
---|---|
distanceMeters optional | نوع: number optional فاصله مسیر بین ایستگاه قبلی (یا مکان فعلی وسیله نقلیه، در صورتی که این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطهگذر بر حسب متر. |
durationMillis optional | نوع: number optional زمان سفر بین ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطه بین بر حسب میلیثانیه. |
location optional | نوع: LatLngLiteral optional محل ایستگاه راه. |
path optional | نوع: Array < LatLngLiteral > optional مسیر از ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاه های بین راه باشد) به این ایستگاه بین راه. |
رابط وسیله نقلیه
google.maps.journeySharing . Vehicle
رابط google.maps.journeySharing . Vehicle
جزئیات یک وسیله نقلیه بازگردانده شده توسط Fleet Engine.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های خودروی سفارشی |
name | نوع: string در قالب "provider/{provider_id}/vehicles/{vehicle_id}". Vehicle_id باید یک شناسه منحصر به فرد باشد. |
navigationStatus | وضعیت ناوبری فعلی وسیله نقلیه |
remainingDistanceMeters | نوع: number مسافت رانندگی باقیمانده در بخش مسیر فعلی، بر حسب متر. |
vehicleState | نوع: VehicleState وضعیت وسیله نقلیه |
vehicleType | نوع: VehicleType نوع این وسیله نقلیه |
currentRouteSegmentEndPoint optional | نوع: TripWaypoint optional نقطه ای که در آن بخش مسیر فعلی به پایان می رسد. |
currentRouteSegmentVersion optional | نوع: Date optional زمانی که بخش مسیر فعلی تنظیم شد. |
currentTrips optional | نوع: Array <string> optional فهرست شناسه سفر برای سفرهایی که در حال حاضر به این وسیله نقلیه اختصاص داده شده است. |
etaToFirstWaypoint optional | نوع: Date optional ETA به اولین ورودی در قسمت ایستگاه های بین راه. |
latestLocation optional | نوع: VehicleLocationUpdate optional آخرین مکان گزارش شده خودرو |
maximumCapacity optional | نوع: number optional تعداد کل سوارانی که این وسیله نقلیه می تواند حمل کند. درایور در این مقدار در نظر گرفته نمی شود. |
supportedTripTypes optional | انواع سفرهای پشتیبانی شده توسط این وسیله نقلیه. |
waypoints optional | نوع: Array < TripWaypoint > optional نقاط بین راهی که به این وسیله نقلیه اختصاص داده شده است. |
waypointsVersion optional | نوع: Date optional آخرین باری که قسمت ایستگاه های بین راه به روز شد. |
ثابت های وضعیت ناوبری خودرو
google.maps.journeySharing . VehicleNavigationStatus
ثابت های google.maps.journeySharing . VehicleNavigationStatus
وضعیت ناوبری فعلی یک Vehicle
.
با فراخوانی const {VehicleNavigationStatus} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
ARRIVED_AT_DESTINATION | وسیله نقلیه تقریباً 50 متر از مقصد فاصله دارد. |
ENROUTE_TO_DESTINATION | پیمایش گام به گام در دسترس است و پیمایش برنامه Driver وارد حالت GUIDED_NAV شده است. |
NO_GUIDANCE | ناوبری برنامه Driver در حالت FREE_NAV است. |
OFF_ROUTE | خودرو از مسیر پیشنهادی خارج شده است. |
UNKNOWN_NAVIGATION_STATUS | وضعیت ناوبری نامشخص |
ثابت های حالت خودرو
google.maps.journeySharing . VehicleState
ثابت های google.maps.journeySharing . VehicleState
وضعیت فعلی یک Vehicle
با فراخوانی const {VehicleState} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
OFFLINE | وسیله نقلیه سفرهای جدید را نمی پذیرد. |
ONLINE | خودرو در حال پذیرش سفرهای جدید است. |
UNKNOWN_VEHICLE_STATE | وضعیت نامشخص خودرو |
ثابت های نوع وسیله نقلیه
google.maps.journeySharing . VehicleType
ثابت های google.maps.journeySharing . VehicleType
نوع Vehicle
.
با فراخوانی const {VehicleType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
AUTO | یک ماشین |
TAXI | هر وسیله نقلیه ای که به عنوان یک تاکسی عمل می کند (معمولا دارای مجوز یا دارای مقررات قانونی). |
TRUCK | وسیله نقلیه ای با ظرفیت ذخیره سازی زیاد. |
TWO_WHEELER | یک موتور سیکلت، موتور سیکلت یا وسایل نقلیه دو چرخ دیگر. |
UNKNOWN | نوع وسیله نقلیه نامشخص |
ثابت های TripType
google.maps.journeySharing . TripType
ثابت های google.maps.journeySharing . TripType
انواع سفر که توسط یک Vehicle
پشتیبانی می شود.
با فراخوانی const {TripType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
EXCLUSIVE | این سفر منحصر به یک وسیله نقلیه است. |
SHARED | این سفر ممکن است یک وسیله نقلیه با سفرهای دیگر مشترک باشد. |
UNKNOWN_TRIP_TYPE | نوع سفر نامشخص |
رابط TripWaypoint
google.maps.journeySharing . TripWaypoint
رابط google.maps.journeySharing . TripWaypoint
نوع TripWaypoint.
خواص | |
---|---|
distanceMeters optional | نوع: number optional فاصله مسیر بین ایستگاه قبلی (یا مکان فعلی وسیله نقلیه، در صورتی که این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطهگذر بر حسب متر. |
durationMillis optional | نوع: number optional زمان سفر بین ایستگاه بین راه قبلی (یا مکان فعلی وسیله نقلیه، اگر این نقطه بین اولین نقطه در لیست ایستگاههای بین راه باشد) تا این نقطه بین بر حسب میلیثانیه. |
location optional | نوع: LatLngLiteral optional محل ایستگاه راه. |
tripId optional | نوع: string optional سفر مرتبط با این ایستگاه. |
waypointType optional | نوع: WaypointType optional نقشی که این ایستگاه بین راهی در این سفر ایفا می کند، مانند پیکاپ یا تخلیه. |
ثابت های نوع Waypoint
google.maps.journeySharing . WaypointType
ثابت های google.maps.journeySharing . WaypointType
انواع ایستگاه های بین راهی که توسط Vehicle
پشتیبانی می شوند.
با فراخوانی const {WaypointType} = await google.maps.importLibrary("journeySharing")
دسترسی پیدا کنید. کتابخانه ها را در Maps JavaScript API ببینید.
ثابت ها | |
---|---|
DROP_OFF_WAYPOINT_TYPE | نقاط راه برای پیاده کردن سوارکاران. |
INTERMEDIATE_DESTINATION_WAYPOINT_TYPE | نقاط راه برای مقاصد میانی در یک سفر چند مقصدی. |
PICKUP_WAYPOINT_TYPE | نقاط راه برای سوار کردن سواران. |
UNKNOWN_WAYPOINT_TYPE | نوع نقطه راه نامشخص. |
رابط TimeWindow
google.maps.journeySharing . TimeWindow
رابط google.maps.journeySharing . TimeWindow
یک محدوده زمانی
خواص | |
---|---|
endTime | نوع: Date زمان پایان پنجره زمانی (شامل). |
startTime | نوع: Date زمان شروع پنجره زمانی (شامل). |
رابط وظیفه
google.maps.journeySharing . Task
رابط google.maps.journeySharing . Task
جزئیات یک کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام کار در قالب "provider/{provider_id}/tasks/{task_id}". Task_id باید یک شناسه منحصر به فرد باشد و نه یک شناسه ردیابی. برای ذخیره شناسه ردیابی یک محموله، از قسمت tracking_id استفاده کنید. چندین کار می توانند tracking_id یکسان داشته باشند. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > اطلاعات مربوط به بخش های باقی مانده برای تکمیل این کار. |
status | نوع: string وضعیت اجرای فعلی کار. |
type | نوع: string نوع کار؛ به عنوان مثال، یک استراحت یا حمل و نقل. |
estimatedCompletionTime optional | نوع: Date optional مهر زمانی زمان تخمینی تکمیل کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
outcome optional | نوع: string optional نتیجه کار. |
outcomeLocation optional | نوع: LatLngLiteral optional مکانی که کار تکمیل شد (از ارائه دهنده). |
outcomeLocationSource optional | نوع: string optional تنظیمکننده مکان نتیجه کار («PROVIDER» یا «LAST_VEHICLE_LOCATION»). |
outcomeTime optional | نوع: Date optional مهر زمانی زمانی که نتیجه کار تنظیم شد (از ارائه دهنده). |
plannedLocation optional | نوع: LatLngLiteral optional مکانی که قرار است کار تکمیل شود. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
trackingId optional | نوع: string optional شناسه رهگیری محموله |
vehicleId optional | نوع: string optional شناسه وسیله نقلیه ای که این کار را انجام می دهد. |
رابط TaskInfo
google.maps.journeySharing . TaskInfo
رابط google.maps.journeySharing . TaskInfo
نوع TaskInfo، استفاده شده توسط DeliveryVehicleStop
.
خواص | |
---|---|
extraDurationMillis optional | نوع: number optional زمان اضافی برای انجام کار، در میلی ثانیه. |
id optional | نوع: string optional شناسه کار |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
رابط TaskTrackingInfo
google.maps.journeySharing . TaskTrackingInfo
رابط google.maps.journeySharing . TaskTrackingInfo
جزئیات یک شی اطلاعات ردیابی کار که توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, *> ویژگی های اختصاص داده شده به کار |
name | نوع: string نام در قالب "providers/{provider_id}/taskTrackingInfo/{tracking_id}"، که در آن tracking_id نشان دهنده شناسه ردیابی است. |
trackingId | نوع: string شناسه ردیابی یک کار.
|
estimatedArrivalTime optional | نوع: Date optional زمان تخمینی رسیدن به محل توقف. |
estimatedTaskCompletionTime optional | نوع: Date optional زمان تخمینی تکمیل یک کار. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
plannedLocation optional | نوع: LatLng optional مکانی که وظیفه تکمیل خواهد شد. |
remainingDrivingDistanceMeters optional | نوع: number optional مجموع مسافت باقیمانده بر حسب متر تا VehicleStop مورد علاقه. |
remainingStopCount optional | نوع: number optional تعداد توقف هایی که وسیله نقلیه تا رسیدن به ایستگاه وظیفه باقی مانده است، از جمله توقف کار را نشان می دهد. به عنوان مثال، اگر توقف بعدی خودرو، توقف کار باشد، مقدار 1 خواهد بود. |
routePolylinePoints optional | فهرستی از نقاطی که در صورت اتصال چند خطی از مسیر مورد انتظار وسیله نقلیه به محل این کار را تشکیل می دهند. |
state optional | نوع: string optional وضعیت فعلی اجرای Task. |
targetTimeWindow optional | نوع: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
taskOutcome optional | نوع: string optional نتیجه تلاش برای اجرای یک Task. |
taskOutcomeTime optional | نوع: Date optional زمانی که نتیجه Task توسط ارائه دهنده تنظیم شد. |
رابط سفر
google.maps.journeySharing . Trip
رابط google.maps.journeySharing . Trip
جزئیات سفر توسط Fleet Engine برگردانده شده است.
خواص | |
---|---|
name | نوع: string در قالب "provider/{provider_id}/trips/{trip_id}". trip_id باید یک شناسه منحصر به فرد باشد. |
passengerCount | نوع: number تعداد مسافران این سفر؛ شامل راننده نمی شود |
remainingWaypoints | نوع: Array < VehicleWaypoint > آرایه ای از ایستگاه های بین راه که مسیر را از مکان فعلی تا نقطه خروج را نشان می دهد. |
status | نوع: string وضعیت فعلی سفر مقادیر ممکن عبارتند از: UNKNOWN_TRIP_STATUS، NEW، ENROUTE_TO_PICKUP، ARRIVED_AT_PICKUP، ARRIVED_AT_INTERMEDIATE_DESTINATION، ENROUTE_TO_INTERMEDIATE_DESTINATION، ENROUTE_TO_DROPOFF، یا COMPELED. |
type | نوع: string نوع سفر. مقادیر ممکن UNKNOWN_TRIP_TYPE، SHARED یا EXCLUSIVE هستند. |
vehicleId | نوع: string شناسه وسیله نقلیه ای که این سفر را انجام می دهد. |
actualDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری در آن پیاده شده است. |
actualPickupLocation optional | نوع: LatLngLiteral optional محل تحویل مشتری |
dropOffTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران پیاده خواهند شد، یا زمان واقعی زمانی که مسافران پیاده شدند. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional اطلاعات مربوط به آخرین بهروزرسانی مکان. |
pickupTime optional | نوع: Date optional زمان تخمینی در آینده که مسافران سوار خواهند شد، یا زمان واقعی زمانی که مسافران سوار شدند. |
plannedDropOffLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را ترک خواهند کرد. |
plannedPickupLocation optional | نوع: LatLngLiteral optional مکانی که مشتری نشان می دهد که آنها را تحویل می گیرند. |
رابط DeliveryVehicle
google.maps.journeySharing . DeliveryVehicle
رابط google.maps.journeySharing . DeliveryVehicle
جزئیات یک وسیله نقلیه تحویلی که توسط Fleet Engine بازگردانده شده است.
خواص | |
---|---|
attributes | نوع: Object <string, string optional > ویژگی های وسیله نقلیه تحویل سفارشی |
name | نوع: string در قالب "provider/{provider_id}/deliveryVehicles/{delivery_vehicle_id}". شناسه delivery_vehicle باید یک شناسه منحصر به فرد باشد. |
navigationStatus | نوع: string وضعیت ناوبری فعلی وسیله نقلیه |
remainingDistanceMeters | نوع: number مسافت رانندگی باقیمانده در بخش مسیر فعلی، بر حسب متر. |
remainingVehicleJourneySegments | نوع: Array < VehicleJourneySegment > بخش های سفر اختصاص داده شده به این وسیله نقلیه تحویل، از آخرین مکان گزارش شده خودرو شروع می شود. این تنها زمانی پر می شود که شی داده DeliveryVehicle از طریق FleetEngineDeliveryVehicleLocationProvider ارائه شود. |
currentRouteSegmentEndPoint optional | نوع: LatLngLiteral optional مکانی که بخش مسیر فعلی به پایان می رسد. |
latestVehicleLocationUpdate optional | نوع: VehicleLocationUpdate optional آخرین مکان گزارش شده خودروی تحویل. |
remainingDurationMillis optional | نوع: number optional The remaining driving duration in the current route segment, in milliseconds. |
DeliveryVehicleStop interface
google.maps.journeySharing . DeliveryVehicleStop
interface
DeliveryVehicleStop type
Properties | |
---|---|
tasks | The list of Tasks to be performed at this stop.
|
plannedLocation optional | Type: LatLngLiteral optional محل توقف. |
state optional | Type: DeliveryVehicleStopState optional The state of the stop. |
DeliveryVehicleStopState constants
google.maps.journeySharing . DeliveryVehicleStopState
constants
The current state of a DeliveryVehicleStop
.
Access by calling const {DeliveryVehicleStopState} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
ARRIVED | Arrived at stop. Assumes that when the vehicle is routing to the next stop, that all previous stops have been completed. |
ENROUTE | Assigned and actively routing. |
NEW | Created, but not actively routing. |
UNSPECIFIED | Unknown. |
VehicleJourneySegment interface
google.maps.journeySharing . VehicleJourneySegment
interface
VehicleJourneySegment type
Properties | |
---|---|
drivingDistanceMeters optional | Type: number optional The travel distance from the previous stop to this stop, in meters. |
drivingDurationMillis optional | Type: number optional The travel time from the previous stop this stop, in milliseconds. |
path optional | Type: Array < LatLngLiteral > optional The path from the previous stop (or the vehicle's current location, if this stop is the first in the list of stops) to this stop. |
stop optional | Type: DeliveryVehicleStop optional Information about the stop. |
VehicleLocationUpdate interface
google.maps.journeySharing . VehicleLocationUpdate
interface
VehicleLocationUpdate type
Properties | |
---|---|
heading optional | Type: number optional The heading of the update. 0 corresponds to north, 180 to south. |
location optional | Type: LatLngLiteral | LatLng optional The location of the update. |
speedKilometersPerHour optional | Type: number optional The speed in kilometers per hour. |
time optional | Type: Date optional The time this update was received from the vehicle. |
VehicleWaypoint interface
google.maps.journeySharing . VehicleWaypoint
interface
VehicleWaypoint type.
Properties | |
---|---|
distanceMeters optional | Type: number optional The path distance between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in meters. |
durationMillis optional | Type: number optional Travel time between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in milliseconds. |
location optional | Type: LatLngLiteral optional The location of the waypoint. |
path optional | Type: Array < LatLngLiteral > optional The path from the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint. |
Vehicle interface
google.maps.journeySharing . Vehicle
interface
The details for a vehicle returned by Fleet Engine.
Properties | |
---|---|
attributes | Type: Object <string, *> Custom vehicle attributes. |
name | Type: string In the format "providers/{provider_id}/vehicles/{vehicle_id}". The vehicle_id must be a unique identifier. |
navigationStatus | Type: VehicleNavigationStatus The current navigation status of the vehicle. |
remainingDistanceMeters | Type: number The remaining driving distance in the current route segment, in meters. |
vehicleState | Type: VehicleState The vehicle state. |
vehicleType | Type: VehicleType The type of this vehicle. |
currentRouteSegmentEndPoint optional | Type: TripWaypoint optional The waypoint where current route segment ends. |
currentRouteSegmentVersion optional | Type: Date optional Time when the current route segment was set. |
currentTrips optional | Type: Array <string> optional List of trip IDs for trips currently assigned to this vehicle. |
etaToFirstWaypoint optional | Type: Date optional The ETA to the first entry in the waypoints field. |
latestLocation optional | Type: VehicleLocationUpdate optional The last reported location of the vehicle. |
maximumCapacity optional | Type: number optional The total numbers of riders this vehicle can carry. The driver is not considered in this value. |
supportedTripTypes optional | Trip types supported by this vehicle. |
waypoints optional | Type: Array < TripWaypoint > optional The remaining waypoints assigned to this Vehicle. |
waypointsVersion optional | Type: Date optional Last time the waypoints field was updated. |
VehicleNavigationStatus constants
google.maps.journeySharing . VehicleNavigationStatus
constants
The current navigation status of a Vehicle
.
Access by calling const {VehicleNavigationStatus} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
ARRIVED_AT_DESTINATION | The vehicle is within approximately 50m of the destination. |
ENROUTE_TO_DESTINATION | Turn-by-turn navigation is available and the Driver app navigation has entered GUIDED_NAV mode. |
NO_GUIDANCE | The Driver app's navigation is in FREE_NAV mode. |
OFF_ROUTE | The vehicle has gone off the suggested route. |
UNKNOWN_NAVIGATION_STATUS | Unspecified navigation status. |
VehicleState constants
google.maps.journeySharing . VehicleState
constants
The current state of a Vehicle
.
Access by calling const {VehicleState} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
OFFLINE | The vehicle is not accepting new trips. |
ONLINE | The vehicle is accepting new trips. |
UNKNOWN_VEHICLE_STATE | Unknown vehicle state. |
VehicleType constants
google.maps.journeySharing . VehicleType
constants
The type of Vehicle
.
Access by calling const {VehicleType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
AUTO | An automobile. |
TAXI | Any vehicle that acts as a taxi (typically licensed or regulated). |
TRUCK | A vehicle with a large storage capacity. |
TWO_WHEELER | A motorcycle, moped, or other two-wheeled vehicle. |
UNKNOWN | Unknown vehicle type. |
TripType constants
google.maps.journeySharing . TripType
constants
Trip types supported by a Vehicle
.
Access by calling const {TripType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
EXCLUSIVE | The trip is exclusive to a vehicle. |
SHARED | The trip may share a vehicle with other trips. |
UNKNOWN_TRIP_TYPE | Unknown trip type. |
TripWaypoint interface
google.maps.journeySharing . TripWaypoint
interface
TripWaypoint type.
Properties | |
---|---|
distanceMeters optional | Type: number optional The path distance between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in meters. |
durationMillis optional | Type: number optional Travel time between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in milliseconds. |
location optional | Type: LatLngLiteral optional The location of the waypoint. |
tripId optional | Type: string optional The trip associated with this waypoint. |
waypointType optional | Type: WaypointType optional The role this waypoint plays in this trip, such as pickup or dropoff. |
WaypointType constants
google.maps.journeySharing . WaypointType
constants
Waypoint types supported by Vehicle
.
Access by calling const {WaypointType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
DROP_OFF_WAYPOINT_TYPE | Waypoints for dropping off riders. |
INTERMEDIATE_DESTINATION_WAYPOINT_TYPE | Waypoints for intermediate destinations in a multi-destination trip. |
PICKUP_WAYPOINT_TYPE | Waypoints for picking up riders. |
UNKNOWN_WAYPOINT_TYPE | Unknown waypoint type. |
TimeWindow interface
google.maps.journeySharing . TimeWindow
interface
A time range.
Properties | |
---|---|
endTime | Type: Date The end time of the time window (inclusive). |
startTime | Type: Date The start time of the time window (inclusive). |
Task interface
google.maps.journeySharing . Task
interface
The details for a task returned by Fleet Engine.
Properties | |
---|---|
attributes | Type: Object <string, *> Attributes assigned to the task. |
name | Type: string The task name in the format "providers/{provider_id}/tasks/{task_id}". The task_id must be a unique identifier and not a tracking ID. To store a tracking ID of a shipment, use the tracking_id field. Multiple tasks can have the same tracking_id. |
remainingVehicleJourneySegments | Type: Array < VehicleJourneySegment > Information about the segments left to be completed for this task. |
status | Type: string The current execution state of the task. |
type | Type: string The task type; for example, a break or shipment. |
estimatedCompletionTime optional | Type: Date optional The timestamp of the estimated completion time of the task. |
latestVehicleLocationUpdate optional | Type: VehicleLocationUpdate optional Information specific to the last location update. |
outcome optional | Type: string optional The outcome of the task. |
outcomeLocation optional | Type: LatLngLiteral optional The location where the task was completed (from provider). |
outcomeLocationSource optional | Type: string optional The setter of the task outcome location ('PROVIDER' or 'LAST_VEHICLE_LOCATION'). |
outcomeTime optional | Type: Date optional مهر زمانی زمانی که نتیجه کار تنظیم شد (از ارائه دهنده). |
plannedLocation optional | Type: LatLngLiteral optional The location where the task is to be completed. |
targetTimeWindow optional | Type: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
trackingId optional | Type: string optional The tracking ID of the shipment. |
vehicleId optional | Type: string optional The ID of the vehicle performing this task. |
TaskInfo interface
google.maps.journeySharing . TaskInfo
interface
TaskInfo type, used by DeliveryVehicleStop
.
Properties | |
---|---|
extraDurationMillis optional | Type: number optional The extra time it takes to perform the task, in milliseconds. |
id optional | Type: string optional The ID of the task. |
targetTimeWindow optional | Type: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
TaskTrackingInfo interface
google.maps.journeySharing . TaskTrackingInfo
interface
The details for a task tracking info object returned by Fleet Engine.
Properties | |
---|---|
attributes | Type: Object <string, *> Attributes assigned to the task. |
name | Type: string The name in the format "providers/{provider_id}/taskTrackingInfo/{tracking_id}", where tracking_id represents the tracking ID. |
trackingId | Type: string The tracking ID of a Task.
|
estimatedArrivalTime optional | Type: Date optional The estimated arrival time to the stop location. |
estimatedTaskCompletionTime optional | Type: Date optional The estimated completion time of a Task. |
latestVehicleLocationUpdate optional | Type: VehicleLocationUpdate optional Information specific to the last location update. |
plannedLocation optional | Type: LatLng optional The location where the Task will be completed. |
remainingDrivingDistanceMeters optional | Type: number optional The total remaining distance in meters to the VehicleStop of interest. |
remainingStopCount optional | Type: number optional Indicates the number of stops the vehicle remaining until the task stop is reached, including the task stop. For example, if the vehicle's next stop is the task stop, the value will be 1. |
routePolylinePoints optional | A list of points which when connected forms a polyline of the vehicle's expected route to the location of this task. |
state optional | Type: string optional The current execution state of the Task. |
targetTimeWindow optional | Type: TimeWindow optional پنجره زمانی که در طی آن کار باید تکمیل شود. |
taskOutcome optional | Type: string optional The outcome of attempting to execute a Task. |
taskOutcomeTime optional | Type: Date optional The time when the Task's outcome was set by the provider. |
Trip interface
google.maps.journeySharing . Trip
interface
The details for a trip returned by Fleet Engine.
Properties | |
---|---|
name | Type: string In the format "providers/{provider_id}/trips/{trip_id}". The trip_id must be a unique identifier. |
passengerCount | Type: number Number of passengers on this trip; does not include the driver. |
remainingWaypoints | Type: Array < VehicleWaypoint > An array of waypoints indicating the path from the current location to the drop-off point. |
status | Type: string Current status of the trip. Possible values are UNKNOWN_TRIP_STATUS, NEW, ENROUTE_TO_PICKUP, ARRIVED_AT_PICKUP, ARRIVED_AT_INTERMEDIATE_DESTINATION, ENROUTE_TO_INTERMEDIATE_DESTINATION, ENROUTE_TO_DROPOFF, COMPLETE, or CANCELED. |
type | Type: string The type of the trip. Possible values are UNKNOWN_TRIP_TYPE, SHARED or EXCLUSIVE. |
vehicleId | Type: string ID of the vehicle making this trip. |
actualDropOffLocation optional | Type: LatLngLiteral optional Location where the customer was dropped off. |
actualPickupLocation optional | Type: LatLngLiteral optional Location where the customer was picked up. |
dropOffTime optional | Type: Date optional The estimated future time when the passengers will be dropped off, or the actual time when they were dropped off. |
latestVehicleLocationUpdate optional | Type: VehicleLocationUpdate optional Information specific to the last location update. |
pickupTime optional | Type: Date optional The estimated future time when the passengers will be picked up, or the actual time when they were picked up. |
plannedDropOffLocation optional | Type: LatLngLiteral optional Location where the customer indicates they will be dropped off. |
plannedPickupLocation optional | Type: LatLngLiteral optional Location where customer indicates they will be picked up. |
DeliveryVehicle interface
google.maps.journeySharing . DeliveryVehicle
interface
The details for a delivery vehicle returned by Fleet Engine.
Properties | |
---|---|
attributes | Type: Object <string, string optional > Custom delivery vehicle attributes. |
name | Type: string In the format "providers/{provider_id}/deliveryVehicles/{delivery_vehicle_id}". The delivery_vehicle_id must be a unique identifier. |
navigationStatus | Type: string The current navigation status of the vehicle. |
remainingDistanceMeters | Type: number The remaining driving distance in the current route segment, in meters. |
remainingVehicleJourneySegments | Type: Array < VehicleJourneySegment > The journey segments assigned to this delivery vehicle, starting from the vehicle's most recently reported location. This is only populated when the DeliveryVehicle data object is provided through FleetEngineDeliveryVehicleLocationProvider . |
currentRouteSegmentEndPoint optional | Type: LatLngLiteral optional The location where the current route segment ends. |
latestVehicleLocationUpdate optional | Type: VehicleLocationUpdate optional The last reported location of the delivery vehicle. |
remainingDurationMillis optional | Type: number optional The remaining driving duration in the current route segment, in milliseconds. |
DeliveryVehicleStop interface
google.maps.journeySharing . DeliveryVehicleStop
interface
DeliveryVehicleStop type
Properties | |
---|---|
tasks | The list of Tasks to be performed at this stop.
|
plannedLocation optional | Type: LatLngLiteral optional محل توقف. |
state optional | Type: DeliveryVehicleStopState optional The state of the stop. |
DeliveryVehicleStopState constants
google.maps.journeySharing . DeliveryVehicleStopState
constants
The current state of a DeliveryVehicleStop
.
Access by calling const {DeliveryVehicleStopState} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
ARRIVED | Arrived at stop. Assumes that when the vehicle is routing to the next stop, that all previous stops have been completed. |
ENROUTE | Assigned and actively routing. |
NEW | Created, but not actively routing. |
UNSPECIFIED | Unknown. |
VehicleJourneySegment interface
google.maps.journeySharing . VehicleJourneySegment
interface
VehicleJourneySegment type
Properties | |
---|---|
drivingDistanceMeters optional | Type: number optional The travel distance from the previous stop to this stop, in meters. |
drivingDurationMillis optional | Type: number optional The travel time from the previous stop this stop, in milliseconds. |
path optional | Type: Array < LatLngLiteral > optional The path from the previous stop (or the vehicle's current location, if this stop is the first in the list of stops) to this stop. |
stop optional | Type: DeliveryVehicleStop optional Information about the stop. |
VehicleLocationUpdate interface
google.maps.journeySharing . VehicleLocationUpdate
interface
VehicleLocationUpdate type
Properties | |
---|---|
heading optional | Type: number optional The heading of the update. 0 corresponds to north, 180 to south. |
location optional | Type: LatLngLiteral | LatLng optional The location of the update. |
speedKilometersPerHour optional | Type: number optional The speed in kilometers per hour. |
time optional | Type: Date optional The time this update was received from the vehicle. |
VehicleWaypoint interface
google.maps.journeySharing . VehicleWaypoint
interface
VehicleWaypoint type.
Properties | |
---|---|
distanceMeters optional | Type: number optional The path distance between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in meters. |
durationMillis optional | Type: number optional Travel time between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in milliseconds. |
location optional | Type: LatLngLiteral optional The location of the waypoint. |
path optional | Type: Array < LatLngLiteral > optional The path from the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint. |
Vehicle interface
google.maps.journeySharing . Vehicle
interface
The details for a vehicle returned by Fleet Engine.
Properties | |
---|---|
attributes | Type: Object <string, *> Custom vehicle attributes. |
name | Type: string In the format "providers/{provider_id}/vehicles/{vehicle_id}". The vehicle_id must be a unique identifier. |
navigationStatus | Type: VehicleNavigationStatus The current navigation status of the vehicle. |
remainingDistanceMeters | Type: number The remaining driving distance in the current route segment, in meters. |
vehicleState | Type: VehicleState The vehicle state. |
vehicleType | Type: VehicleType The type of this vehicle. |
currentRouteSegmentEndPoint optional | Type: TripWaypoint optional The waypoint where current route segment ends. |
currentRouteSegmentVersion optional | Type: Date optional Time when the current route segment was set. |
currentTrips optional | Type: Array <string> optional List of trip IDs for trips currently assigned to this vehicle. |
etaToFirstWaypoint optional | Type: Date optional The ETA to the first entry in the waypoints field. |
latestLocation optional | Type: VehicleLocationUpdate optional The last reported location of the vehicle. |
maximumCapacity optional | Type: number optional The total numbers of riders this vehicle can carry. The driver is not considered in this value. |
supportedTripTypes optional | Trip types supported by this vehicle. |
waypoints optional | Type: Array < TripWaypoint > optional The remaining waypoints assigned to this Vehicle. |
waypointsVersion optional | Type: Date optional Last time the waypoints field was updated. |
VehicleNavigationStatus constants
google.maps.journeySharing . VehicleNavigationStatus
constants
The current navigation status of a Vehicle
.
Access by calling const {VehicleNavigationStatus} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
ARRIVED_AT_DESTINATION | The vehicle is within approximately 50m of the destination. |
ENROUTE_TO_DESTINATION | Turn-by-turn navigation is available and the Driver app navigation has entered GUIDED_NAV mode. |
NO_GUIDANCE | The Driver app's navigation is in FREE_NAV mode. |
OFF_ROUTE | The vehicle has gone off the suggested route. |
UNKNOWN_NAVIGATION_STATUS | Unspecified navigation status. |
VehicleState constants
google.maps.journeySharing . VehicleState
constants
The current state of a Vehicle
.
Access by calling const {VehicleState} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
OFFLINE | The vehicle is not accepting new trips. |
ONLINE | The vehicle is accepting new trips. |
UNKNOWN_VEHICLE_STATE | Unknown vehicle state. |
VehicleType constants
google.maps.journeySharing . VehicleType
constants
The type of Vehicle
.
Access by calling const {VehicleType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
AUTO | An automobile. |
TAXI | Any vehicle that acts as a taxi (typically licensed or regulated). |
TRUCK | A vehicle with a large storage capacity. |
TWO_WHEELER | A motorcycle, moped, or other two-wheeled vehicle. |
UNKNOWN | Unknown vehicle type. |
TripType constants
google.maps.journeySharing . TripType
constants
Trip types supported by a Vehicle
.
Access by calling const {TripType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
EXCLUSIVE | The trip is exclusive to a vehicle. |
SHARED | The trip may share a vehicle with other trips. |
UNKNOWN_TRIP_TYPE | Unknown trip type. |
TripWaypoint interface
google.maps.journeySharing . TripWaypoint
interface
TripWaypoint type.
Properties | |
---|---|
distanceMeters optional | Type: number optional The path distance between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in meters. |
durationMillis optional | Type: number optional Travel time between the previous waypoint (or the vehicle's current location, if this waypoint is the first in the list of waypoints) to this waypoint in milliseconds. |
location optional | Type: LatLngLiteral optional The location of the waypoint. |
tripId optional | Type: string optional The trip associated with this waypoint. |
waypointType optional | Type: WaypointType optional The role this waypoint plays in this trip, such as pickup or dropoff. |
WaypointType constants
google.maps.journeySharing . WaypointType
constants
Waypoint types supported by Vehicle
.
Access by calling const {WaypointType} = await google.maps.importLibrary("journeySharing")
. See Libraries in the Maps JavaScript API .
ثابت ها | |
---|---|
DROP_OFF_WAYPOINT_TYPE | Waypoints for dropping off riders. |
INTERMEDIATE_DESTINATION_WAYPOINT_TYPE | Waypoints for intermediate destinations in a multi-destination trip. |
PICKUP_WAYPOINT_TYPE | Waypoints for picking up riders. |
UNKNOWN_WAYPOINT_TYPE | Unknown waypoint type. |
TimeWindow interface
google.maps.journeySharing . TimeWindow
interface
A time range.
Properties | |
---|---|
endTime | Type: Date The end time of the time window (inclusive). |
startTime | Type: Date The start time of the time window (inclusive). |