شاخص
-
Routes
(رابط) -
ComputeRouteMatrixRequest
(پیام) -
ComputeRouteMatrixRequest.ExtraComputation
(enum) -
ComputeRoutesRequest
(پیام) -
ComputeRoutesRequest.ExtraComputation
(enum) -
ComputeRoutesRequest.ReferenceRoute
(enum) -
ComputeRoutesResponse
(پیام) -
FallbackInfo
(پیام) -
FallbackReason
(تعدادی) -
FallbackRoutingMode
(enum) -
GeocodedWaypoint
(پیام) -
GeocodingResults
(پیام) -
LocalizedTime
(پیام) -
Location
(پیام) -
Maneuver
(enum) -
NavigationInstruction
(پیام) -
Polyline
(پیام) -
PolylineDetails
(پیام) -
PolylineDetails.FlyoverInfo
(پیام) -
PolylineDetails.NarrowRoadInfo
(پیام) -
PolylineDetails.PolylinePointIndex
(پیام) -
PolylineDetails.RoadFeatureState
(تعدادی) -
PolylineEncoding
(enum) -
PolylineQuality
(تعدادی) -
Route
(پیام) -
Route.RouteLocalizedValues
(پیام) -
RouteLabel
(enum) -
RouteLeg
(پیام) -
RouteLeg.RouteLegLocalizedValues
(پیام) -
RouteLeg.StepsOverview
(پیام) -
RouteLeg.StepsOverview.MultiModalSegment
(پیام) -
RouteLegStep
(پیام) -
RouteLegStep.RouteLegStepLocalizedValues
(پیام) -
RouteLegStepTransitDetails
(پیام) -
RouteLegStepTransitDetails.TransitDetailsLocalizedValues
(پیام) -
RouteLegStepTransitDetails.TransitStopDetails
(پیام) -
RouteLegStepTravelAdvisory
(پیام) -
RouteLegTravelAdvisory
(پیام) -
RouteMatrixDestination
(پیام) -
RouteMatrixElement
(پیام) -
RouteMatrixElement.LocalizedValues
(پیام) -
RouteMatrixElementCondition
(enum) -
RouteMatrixOrigin
(پیام) -
RouteModifiers
(پیام) -
RouteTravelAdvisory
(پیام) -
RouteTravelMode
(enum) -
RoutingPreference
(enum) -
SpeedReadingInterval
(پیام) -
SpeedReadingInterval.Speed
(enum) -
TollInfo
(پیام) -
TollPass
(تعدادی) -
TrafficModel
(enum) -
TransitAgency
(پیام) -
TransitLine
(پیام) -
TransitPreferences
(پیام) -
TransitPreferences.TransitRoutingPreference
(enum) -
TransitPreferences.TransitTravelMode
(enum) -
TransitStop
(پیام) -
TransitVehicle
(پیام) -
TransitVehicle.TransitVehicleType
(enum) -
Units
(تعدادی) -
VehicleEmissionType
(تعدادی) -
VehicleInfo
(پیام) -
Waypoint
(پیام)
مسیرها
Routes API.
ComputeRouteMatrix |
---|
فهرستی از مبدا و مقصد را می گیرد و جریانی حاوی اطلاعات مسیر را برای هر ترکیب مبدا و مقصد برمی گرداند. توجه: این روش مستلزم آن است که یک ماسک فیلد پاسخ را در ورودی مشخص کنید. میتوانید ماسک فیلد پاسخ را با استفاده از پارامتر URL فیلدها یا برای مثال در این روش:
بسیار مهم است که
|
ComputeRoutes |
---|
با توجه به مجموعه ای از ایستگاه های پایانه و میانی، مسیر اصلی را به همراه مسیرهای جایگزین اختیاری برمی گرداند. توجه: این روش مستلزم آن است که یک ماسک فیلد پاسخ را در ورودی مشخص کنید. میتوانید ماسک فیلد پاسخ را با استفاده از پارامتر URL برای مثال در این روش:
Google از استفاده از ماسک فیلد پاسخ (
|
ComputeRouteMatrixRequest
پیام درخواست ComputeRouteMatrix
فیلدها | |
---|---|
origins[] | مورد نیاز. آرایه مبدا، که ردیف های ماتریس پاسخ را تعیین می کند. چندین محدودیت اندازه برای اصلی بودن مبدا و مقصد اعمال می شود:
|
destinations[] | مورد نیاز. آرایه ای از مقاصد، که ستون های ماتریس پاسخ را تعیین می کند. |
travel_mode | اختیاری. نحوه حمل و نقل را مشخص می کند. |
routing_preference | اختیاری. نحوه محاسبه مسیر را مشخص می کند. سرور سعی می کند از اولویت مسیریابی انتخاب شده برای محاسبه مسیر استفاده کند. اگر اولویت مسیریابی منجر به خطا یا تاخیر طولانی مدت شود، یک خطا برگردانده می شود. شما می توانید این گزینه را فقط زمانی مشخص کنید که |
departure_time | اختیاری. زمان حرکت اگر این مقدار را تنظیم نکنید، این مقدار به طور پیشفرض روی زمانی است که درخواست را انجام دادهاید. توجه: زمانی که |
arrival_time | اختیاری. زمان رسیدن. توجه: فقط زمانی می توان تنظیم کرد که |
language_code | اختیاری. کد زبان BCP-47، مانند "en-US" یا "sr-Latn". برای اطلاعات بیشتر، به شناسه محلی یونیکد مراجعه کنید. برای لیست زبان های پشتیبانی شده به پشتیبانی زبان مراجعه کنید. وقتی این مقدار را ارائه نمی کنید، زبان نمایش از محل مبدا اول استنباط می شود. |
region_code | اختیاری. کد منطقه که به عنوان یک مقدار دو نویسه ccTLD ("دامنه سطح بالا") مشخص شده است. برای اطلاعات بیشتر به دامنه های سطح بالای کد کشور مراجعه کنید. |
units | اختیاری. واحدهای اندازه گیری فیلدهای نمایش را مشخص می کند. |
extra_computations[] | اختیاری. فهرستی از محاسبات اضافی که ممکن است برای تکمیل درخواست استفاده شود. توجه: این محاسبات اضافی ممکن است فیلدهای اضافی را در پاسخ بازگرداند. این فیلدهای اضافی نیز باید در فیلد ماسک برای بازگشت در پاسخ مشخص شوند. |
traffic_model | اختیاری. مفروضاتی را برای محاسبه زمان در ترافیک مشخص می کند. این تنظیم بر مقدار بازگشتی در قسمت مدت زمان در |
transit_preferences | اختیاری. تنظیمات برگزیده را مشخص می کند که بر مسیر برگشتی برای مسیرهای |
محاسبات اضافی
محاسبات اضافی برای انجام در هنگام تکمیل درخواست.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار با شکست مواجه خواهند شد. |
TOLLS | اطلاعات عوارض برای عنصر(های) ماتریس. |
ComputeRoutesRequest
پیام درخواست ComputeRoutes.
فیلدها | |
---|---|
origin | مورد نیاز. نقطه راه مبدأ |
destination | مورد نیاز. ایستگاه بین راهی مقصد |
intermediates[] | اختیاری. مجموعه ای از ایستگاه های بین راهی در طول مسیر (به استثنای نقاط پایانه)، برای توقف یا عبور. حداکثر 25 ایستگاه بین راهی پشتیبانی می شود. |
travel_mode | اختیاری. نحوه حمل و نقل را مشخص می کند. |
routing_preference | اختیاری. نحوه محاسبه مسیر را مشخص می کند. سرور سعی می کند از اولویت مسیریابی انتخاب شده برای محاسبه مسیر استفاده کند. اگر اولویت مسیریابی منجر به خطا یا تاخیر طولانی مدت شود، یک خطا برگردانده می شود. شما می توانید این گزینه را فقط زمانی مشخص کنید که |
polyline_quality | اختیاری. ترجیح شما را برای کیفیت پلی لاین مشخص می کند. |
polyline_encoding | اختیاری. رمزگذاری ترجیحی برای چند خط را مشخص می کند. |
departure_time | اختیاری. زمان حرکت اگر این مقدار را تنظیم نکنید، این مقدار به طور پیشفرض روی زمانی است که درخواست را انجام دادهاید. توجه: زمانی که |
arrival_time | اختیاری. زمان رسیدن. توجه: فقط زمانی می توان تنظیم کرد که |
compute_alternative_routes | اختیاری. تعیین می کند که آیا مسیرهای جایگزین علاوه بر مسیر محاسبه شود یا خیر. هیچ مسیر جایگزینی برای درخواست هایی که دارای ایستگاه های بین راهی هستند بازگردانده نمی شود. |
route_modifiers | اختیاری. مجموعه ای از شرایط برای برآورده شدن که بر نحوه محاسبه مسیرها تأثیر می گذارد. |
language_code | اختیاری. کد زبان BCP-47، مانند "en-US" یا "sr-Latn". برای اطلاعات بیشتر، به شناسه محلی یونیکد مراجعه کنید. برای لیست زبان های پشتیبانی شده به پشتیبانی زبان مراجعه کنید. وقتی این مقدار را ارائه نمی کنید، زبان نمایش از محل درخواست مسیر استنباط می شود. |
region_code | اختیاری. کد منطقه که به عنوان یک مقدار دو نویسه ccTLD ("دامنه سطح بالا") مشخص شده است. برای اطلاعات بیشتر به دامنه های سطح بالای کد کشور مراجعه کنید. |
units | اختیاری. واحدهای اندازه گیری فیلدهای نمایش را مشخص می کند. این فیلدها شامل فیلد |
optimize_waypoint_order | اختیاری. اگر روی true تنظیم شود، سرویس تلاش می کند تا هزینه کلی مسیر را با مرتب کردن مجدد ایستگاه های بین راهی مشخص شده به حداقل برساند. در صورتی که هر یک از ایستگاه های بین راهی یک ایستگاه |
requested_reference_routes[] | اختیاری. مشخص می کند چه مسیرهای مرجعی علاوه بر مسیر پیش فرض به عنوان بخشی از درخواست محاسبه شود. مسیر مرجع مسیری با هدف محاسبه مسیر متفاوت از مسیر پیشفرض است. برای مثال یک محاسبه مسیر مرجع |
extra_computations[] | اختیاری. فهرستی از محاسبات اضافی که ممکن است برای تکمیل درخواست استفاده شود. توجه: این محاسبات اضافی ممکن است فیلدهای اضافی را در پاسخ بازگرداند. این فیلدهای اضافی نیز باید در فیلد ماسک برای بازگشت در پاسخ مشخص شوند. |
traffic_model | اختیاری. مفروضاتی را برای محاسبه زمان در ترافیک مشخص می کند. این تنظیم بر مقدار بازگشتی در قسمت مدت زمان در |
transit_preferences | اختیاری. تنظیمات برگزیده را مشخص می کند که بر مسیر برگشتی برای مسیرهای |
محاسبات اضافی
محاسبات اضافی برای انجام در هنگام تکمیل درخواست.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار با شکست مواجه خواهند شد. |
TOLLS | اطلاعات عوارض برای مسیر(های) |
FUEL_CONSUMPTION | مصرف سوخت تخمینی برای مسیر(های) |
TRAFFIC_ON_POLYLINE | چند خط آگاه از ترافیک برای مسیر(های) |
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS | NavigationInstructions به عنوان یک رشته متن فرمت شده HTML ارائه شده است. این محتوا باید همانطور که هست خوانده شود. این محتوا فقط برای نمایش است. به صورت برنامه نویسی آن را تجزیه نکنید. |
FLYOVER_INFO_ON_POLYLINE | اطلاعات پرواز برای مسیر(های) برای بازگرداندن این اطلاعات، فیلد ماسک routes.polyline_details.flyover_info باید مشخص شود. این داده ها در حال حاضر فقط برای متروهای خاصی در هند پر می شود. این ویژگی آزمایشی است و SKU/هزینه ممکن است تغییر کند. |
NARROW_ROAD_INFO_ON_POLYLINE | اطلاعات جاده باریک برای مسیر(ها). برای بازگرداندن این اطلاعات، فیلد ماسک routes.polyline_details.narrow_road_info باید مشخص شود. این داده ها در حال حاضر فقط برای متروهای خاصی در هند پر می شود. این ویژگی آزمایشی است و SKU/هزینه ممکن است تغییر کند. |
ReferenceRoute
یک مسیر مرجع پشتیبانی شده در ComputeRoutesRequest.
Enums | |
---|---|
REFERENCE_ROUTE_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار با شکست مواجه می شوند. |
FUEL_EFFICIENT | مسیر مصرف سوخت |
SHORTER_DISTANCE | مسیری با مسافت سفر کمتر. این یک ویژگی آزمایشی است. برای درخواستهای برای درخواستهای این ویژگی با هیچ حالت سفر دیگری، از طریق ایستگاه های بین راهی، یا |
ComputeRoutesResponse
ComputeRoute پیام پاسخ.
فیلدها | |
---|---|
routes[] | حاوی آرایهای از مسیرهای محاسبهشده (حداکثر سه) زمانی که شما |
fallback_info | در برخی موارد، زمانی که سرور قادر به محاسبه نتایج مسیر با تمام تنظیمات برگزیده ورودی نیست، ممکن است از روش دیگری برای محاسبه استفاده کند. هنگامی که از حالت بازگشتی استفاده می شود، این فیلد حاوی اطلاعات دقیق در مورد پاسخ بازگشتی است. در غیر این صورت این فیلد تنظیم نشده است. |
geocoding_results | حاوی اطلاعات پاسخ کدگذاری جغرافیایی برای نقاط راه مشخص شده به عنوان آدرس است. |
اطلاعات برگشتی
اطلاعات مربوط به چگونگی و چرایی استفاده از یک نتیجه بازگشتی. اگر این فیلد تنظیم شده باشد، به این معنی است که سرور از یک حالت مسیریابی متفاوت از حالت دلخواه شما به عنوان بازگشت استفاده کرده است.
فیلدها | |
---|---|
routing_mode | حالت مسیریابی برای پاسخ استفاده می شود. اگر بازگشت مجدد فعال شد، حالت ممکن است با اولویت مسیریابی تنظیم شده در درخواست مشتری اصلی متفاوت باشد. |
reason | دلیل استفاده از پاسخ بازگشتی به جای پاسخ اصلی. این فیلد تنها زمانی پر می شود که حالت بازگشتی فعال شود و پاسخ بازگشتی برگردانده شود. |
FallbackReason
دلایل استفاده از پاسخ بازگشتی
Enums | |
---|---|
FALLBACK_REASON_UNSPECIFIED | دلیل بازگشتی مشخص نشده است. |
SERVER_ERROR | هنگام محاسبه مسیرها با حالت مسیریابی دلخواه شما، یک خطای سرور رخ داد، اما ما توانستیم نتیجه محاسبهشده با حالت جایگزین را برگردانیم. |
LATENCY_EXCEEDED | ما نتوانستیم محاسبه را با حالت مسیریابی دلخواه شما به موقع به پایان برسانیم، اما توانستیم یک نتیجه محاسبه شده توسط یک حالت جایگزین را برگردانیم. |
حالت FallbackRouting
حالت مسیریابی واقعی برای پاسخ بازگشتی برگشتی استفاده می شود.
Enums | |
---|---|
FALLBACK_ROUTING_MODE_UNSPECIFIED | استفاده نشده است. |
FALLBACK_TRAFFIC_UNAWARE | نشان می دهد که از TRAFFIC_UNAWARE برای محاسبه پاسخ استفاده شده است. |
FALLBACK_TRAFFIC_AWARE | نشان می دهد که TRAFFIC_AWARE برای محاسبه پاسخ استفاده شده است. |
GeocedWaypoint
جزئیات در مورد مکان های مورد استفاده به عنوان ایستگاه های بین راه. فقط برای نقاط راه آدرس پر شده است. شامل جزئیاتی در مورد نتایج کدگذاری جغرافیایی به منظور تعیین اینکه آدرس به چه مکانی کدگذاری شده است.
فیلدها | |
---|---|
geocoder_status | کد وضعیت حاصل از عملیات کدگذاری جغرافیایی را نشان می دهد. |
type[] | نوع (های) نتیجه، به صورت تگ های صفر یا بیشتر. انواع پشتیبانی شده: انواع آدرس و انواع اجزای آدرس . |
partial_match | نشان می دهد که geocoder مطابقت دقیقی با درخواست اصلی برنگردانده است، اگرچه می تواند بخشی از آدرس درخواستی را مطابقت دهد. ممکن است بخواهید درخواست اصلی برای غلط املایی و/یا آدرس ناقص را بررسی کنید. |
place_id | شناسه مکان برای این نتیجه. |
intermediate_waypoint_request_index | شاخص نقطه میانی مربوطه در درخواست. فقط در صورتی پر می شود که نقطه بین راه مربوطه یک ایستگاه بین راهی باشد. |
نتایج جغرافیایی
شامل
برای مبدا، مقصد و ایستگاه های بین راهی. فقط برای نقاط راه آدرس پر شده است. GeocodedWaypoints
فیلدها | |
---|---|
origin | نقطه بین مسیرهای جغرافیایی کدگذاری شده مبدا. |
destination | نقطه گذر جغرافیایی مقصد. |
intermediates[] | فهرستی از نقاط بین راهی با کدهای جغرافیایی میانی که هر کدام حاوی یک فیلد شاخص است که به ترتیبی که در درخواست مشخص شده است، با موقعیت صفر نقطه راه مطابقت دارد. |
LocalizedTime
توصیف موضعی زمان
فیلدها | |
---|---|
time | زمان مشخص شده به عنوان یک رشته در یک منطقه زمانی معین. |
time_zone | شامل منطقه زمانی است. مقدار، نام منطقه زمانی است که در پایگاه داده منطقه زمانی IANA تعریف شده است، به عنوان مثال "America/New_York". |
مکان
یک مکان (نقطه جغرافیایی و عنوان اختیاری) را در بر می گیرد.
فیلدها | |
---|---|
lat_lng | مختصات جغرافیایی نقطه راه. |
heading | عنوان قطب نما با جهت جریان ترافیک مرتبط است. این مقدار سمت جاده را برای وانت و تخلیه مشخص می کند. مقادیر سرفصل می تواند از 0 تا 360 باشد، که در آن 0 عنوان شمال را مشخص می کند، 90 عنوان یک عنوان شرق و غیره را مشخص می کند. شما می توانید از این فیلد فقط برای |
مانور
مجموعهای از مقادیر که عمل ناوبری را برای مرحله فعلی مشخص میکند (مثلاً گردش به چپ، ادغام یا مستقیم).
Enums | |
---|---|
MANEUVER_UNSPECIFIED | استفاده نشده است. |
TURN_SLIGHT_LEFT | کمی به سمت چپ بپیچید. |
TURN_SHARP_LEFT | به شدت به سمت چپ بپیچید. |
UTURN_LEFT | یک چرخش به چپ انجام دهید. |
TURN_LEFT | به چپ بپیچید. |
TURN_SLIGHT_RIGHT | کمی به سمت راست بپیچید. |
TURN_SHARP_RIGHT | به شدت به سمت راست بپیچید. |
UTURN_RIGHT | یک دور به راست بپیچید. |
TURN_RIGHT | به راست بپیچید. |
STRAIGHT | مستقیم برو |
RAMP_LEFT | از سطح شیب دار سمت چپ بروید. |
RAMP_RIGHT | از رمپ سمت راست بروید. |
MERGE | ادغام در ترافیک |
FORK_LEFT | چنگال چپ را بردارید. |
FORK_RIGHT | چنگال مناسب را بردارید. |
FERRY | سوار کشتی شوید. |
FERRY_TRAIN | سوار قطار منتهی به کشتی شوید. |
ROUNDABOUT_LEFT | در دوربرگردان به چپ بپیچید. |
ROUNDABOUT_RIGHT | در دوربرگردان به راست بپیچید. |
DEPART | مانور اولیه |
NAME_CHANGE | برای نشان دادن تغییر نام خیابان استفاده می شود. |
پلی لاین
یک چند خط کدگذاری شده را در بر می گیرد.
فیلدها | |
---|---|
فیلد اتحادیه polyline_type . نوع پلی لاین را کپسوله می کند. پیشفرض encoded_polyline است. polyline_type می تواند تنها یکی از موارد زیر باشد: | |
encoded_polyline | رمزگذاری رشته چند خط با استفاده از الگوریتم کدگذاری چند خطی |
geo_json_linestring | با استفاده از قالب GeoJSON LineString یک چند خط را مشخص می کند. |
جزئیات Polyline
جزئیات مربوط به یک شاخص داده شده یا بخش پیوسته از یک چند خط. با توجه به چند خطی با نقاط P_0، P_1، ...، P_N (شاخص مبتنی بر صفر)، PolylineDetails
یک بازه و ابرداده مرتبط را تعریف می کند.
فیلدها | |
---|---|
flyover_info[] | جزئیات پرواز در امتداد چند خط. |
narrow_road_info[] | جزئیات جاده باریک در امتداد چند خط. |
FlyoverInfo
اطلاعات مربوط به پل هوایی را در امتداد چند خط در خود محصور می کند.
فیلدها | |
---|---|
flyover_presence | فقط خروجی نشان می دهد که آیا یک پل هوایی برای یک کشش معین از چند خط وجود دارد یا خیر. |
polyline_point_index | مکان اطلاعات مربوط به پل هوایی در امتداد چند خط. |
NarrowRoadInfo
اطلاعات مربوط به جاده های باریک در امتداد چند خط را در بر می گیرد.
فیلدها | |
---|---|
narrow_road_presence | فقط خروجی نشان می دهد که آیا یک جاده باریک برای یک کشش معین از چند خط وجود دارد یا خیر. |
polyline_point_index | مکان اطلاعات مربوط به جاده باریک در امتداد چند خط. |
PolylinePointIndex
نمایه های شروع و پایان را برای جزئیات چند خطی در بر می گیرد. برای نمونه هایی که داده ها با یک نقطه منطبق است، start_index
و end_index
برابر خواهند بود.
فیلدها | |
---|---|
start_index | شاخص شروع این جزئیات در چند خط. |
end_index | شاخص انتهایی این جزئیات در چند خط. |
RoadFeatureState
حالت های ویژگی های جاده را در امتداد یک خط چند خطی در بر می گیرد.
Enums | |
---|---|
ROAD_FEATURE_STATE_UNSPECIFIED | وضعیت ویژگی جاده محاسبه نشده است (مقدار پیش فرض). |
EXISTS | ویژگی جاده وجود دارد. |
DOES_NOT_EXIST | ویژگی جاده وجود ندارد. |
PolylineEncoding
نوع ترجیحی چند خطی که باید برگردانده شود را مشخص می کند.
Enums | |
---|---|
POLYLINE_ENCODING_UNSPECIFIED | هیچ نوع اولویت چند خطی مشخص نشده است. پیشفرض ENCODED_POLYLINE است. |
ENCODED_POLYLINE | چند خطی را مشخص می کند که با استفاده از الگوریتم کدگذاری چند خطی کدگذاری شده است. |
GEO_JSON_LINESTRING | با استفاده از قالب GeoJSON LineString یک چند خط را مشخص می کند |
کیفیت پلی لاین
مجموعه ای از مقادیر که کیفیت چند خط را مشخص می کند.
Enums | |
---|---|
POLYLINE_QUALITY_UNSPECIFIED | هیچ اولویت کیفیت چند خطی مشخص نشده است. به طور پیشفرض به OVERVIEW . |
HIGH_QUALITY | یک خط چند خطی با کیفیت بالا را مشخص می کند - که با استفاده از نقاط بیشتری نسبت به OVERVIEW ساخته شده است، به قیمت افزایش اندازه پاسخ. زمانی که به دقت بیشتری نیاز دارید از این مقدار استفاده کنید. |
OVERVIEW | یک چند خط نمای کلی را مشخص می کند - که با استفاده از تعداد کمی از نقاط تشکیل شده است. هنگام نمایش یک نمای کلی از مسیر از این مقدار استفاده کنید. استفاده از این گزینه در مقایسه با استفاده از گزینه HIGH_QUALITY تاخیر درخواست کمتری دارد. |
مسیر
شامل یک مسیر است که شامل یک سری از بخش های جاده متصل است که به ایستگاه های ابتدایی، انتهایی و میانی می پیوندند.
فیلدها | |
---|---|
route_labels[] | برچسبهایی برای |
legs[] | مجموعه ای از پاها (بخش های مسیر بین ایستگاه های بین راه) که مسیر را تشکیل می دهند. هر پا مربوط به سفر بین دو |
distance_meters | مسافت طی مسیر، بر حسب متر. |
duration | مدت زمان لازم برای پیمایش مسیر. اگر |
static_duration | مدت زمان سفر در مسیر بدون در نظر گرفتن شرایط ترافیکی. |
polyline | چند خط کلی مسیر. این چند خط، چند خط ترکیبی همه |
description | شرح مسیر. |
warnings[] | مجموعه ای از هشدارها برای نشان دادن هنگام نمایش مسیر. |
viewport | کادر محدودکننده نما در چند خط. |
travel_advisory | اطلاعات تکمیلی در مورد مسیر. |
optimized_intermediate_waypoint_index[] | اگر |
localized_values | نمایش متنی ویژگی های |
route_token | یک نشانه مات که می تواند به Navigation SDK منتقل شود تا مسیر را در حین ناوبری بازسازی کند و در صورت تغییر مسیر، به هدف اصلی هنگام ایجاد مسیر احترام بگذارد. با این نشانه به عنوان یک لکه مات رفتار کنید. مقدار آن را در بین درخواستها مقایسه نکنید زیرا ممکن است ارزش آن تغییر کند حتی اگر سرویس دقیقاً همان مسیر را برگرداند. توجه: |
polyline_details | حاوی اطلاعاتی درباره جزئیات در امتداد چند خط است. |
RouteLocalizedValues
نمایش متنی از ویژگی های خاص.
فیلدها | |
---|---|
distance | مسافت سفر به صورت متنی نشان داده شده است. |
duration | مدت زمان، به صورت متن نمایش داده شده و به منطقه پرس و جو بومی سازی شده است. شرایط ترافیکی را در نظر می گیرد. توجه: اگر اطلاعات ترافیک را درخواست نکردهاید، این مقدار همان مقدار |
static_duration | مدت زمان بدون در نظر گرفتن شرایط ترافیک، به صورت متن نشان داده شده است. |
transit_fare | کرایه حمل و نقل به صورت متنی نشان داده شده است. |
RouteLabel
برچسبهایی برای
که برای شناسایی ویژگیهای خاص مسیر برای مقایسه با دیگران مفید هستند. Route
Enums | |
---|---|
ROUTE_LABEL_UNSPECIFIED | پیش فرض - استفاده نشده است. |
DEFAULT_ROUTE | مسیر پیشفرض "بهترین" برای محاسبه مسیر برگردانده شد. |
DEFAULT_ROUTE_ALTERNATE | جایگزینی برای مسیر پیشفرض "بهترین" مسیرهایی مانند این زمانی که مشخص شده باشد بازگردانده می شوند. |
FUEL_EFFICIENT | مسیر مصرف سوخت مسیرهایی که با این مقدار برچسب گذاری شده اند برای پارامترهای Eco مانند مصرف سوخت بهینه شده اند. |
SHORTER_DISTANCE | مسافت سفر کوتاه تر. این یک ویژگی آزمایشی است. |
RouteLeg
شامل یک بخش بین ایستگاه های غیر via
.
فیلدها | |
---|---|
distance_meters | مسافت طی مسیر، بر حسب متر. |
duration | مدت زمان لازم برای حرکت در پا. اگر |
static_duration | مدت زمان سفر از طریق پا، بدون در نظر گرفتن شرایط ترافیک محاسبه شده است. |
polyline | چند خط کلی برای این پا که شامل چند خط هر |
start_location | محل شروع این پا. این مکان ممکن است با |
end_location | محل انتهایی این پا. این مکان ممکن است با |
steps[] | مجموعهای از مراحل که بخشهای درون این پا را نشان میدهد. هر مرحله نشان دهنده یک دستورالعمل ناوبری است. |
travel_advisory | حاوی اطلاعات اضافی است که کاربر باید از آنها مطلع شود، مانند محدودیت های احتمالی منطقه ترافیک، در یک مسیر. |
localized_values | نمایش متنی ویژگی های |
steps_overview | اطلاعات کلی در مورد مراحل این |
RouteLegLocalizedValues
نمایش متنی از ویژگی های خاص.
فیلدها | |
---|---|
distance | مسافت سفر به صورت متنی نشان داده شده است. |
duration | مدت زمان، به صورت متن نمایش داده شده و به منطقه پرس و جو بومی سازی شده است. شرایط ترافیکی را در نظر می گیرد. توجه: اگر اطلاعات ترافیک را درخواست نکرده اید، این مقدار همان مقدار static_duration است. |
static_duration | مدت زمان بدون در نظر گرفتن شرایط ترافیک، به صورت متن نشان داده شده است. |
StepsOverview
اطلاعات کلی درباره لیستی از RouteLegStep
را ارائه می دهد.
فیلدها | |
---|---|
multi_modal_segments[] | اطلاعات خلاصه شده در مورد بخش های مختلف چند وجهی |
MultiModalSegment
اطلاعات خلاصه ای را در مورد بخش های مختلف چند وجهی RouteLeg.steps
ارائه می دهد. یک بخش چند وجهی به عنوان یک یا چند RouteLegStep
به هم پیوسته تعریف میشود که RouteTravelMode
یکسان دارند. اگر RouteLeg
شامل بخشهای چند وجهی در مراحل نباشد، این فیلد پر نمیشود.
فیلدها | |
---|---|
navigation_instruction | راهنمای ناوبری برای بخش چند وجهی. |
travel_mode | حالت سفر بخش چند وجهی. |
step_start_index | شاخص |
step_end_index | شاخص |
RouteLegStep
شامل بخشی از
است. یک مرحله مربوط به یک دستورالعمل ناوبری است. پایه های مسیر از پله ها تشکیل شده است. RouteLeg
فیلدها | |
---|---|
distance_meters | مسافت طی این مرحله، بر حسب متر است. در برخی شرایط، این فیلد ممکن است ارزشی نداشته باشد. |
static_duration | مدت زمان سفر در این مرحله بدون در نظر گرفتن شرایط ترافیکی. در برخی شرایط، این فیلد ممکن است ارزشی نداشته باشد. |
polyline | چند خط مرتبط با این مرحله. |
start_location | محل شروع این مرحله. |
end_location | محل پایان این مرحله. |
navigation_instruction | دستورالعمل های ناوبری. |
travel_advisory | حاوی اطلاعات اضافی است که کاربر باید از آنها مطلع شود، مانند محدودیت های احتمالی منطقه ترافیک، در یک گام. |
localized_values | نمایش متنی خصوصیات |
transit_details | جزئیات مربوط به این مرحله اگر حالت سفر |
travel_mode | حالت سفر استفاده شده برای این مرحله. |
RouteLegStepLocalizedValues
نمایش متنی از ویژگی های خاص.
فیلدها | |
---|---|
distance | مسافت سفر به صورت متنی نشان داده شده است. |
static_duration | مدت زمان بدون در نظر گرفتن شرایط ترافیک، به صورت متن نشان داده شده است. |
RouteLegStepTransitDetails
اطلاعات اضافی برای RouteLegStep
مربوط به مسیرهای TRANSIT
.
فیلدها | |
---|---|
stop_details | اطلاعات در مورد ورود و خروج توقف برای مرحله. |
localized_values | نمایش متنی خصوصیات |
headsign | جهت حرکت در این خط را همانطور که روی وسیله نقلیه یا در ایستگاه خروج مشخص شده است مشخص می کند. جهت اغلب ایستگاه پایانه است. |
headway | زمان مورد انتظار را به عنوان مدت زمان بین خروج از همان توقف در این زمان مشخص می کند. به عنوان مثال، با مقدار 600 ثانیه پیشروی، اگر اتوبوس خود را از دست بدهید، انتظار دارید ده دقیقه صبر کنید. |
transit_line | اطلاعات مربوط به خط ترانزیت مورد استفاده در این مرحله. |
stop_count | تعداد توقف ها از مبدأ تا توقف ورود. این شمارش شامل توقف ورود است، اما توقف خروج را شامل نمی شود. به عنوان مثال، اگر مسیر شما از ایستگاه A حرکت کند، از ایستگاه های B و C عبور کند و به ایستگاه D برسد، برمی گرداند 3. |
trip_short_text | متنی که در جدول ها و تابلوهای علامت برای شناسایی یک سفر ترانزیت به مسافران ظاهر می شود. متن باید به طور منحصر به فرد یک سفر در یک روز خدمات را مشخص کند. به عنوان مثال، "538" |
TransitDetailsLocalizedValues
توضیحات محلی مقادیر برای RouteTransitDetails
.
فیلدها | |
---|---|
arrival_time | زمان در نمایش متن قالب بندی شده با منطقه زمانی مربوطه. |
departure_time | زمان در نمایش متن قالب بندی شده با منطقه زمانی مربوطه. |
TransitStopDetails
جزئیات در مورد توقف های حمل و نقل برای RouteLegStep
.
فیلدها | |
---|---|
arrival_stop | اطلاعات در مورد توقف رسیدن برای مرحله. |
arrival_time | زمان تخمینی رسیدن به مرحله. |
departure_stop | اطلاعات در مورد توقف حرکت برای پله. |
departure_time | زمان تخمینی حرکت برای مرحله. |
RouteLegStepTravelAdvisory
حاوی اطلاعات اضافی است که کاربر باید از آنها مطلع شود، مانند محدودیت های احتمالی منطقه ترافیکی در یک گام پا.
فیلدها | |
---|---|
speed_reading_intervals[] | توجه: این فیلد در حال حاضر پر نشده است. |
RouteLegTravelAdvisory
حاوی اطلاعات اضافی است که کاربر باید در یک پله از آنها مطلع شود، مانند محدودیت های احتمالی منطقه ترافیک.
فیلدها | |
---|---|
toll_info | حاوی اطلاعاتی درباره عوارض در |
speed_reading_intervals[] | فواصل تندخوانی با جزئیات تراکم ترافیک. قابل اجرا در موارد ترجیحات مسیریابی مثال:
|
RouteMatrixDestination
یک مقصد واحد برای ComputeRouteMatrixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. ایستگاه بین راهی مقصد |
RouteMatrixElement
حاوی اطلاعات مسیر محاسبه شده برای یک جفت مبدا/مقصد در ComputeRouteMatrix API است. این پروتو را می توان برای مشتری پخش کرد.
فیلدها | |
---|---|
status | کد وضعیت خطا برای این عنصر. |
condition | نشان می دهد که آیا مسیر پیدا شده است یا خیر. مستقل از وضعیت |
distance_meters | مسافت طی مسیر، بر حسب متر. |
duration | مدت زمان لازم برای حرکت در مسیر. اگر |
static_duration | مدت زمان سفر از طریق مسیر بدون توجه به شرایط ترافیکی. |
travel_advisory | اطلاعات اضافی در مورد مسیر. به عنوان مثال: اطلاعات محدودیت و اطلاعات عوارض |
fallback_info | در بعضی موارد که سرور قادر به محاسبه مسیر با ترجیحات داده شده برای این جفت خاص/مقصد نیست ، ممکن است با استفاده از یک حالت محاسبات متفاوت بازگردد. هنگامی که از حالت Fallback استفاده می شود ، این قسمت حاوی اطلاعات دقیق در مورد پاسخ برگشتی است. در غیر این صورت این زمینه غیرقانونی است. |
localized_values | بازنمایی متن از خواص |
origin_index | شاخص صفر مبتنی بر مبدا در درخواست. |
destination_index | شاخص صفر مبتنی بر مقصد در درخواست. |
مقادیر موضعی
بازنمایی متن از خصوصیات خاص.
فیلدها | |
---|---|
distance | فاصله سفر به شکل متن نشان داده شده است. |
duration | مدت زمان ارائه شده در فرم متن ، شرایط ترافیکی را در نظر گرفته است. توجه: در صورت درخواست اطلاعات ترافیک ، این مقدار همان مقدار Static_duration است. |
static_duration | مدت زمان ارائه شده در فرم متن بدون توجه به شرایط ترافیکی. |
transit_fare | کرایه ترانزیت به شکل متن نشان داده شده است. |
مسیریابی
وضعیت مسیر بازگشت.
Enums | |
---|---|
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED | فقط در شرایطی که status عنصر خوب نیست استفاده می شود. |
ROUTE_EXISTS | مسیری پیدا شد و اطلاعات مربوطه برای این عنصر پر شد. |
ROUTE_NOT_FOUND | هیچ مسیری یافت نمی شود. زمینه های حاوی اطلاعات مسیر ، مانند distance_meters یا duration ، در این عنصر پر نمی شوند. |
روترمیکسورژین
یک منشأ واحد برای computeTemateMatrixRixRixRixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. نقطه راه اصلی |
route_modifiers | اختیاری. اصلاح کننده برای هر مسیری که این موضوع را به عنوان مبدا طی می کند |
رویه سازان
مجموعه ای از شرایط اختیاری را برای برآورده کردن هنگام محاسبه مسیرها محاصره می کند.
فیلدها | |
---|---|
avoid_tolls | هنگامی که به درستی تنظیم شده اید ، از جاده های عوارض که در آن معقول است ، جلوگیری می کند و ترجیح می دهد مسیرهایی که حاوی جاده های عوارض نیستند. فقط در مورد |
avoid_highways | هنگامی که روی درست تنظیم شده است ، از بزرگراه ها در صورت معقول جلوگیری می کند و ترجیح می دهد مسیرهایی که حاوی بزرگراه ها نیستند. فقط در مورد |
avoid_ferries | هنگامی که به درستی تنظیم شده اید ، از کشتی هایی که در آن معقول است ، جلوگیری می کند و ترجیح می دهد مسیرهایی که حاوی کشتی نیستند. فقط در مورد |
avoid_indoor | هنگامی که به درستی تنظیم شده اید ، از پیمایش در داخل خانه ها در جایی که معقول است ، جلوگیری می کند و ترجیح می دهد مسیرهایی که حاوی ناوبری داخلی نیستند. فقط در |
vehicle_info | اطلاعات وسیله نقلیه را مشخص می کند. |
toll_passes[] | اطلاعات مربوط به گذرگاه های عوارض را محاصره می کند. در صورت ارائه عوارض ، API سعی می کند قیمت پاس را بازگرداند. در صورت عدم ارائه عوارض ، API با عبور عوارض به عنوان ناشناخته رفتار می کند و سعی می کند قیمت نقدی را برگرداند. فقط در مورد |
مربوط به مسیریابی
حاوی اطلاعات اضافی است که کاربر باید از آن مطلع شود ، مانند محدودیت های ممکن در منطقه ترافیک.
فیلدها | |
---|---|
toll_info | حاوی اطلاعاتی در مورد عوارض در مسیر است. این زمینه فقط در صورتی که انتظار می رود در مسیر باشد ، جمع می شود. اگر این قسمت تنظیم شده باشد ، اما زیرزمین |
speed_reading_intervals[] | فواصل خواندن سرعت در مورد تراکم ترافیک. در صورت استفاده از مثال:
|
fuel_consumption_microliters | پیش بینی مصرف سوخت در میکرولیترها. |
route_restrictions_partially_ignored | مسیر برگشت یافته ممکن است محدودیت هایی داشته باشد که برای حالت سفر درخواست شده یا اصلاح کننده مسیر مناسب نباشد. |
transit_fare | در صورت وجود ، شامل کل کرایه یا هزینه بلیط در این مسیر است ، این ملک فقط برای درخواست های |
روش
مجموعه ای از مقادیر استفاده شده برای مشخص کردن حالت سفر. توجه: مسیرهای WALK
، BICYCLE
و TWO_WHEELER
در بتا قرار دارند و ممکن است گاهی اوقات پیاده روهای شفاف ، مسیرهای عابر پیاده یا مسیرهای دوچرخه سواری را از دست ندهند. شما باید این هشدار را برای همه مسیرهای پیاده روی ، دوچرخه سواری و دو چرخ که در برنامه خود نشان می دهید ، به کاربر نمایش دهید.
Enums | |
---|---|
TRAVEL_MODE_UNSPECIFIED | هیچ حالت سفر مشخص نشده است. پیش فرض برای DRIVE . |
DRIVE | سفر با ماشین مسافر. |
BICYCLE | سفر با دوچرخه. |
WALK | سفر با راه رفتن |
TWO_WHEELER | وسیله نقلیه دو چرخ و موتوری. به عنوان مثال ، موتور سیکلت. توجه داشته باشید که این متفاوت از حالت سفر BICYCLE است که حالت قدرت انسان را در بر می گیرد. |
TRANSIT | سفر توسط مسیرهای حمل و نقل عمومی ، در صورت وجود. |
پیشروی مسیریابی
مجموعه ای از مقادیر که عوامل را در هنگام محاسبه مسیر مورد توجه قرار می دهد.
Enums | |
---|---|
ROUTING_PREFERENCE_UNSPECIFIED | هیچ اولویت مسیریابی مشخص نشده است. پیش فرض به TRAFFIC_UNAWARE . |
TRAFFIC_UNAWARE | مسیرها را بدون توجه به شرایط ترافیک زنده محاسبه می کند. مناسب وقتی شرایط ترافیک اهمیتی ندارد یا کاربردی نیست. استفاده از این مقدار کمترین تأخیر را ایجاد می کند. توجه: برای DRIVE و TWO_WHEELER ، مسیر و مدت زمان انتخاب شده بر اساس شبکه جاده ای و میانگین شرایط ترافیک مستقل از زمان است ، نه شرایط فعلی جاده. در نتیجه ، مسیرها ممکن است شامل جاده هایی باشد که به طور موقت بسته شده اند. نتایج برای یک درخواست معین ممکن است به دلیل تغییر در شبکه جاده ، میانگین شرایط ترافیک به روز شده و ماهیت توزیع شده سرویس ، با گذشت زمان متفاوت باشد. نتایج همچنین ممکن است در هر زمان یا فرکانس بین مسیرهای تقریباً معادل متغیر باشد. |
TRAFFIC_AWARE | مسیرهایی را که شرایط ترافیک زنده را در نظر می گیرد محاسبه می کند. بر خلاف TRAFFIC_AWARE_OPTIMAL ، برخی از بهینه سازی ها برای کاهش قابل توجهی در تأخیر اعمال می شود. |
TRAFFIC_AWARE_OPTIMAL | مسیرهایی را که شرایط ترافیک زنده را در نظر گرفته می شود ، بدون استفاده از بیشتر بهینه سازی های عملکرد محاسبه می کند. استفاده از این مقدار بالاترین تأخیر را ایجاد می کند. |
سرعت خواندن
نشانگر چگالی ترافیک در یک بخش متناوب از یک پلی خط یا مسیر. با توجه به مسیری با امتیاز P_0 ، P_1 ، ... ، P_N (شاخص مبتنی بر صفر) ، SpeedReadingInterval
یک فاصله را تعریف می کند و ترافیک آن را با استفاده از دسته های زیر توصیف می کند.
فیلدها | |
---|---|
start_polyline_point_index | شاخص شروع این بازه در پلی خط. |
end_polyline_point_index | شاخص پایان این بازه در پلی خط. |
Union Field | |
speed | سرعت ترافیک در این بازه. |
سرعت
طبقه بندی سرعت پلیین بر اساس داده های ترافیکی.
Enums | |
---|---|
SPEED_UNSPECIFIED | مقدار پیش فرض این مقدار استفاده نشده است. |
NORMAL | سرعت عادی ، بدون تاخیر در ترافیک. |
SLOW | کاهش سرعت ، مقدار متوسط ترافیک. |
TRAFFIC_JAM | تأخیر در ترافیک |
کول
اطلاعات عوارض را در یک
یا در یک Route
محاصره می کند. RouteLeg
فیلدها | |
---|---|
estimated_price[] | مبلغ پولی عوارض برای |
عوارض
لیست عوارض در سراسر جهان که ما از آنها پشتیبانی می کنیم.
Enums | |
---|---|
TOLL_PASS_UNSPECIFIED | استفاده نشده است. اگر از این مقدار استفاده شود ، درخواست از بین می رود. |
AU_ETOLL_TAG | عوارض سیدنی. جزئیات اضافی را در https://www.myetoll.com.au مشاهده کنید. |
AU_EWAY_TAG | عوارض سیدنی. جزئیات اضافی را در https://www.tollpay.com.au مشاهده کنید. |
AU_LINKT | عوارض گسترده استرالیا. جزئیات اضافی را در https://www.linkt.com.au/ مشاهده کنید. |
AR_TELEPASE | عوارض آرژانتین. جزئیات اضافی را در https://telepase.com.ar مشاهده کنید |
BR_AUTO_EXPRESO | عوارض برزیل. جزئیات اضافی را در https://www.autoexpreso.com مشاهده کنید |
BR_CONECTCAR | عوارض برزیل. جزئیات اضافی را در https://conectcar.com مشاهده کنید. |
BR_MOVE_MAIS | عوارض برزیل. جزئیات اضافی را در https://movemais.com مشاهده کنید. |
BR_PASSA_RAPIDO | عوارض برزیل. جزئیات اضافی را در https://pasorapido.gob.do/ مشاهده کنید |
BR_SEM_PARAR | عوارض برزیل. جزئیات اضافی را در https://www.semparar.com.br مشاهده کنید. |
BR_TAGGY | عوارض برزیل. جزئیات اضافی را در https://taggy.com.br مشاهده کنید. |
BR_VELOE | عوارض برزیل. جزئیات اضافی را در https://veloe.com.br/site/onde-usar مشاهده کنید. |
CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD | گذرگاه مرزی کانادا به ایالات متحده. |
CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD | گذرگاه مرزی کانادا به ایالات متحده. |
CA_US_BLUE_WATER_EDGE_PASS | انتاریو ، کانادا به میشیگان ، گذرگاه مرزی ایالات متحده. |
CA_US_CONNEXION | انتاریو ، کانادا به میشیگان ، گذرگاه مرزی ایالات متحده. |
CA_US_NEXUS_CARD | گذرگاه مرزی کانادا به ایالات متحده. |
ID_E_TOLL | اندونزی. کارت الکترونیکی تهیه شده توسط چندین بانک که قبلاً هزینه های عوارض را پرداخت می کردند. تمام کارتهای الکترونیکی از طریق بانک ها یکسان هستند ، بنابراین فقط یک ارزش enum لازم است. به عنوان مثال - Mandiri Bank https://www.bankmandiri.co.id/e-money - bca https://www.bca.co.id/flazz - bni https://www.bni.co.id/id/id/ebanking/tapcash/tapcash |
IN_FASTAG | هند. |
IN_LOCAL_HP_PLATE_EXEMPT | هند ، معافیت صفحه دولتی HP. |
JP_ETC | ژاپن و غیره سیستم بی سیم الکترونیکی برای جمع آوری عوارض. https://www.go-etc.jp/ |
JP_ETC2 | ژاپن etc2.0. نسخه جدید و غیره با تخفیف بیشتر و ارتباطات دو طرفه بین دستگاه های موجود در وسایل نقلیه و آنتن در جاده. https://www.go-etc.jp/etc2/index.html |
MX_IAVE | عوارض مکزیک. https://iave.capufe.gob.mx/#/ |
MX_PASE | مکزیک https://www.pase.com.mx |
MX_QUICKPASS | مکزیک https://operadoravial.com/quick-pass/ |
MX_SISTEMA_TELEPEAJE_CHIHUAHUA | http://appsh.chihuahua.gob.mx/transparencia/؟doc=/ingresos/telepeajeformato4.pdf |
MX_TAG_IAVE | مکزیک |
MX_TAG_TELEVIA | شرکت عوارض مکزیک. یکی از بسیاری از فعالیت های مکزیکو سیتی. جزئیات اضافی را در https://www.televia.com.mx مشاهده کنید. |
MX_TELEVIA | شرکت عوارض مکزیک. یکی از بسیاری از فعالیت های مکزیکو سیتی. https://www.televia.com.mx |
MX_VIAPASS | عوارض مکزیک. جزئیات اضافی را در https://www.viapass.com.mx/viapass/web_home.aspx مشاهده کنید. |
US_AL_FREEDOM_PASS | آل ، ایالات متحده |
US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS | AK ، ایالات متحده |
US_CA_FASTRAK | کالیفرنیا ، ایالات متحده |
US_CA_FASTRAK_CAV_STICKER | نشان می دهد که راننده علاوه بر برچسب DMV صادر شده با هوای تمیز (CAV) دارای هر پاس Fastrak است. https://www.bayareafastrak.org/en/guide/doineedflex.shtml |
US_CO_EXPRESSTOLL | شرکت ، ایالات متحده |
US_CO_GO_PASS | شرکت ، ایالات متحده |
US_DE_EZPASSDE | د ، ایالات متحده |
US_FL_BOB_SIKES_TOLL_BRIDGE_PASS | FL ، ایالات متحده |
US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD | FL ، ایالات متحده |
US_FL_EPASS | FL ، ایالات متحده |
US_FL_GIBA_TOLL_PASS | FL ، ایالات متحده |
US_FL_LEEWAY | FL ، ایالات متحده |
US_FL_SUNPASS | FL ، ایالات متحده |
US_FL_SUNPASS_PRO | FL ، ایالات متحده |
US_IL_EZPASSIL | IL، ایالات متحده آمریکا |
US_IL_IPASS | IL، ایالات متحده آمریکا |
US_IN_EZPASSIN | در ایالات متحده آمریکا |
US_KS_BESTPASS_HORIZON | KS ، ایالات متحده. |
US_KS_KTAG | KS ، ایالات متحده. |
US_KS_NATIONALPASS | KS ، ایالات متحده. |
US_KS_PREPASS_ELITEPASS | KS ، ایالات متحده. |
US_KY_RIVERLINK | کی ، ایالات متحده |
US_LA_GEAUXPASS | LA ، ایالات متحده |
US_LA_TOLL_TAG | LA ، ایالات متحده |
US_MA_EZPASSMA | کارشناسی ارشد ، ایالات متحده |
US_MD_EZPASSMD | دکتر ، ایالات متحده. |
US_ME_EZPASSME | من ، ایالات متحده |
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD | MI ، ایالات متحده |
US_MI_BCPASS | MI ، ایالات متحده |
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG | MI ، ایالات متحده |
US_MI_IQ_PROX_CARD | MI ، ایالات متحده از آنجا که این نوع پاس دیگر وجود ندارد ، مستهلک می شود. |
US_MI_IQ_TAG | MI ، ایالات متحده |
US_MI_MACKINAC_BRIDGE_MAC_PASS | MI ، ایالات متحده |
US_MI_NEXPRESS_TOLL | MI ، ایالات متحده |
US_MN_EZPASSMN | MN ، ایالات متحده. |
US_NC_EZPASSNC | NC ، ایالات متحده. |
US_NC_PEACH_PASS | NC ، ایالات متحده. |
US_NC_QUICK_PASS | NC ، ایالات متحده. |
US_NH_EZPASSNH | NH ، ایالات متحده. |
US_NJ_DOWNBEACH_EXPRESS_PASS | NJ ، ایالات متحده. |
US_NJ_EZPASSNJ | NJ ، ایالات متحده. |
US_NY_EXPRESSPASS | نیویورک ، ایالات متحده. |
US_NY_EZPASSNY | نیویورک ، ایالات متحده. |
US_OH_EZPASSOH | اوه ، ایالات متحده |
US_PA_EZPASSPA | PA ، ایالات متحده |
US_RI_EZPASSRI | ری ، ایالات متحده |
US_SC_PALPASS | SC ، ایالات متحده. |
US_TX_AVI_TAG | TX ، ایالات متحده. |
US_TX_BANCPASS | TX ، ایالات متحده. |
US_TX_DEL_RIO_PASS | TX ، ایالات متحده. |
US_TX_EFAST_PASS | TX ، ایالات متحده. |
US_TX_EAGLE_PASS_EXPRESS_CARD | TX ، ایالات متحده. |
US_TX_EPTOLL | TX ، ایالات متحده. |
US_TX_EZ_CROSS | TX ، ایالات متحده. |
US_TX_EZTAG | TX ، ایالات متحده. |
US_TX_FUEGO_TAG | TX ، ایالات متحده. |
US_TX_LAREDO_TRADE_TAG | TX ، ایالات متحده. |
US_TX_PLUSPASS | TX ، ایالات متحده. |
US_TX_TOLLTAG | TX ، ایالات متحده. |
US_TX_TXTAG | TX ، ایالات متحده. |
US_TX_XPRESS_CARD | TX ، ایالات متحده. |
US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD | UT ، ایالات متحده |
US_VA_EZPASSVA | VA ، ایالات متحده |
US_WA_BREEZEBY | WA ، ایالات متحده |
US_WA_GOOD_TO_GO | WA ، ایالات متحده |
US_WV_EZPASSWV | WV ، ایالات متحده. |
US_WV_MEMORIAL_BRIDGE_TICKETS | WV ، ایالات متحده. |
US_WV_MOV_PASS | WV ، ایالات متحده |
US_WV_NEWELL_TOLL_BRIDGE_TICKET | WV ، ایالات متحده. |
حالت ترافیک
فرضیات استفاده شده در هنگام محاسبه زمان در ترافیک را مشخص می کند. این تنظیم بر مقدار برگشتی در زمینه duration
در پاسخ ، که شامل زمان پیش بینی شده در ترافیک بر اساس میانگین های تاریخی است ، تأثیر می گذارد.
Enums | |
---|---|
TRAFFIC_MODEL_UNSPECIFIED | استفاده نشده در صورت مشخص شدن ، به طور پیش فرض به BEST_GUESS خواهد بود. |
BEST_GUESS | نشان می دهد که duration برگشتی با توجه به آنچه در مورد شرایط ترافیک تاریخی و ترافیک زنده شناخته شده است ، باید بهترین تخمین زمان سفر باشد. ترافیک زنده اهمیت بیشتری پیدا می کند و زمان departure_time اکنون نزدیکتر است. |
PESSIMISTIC | نشان می دهد که مدت زمان برگشتی باید در بیشتر روزها طولانی تر از زمان واقعی سفر باشد ، اگرچه ممکن است روزهای گاه به گاه با شرایط ترافیکی به ویژه بد از این مقدار فراتر رود. |
OPTIMISTIC | نشان می دهد که مدت زمان برگشتی باید در بیشتر روزها کوتاهتر از زمان واقعی سفر باشد ، اگرچه ممکن است روزهای گاه به گاه با شرایط خاص ترافیک سریعتر از این ارزش باشد. |
ترانسیت
یک آژانس حمل و نقل که یک خط ترانزیت را اداره می کند.
فیلدها | |
---|---|
name | نام این آژانس ترانزیت. |
phone_number | شماره تلفن با فرمت اختصاصی آژانس ترانزیت. |
uri | URI آژانس ترانزیت. |
خط حمل و نقل
حاوی اطلاعاتی در مورد خط ترانزیت مورد استفاده در این مرحله است.
فیلدها | |
---|---|
agencies[] | آژانس ترانزیت (یا آژانس ها) که این خط ترانزیت را اداره می کند. |
name | به عنوان مثال ، نام کامل این خط ترانزیت ، "8 خیابان محلی". |
uri | URI برای این خط ترانزیت همانطور که توسط آژانس ترانزیت ارائه شده است. |
color | رنگی که معمولاً در این علائم در علائم استفاده می شود. در hexadecimal نماینده است. |
icon_uri | URI برای نماد مرتبط با این خط. |
name_short | نام کوتاه این خط ترانزیت. این نام معمولاً یک شماره خط مانند "M7" یا "355" خواهد بود. |
text_color | رنگی که معمولاً در متن روی علائم برای این خط استفاده می شود. در hexadecimal نماینده است. |
vehicle | نوع وسیله نقلیه ای که در این خط ترانزیت کار می کند. |
ترانزیت
ترجیحات مربوط به مسیرهای مبتنی بر TRANSIT
که بر مسیری که بازگردانده می شود تأثیر می گذارد.
فیلدها | |
---|---|
allowed_travel_modes[] | مجموعه ای از حالت های مسافرتی برای استفاده در هنگام دریافت مسیر |
routing_preference | اولویت مسیریابی که ، در صورت مشخص شدن ، بر مسیر |
پیش نمایش
ترجیحات مسیریابی را برای مسیرهای ترانزیت مشخص می کند.
Enums | |
---|---|
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED | هیچ ترجیحی مشخص نشده است. |
LESS_WALKING | نشان می دهد که مسیر محاسبه شده باید مقادیر محدود پیاده روی را ترجیح دهد. |
FEWER_TRANSFERS | نشان می دهد که مسیر محاسبه شده باید تعداد محدودی از نقل و انتقالات را ترجیح دهد. |
حالت حمل و نقل
مجموعه ای از مقادیر مورد استفاده برای مشخص کردن حالت ترانزیت.
Enums | |
---|---|
TRANSIT_TRAVEL_MODE_UNSPECIFIED | هیچ حالت سفر ترانزیت مشخص نشده است. |
BUS | با اتوبوس سفر کنید. |
SUBWAY | سفر با مترو. |
TRAIN | سفر با قطار. |
LIGHT_RAIL | سفر با راه آهن سبک یا تراموا. |
RAIL | سفر با راه آهن. این معادل ترکیبی از SUBWAY ، TRAIN و LIGHT_RAIL است. |
ایستگاه حمل و نقل
اطلاعات مربوط به توقف حمل و نقل.
فیلدها | |
---|---|
name | نام ترانزیت توقف. |
location | محل توقف بیان شده در مختصات عرض جغرافیایی/طول جغرافیایی. |
حمل و نقل
اطلاعات مربوط به وسیله نقلیه مورد استفاده در مسیرهای ترانزیت.
فیلدها | |
---|---|
name | نام این وسیله نقلیه ، سرمایه گذاری شده است. |
type | نوع وسیله نقلیه مورد استفاده |
icon_uri | URI برای یک نماد مرتبط با این نوع وسیله نقلیه. |
local_icon_uri | URI برای نماد مرتبط با این نوع وسیله نقلیه ، بر اساس علائم حمل و نقل محلی. |
نوع حمل و نقل
نوع وسایل نقلیه برای مسیرهای حمل و نقل.
Enums | |
---|---|
TRANSIT_VEHICLE_TYPE_UNSPECIFIED | استفاده نشده |
BUS | اتوبوس |
CABLE_CAR | وسیله نقلیه ای که معمولاً روی کابل کار می کند ، معمولاً روی زمین. کابل های هوایی ممکن است از نوع GONDOLA_LIFT باشد. |
COMMUTER_TRAIN | راه آهن شهری. |
FERRY | فری |
FUNICULAR | وسیله نقلیه ای که توسط یک کابل شیب شیب دار کشیده می شود. یک قارچ به طور معمول از دو اتومبیل تشکیل شده است که هر ماشین به عنوان ضد وزن برای دیگری عمل می کند. |
GONDOLA_LIFT | یک کابل هوایی. |
HEAVY_RAIL | ریل سنگین |
HIGH_SPEED_TRAIN | قطار پر سرعت. |
INTERCITY_BUS | اتوبوس بین شهری. |
LONG_DISTANCE_TRAIN | قطار از راه دور. |
METRO_RAIL | ترانزیت راه آهن سبک. |
MONORAIL | مونوریل |
OTHER | همه وسایل نقلیه دیگر. |
RAIL | راه آهن. |
SHARE_TAXI | Taxi Share نوعی اتوبوس است که توانایی رها کردن و انتخاب مسافر در هر نقطه از مسیر خود را دارد. |
SUBWAY | راه آهن سبک زیرزمینی. |
TRAM | بالاتر از راه آهن سبک زمین. |
TROLLEYBUS | چرخ دستی. |
واحدها
مجموعه ای از مقادیر که واحد اندازه گیری مورد استفاده در صفحه را مشخص می کند.
Enums | |
---|---|
UNITS_UNSPECIFIED | واحدهای اندازه گیری مشخص نشده است. پیش فرض به واحد اندازه گیری استنباط شده از درخواست. |
METRIC | واحدهای متریک اندازه گیری. |
IMPERIAL | واحدهای اندازه گیری امپریال (انگلیسی). |
وسیله نقلیه
مجموعه ای از مقادیر توصیف نوع انتشار وسیله نقلیه. فقط مربوط به DRIVE
است. RouteTravelMode
Enums | |
---|---|
VEHICLE_EMISSION_TYPE_UNSPECIFIED | هیچ نوع انتشار مشخص نشده است. پیش فرض GASOLINE . |
GASOLINE | وسیله نقلیه بنزین/بنزین سوخت. |
ELECTRIC | وسیله نقلیه برق. |
HYBRID | سوخت ترکیبی (مانند بنزین + برقی). |
DIESEL | وسیله نقلیه سوخت دیزل. |
وسیله نقلیه
حاوی اطلاعات وسیله نقلیه مانند نوع انتشار وسیله نقلیه است.
فیلدها | |
---|---|
emission_type | نوع انتشار وسیله نقلیه را توصیف می کند. فقط مربوط به |
نقطه راه
یک نقطه راه را محاصره می کند. ایستگاه های راه شروع و پایان یک مسیر را نشان می دهند و شامل توقف های میانی در طول مسیر هستند.
فیلدها | |
---|---|
via | این نقطه را به عنوان یک نقطه عطف و نه یک نقطه توقف نشان می دهد. برای هر یک از ایستگاه های غیر VIA در درخواست ، پاسخ ورود به آرایه |
vehicle_stopover | نشان می دهد که ایستگاه راه برای متوقف کردن وسایل نقلیه در آن قرار دارد ، جایی که قصد وانت یا کشویی است. هنگامی که این مقدار را تعیین می کنید ، مسیر محاسبه شده شامل غیر |
side_of_road | نشان می دهد که مکان این نقطه راه به معنای اولویت برای متوقف کردن وسیله نقلیه در یک طرف خاص از جاده است. هنگامی که این مقدار را تعیین کردید ، مسیر از محل عبور می کند تا وسیله نقلیه بتواند در کنار جاده متوقف شود که مکان از مرکز جاده مغرضانه باشد. این گزینه فقط برای |
Union Field location_type . روش های مختلف برای نشان دادن یک مکان. location_type فقط می تواند یکی از موارد زیر باشد: | |
location | نکته ای که با استفاده از مختصات جغرافیایی ، از جمله عنوان اختیاری مشخص شده است. |
place_id | شناسه Poi Place در ارتباط با نقطه راه. |
address | آدرس قابل خواندن انسان یا یک کد به علاوه. برای جزئیات بیشتر به https://plus.codes مراجعه کنید. |
شاخص
-
Routes
(رابط) -
ComputeRouteMatrixRequest
(پیام) -
ComputeRouteMatrixRequest.ExtraComputation
(enum) -
ComputeRoutesRequest
(پیام) -
ComputeRoutesRequest.ExtraComputation
(enum) -
ComputeRoutesRequest.ReferenceRoute
(enum) -
ComputeRoutesResponse
(پیام) -
FallbackInfo
(پیام) -
FallbackReason
(enum) -
FallbackRoutingMode
(enum) -
GeocodedWaypoint
(پیام) -
GeocodingResults
(پیام) -
LocalizedTime
(پیام) -
Location
(پیام) -
Maneuver
(enum) -
NavigationInstruction
(پیام) -
Polyline
(پیام) -
PolylineDetails
(پیام) -
PolylineDetails.FlyoverInfo
(پیام) -
PolylineDetails.NarrowRoadInfo
(پیام) -
PolylineDetails.PolylinePointIndex
(پیام) -
PolylineDetails.RoadFeatureState
(enum) -
PolylineEncoding
(enum) -
PolylineQuality
(enum) -
Route
(پیام) -
Route.RouteLocalizedValues
(پیام) -
RouteLabel
(enum) -
RouteLeg
(پیام) -
RouteLeg.RouteLegLocalizedValues
(پیام) -
RouteLeg.StepsOverview
(پیام) -
RouteLeg.StepsOverview.MultiModalSegment
(پیام) -
RouteLegStep
(پیام) -
RouteLegStep.RouteLegStepLocalizedValues
(پیام) -
RouteLegStepTransitDetails
(پیام) -
RouteLegStepTransitDetails.TransitDetailsLocalizedValues
(پیام) -
RouteLegStepTransitDetails.TransitStopDetails
(پیام) -
RouteLegStepTravelAdvisory
(پیام) -
RouteLegTravelAdvisory
(پیام) -
RouteMatrixDestination
(پیام) -
RouteMatrixElement
(پیام) -
RouteMatrixElement.LocalizedValues
(پیام) -
RouteMatrixElementCondition
(enum) -
RouteMatrixOrigin
(پیام) -
RouteModifiers
(پیام) -
RouteTravelAdvisory
(پیام) -
RouteTravelMode
(enum) -
RoutingPreference
(enum) -
SpeedReadingInterval
(پیام) -
SpeedReadingInterval.Speed
(enum) -
TollInfo
(پیام) -
TollPass
(enum) -
TrafficModel
(enum) -
TransitAgency
(پیام) -
TransitLine
(پیام) -
TransitPreferences
(پیام) -
TransitPreferences.TransitRoutingPreference
(enum) -
TransitPreferences.TransitTravelMode
(enum) -
TransitStop
(پیام) -
TransitVehicle
(پیام) -
TransitVehicle.TransitVehicleType
(enum) -
Units
(enum) -
VehicleEmissionType
(enum) -
VehicleInfo
(پیام) -
Waypoint
(پیام)
مسیرها
مسیرها API.
کامپیوتر اداری |
---|
لیستی از ریشه ها و مقصد ها را می گیرد و جریانی را که حاوی اطلاعات مسیر برای هر ترکیبی از مبدا و مقصد است ، برمی گرداند. توجه: این روش مستلزم آن است که ماسک زمینه پاسخ را در ورودی مشخص کنید. می توانید با استفاده از پارامتر URL به عنوان مثال ، در این روش:
بسیار مهم است که شما
|
کامپیوتر |
---|
با توجه به مجموعه ای از ایستگاه های راه ترمینال و میانی ، مسیر اصلی را به همراه مسیرهای متناوب اختیاری برمی گرداند. توجه: این روش مستلزم آن است که ماسک زمینه پاسخ را در ورودی مشخص کنید. می توانید با استفاده از پارامتر url به عنوان مثال ، در این روش:
Google از استفاده از ماسک زمینه پاسخ Wildcard (
|
combandoutematematrixrequest
پیام درخواست computeratematrix
فیلدها | |
---|---|
origins[] | مورد نیاز. آرایه ای از ریشه ها ، که ردیف های ماتریس پاسخ را تعیین می کند. محدودیت های مختلف در مورد کاردینال بودن ریشه ها و مقصد ها اعمال می شود:
|
destinations[] | مورد نیاز. مجموعه مقصد ، که ستون های ماتریس پاسخ را تعیین می کند. |
travel_mode | اختیاری. نحوه حمل و نقل را مشخص می کند. |
routing_preference | اختیاری. نحوه محاسبه مسیر را مشخص می کند. سرور سعی در استفاده از اولویت مسیریابی انتخاب شده برای محاسبه مسیر دارد. اگر ترجیح مسیریابی منجر به خطا یا تأخیر طولانی شود ، خطایی بازگردانده می شود. شما می توانید این گزینه را فقط هنگامی که |
departure_time | اختیاری. زمان عزیمت اگر این مقدار را تنظیم نکردید ، این مقدار به زمانی که درخواست را انجام داده اید پیش فرض می شود. توجه: هنگامی که |
arrival_time | اختیاری. زمان ورود توجه: فقط در صورت تنظیم |
language_code | اختیاری. کد زبان BCP-47 ، مانند "en-us" یا "sr-latn". برای اطلاعات بیشتر ، به شناسه محلی Unicode مراجعه کنید. پشتیبانی از زبان را برای لیست زبانهای پشتیبانی شده مشاهده کنید. وقتی این مقدار را ارائه نمی دهید ، زبان نمایش از محل اولین منشاء استنباط می شود. |
region_code | اختیاری. کد منطقه ، به عنوان یک مقدار CCTLD ("دامنه سطح بالا") مقدار دو شخصیت مشخص شده است. برای اطلاعات بیشتر به دامنه های سطح بالای کد کشور مراجعه کنید. |
units | اختیاری. واحدهای اندازه گیری را برای قسمتهای نمایشگر مشخص می کند. |
extra_computations[] | اختیاری. لیستی از محاسبات اضافی که ممکن است برای تکمیل درخواست استفاده شود. توجه: این محاسبات اضافی ممکن است زمینه های اضافی را در پاسخ بازگرداند. این زمینه های اضافی نیز باید در ماسک میدانی مشخص شود که در پاسخ برگردانده شود. |
traffic_model | اختیاری. فرضیات استفاده شده در هنگام محاسبه زمان در ترافیک را مشخص می کند. این تنظیم بر مقدار برگشتی در زمینه مدت زمان در |
transit_preferences | اختیاری. ترجیحاتی را که در مسیر بازگشت برای مسیرهای |
خارج
محاسبات اضافی برای انجام ضمن تکمیل درخواست.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار شکست خواهد خورد. |
TOLLS | اطلاعات عوارض برای عنصر (های) ماتریس. |
رایانه شخصی
پیام های رایانه ای درخواست می کند.
فیلدها | |
---|---|
origin | مورد نیاز. نقطه راه اصلی. |
destination | مورد نیاز. ایستگاه مقصد. |
intermediates[] | اختیاری. مجموعه ای از ایستگاه های راه در طول مسیر (به استثنای نقاط ترمینال) ، برای متوقف کردن یا عبور از آن. حداکثر 25 نقطه راه میانی پشتیبانی می شود. |
travel_mode | اختیاری. نحوه حمل و نقل را مشخص می کند. |
routing_preference | اختیاری. نحوه محاسبه مسیر را مشخص می کند. سرور سعی در استفاده از اولویت مسیریابی انتخاب شده برای محاسبه مسیر دارد. اگر ترجیح مسیریابی منجر به خطا یا تأخیر طولانی مدت شود ، خطایی بازگردانده می شود. شما می توانید این گزینه را فقط هنگامی که |
polyline_quality | اختیاری. ترجیح شما را برای کیفیت پلی خط مشخص می کند. |
polyline_encoding | اختیاری. رمزگذاری ترجیحی را برای پلی خط مشخص می کند. |
departure_time | اختیاری. زمان عزیمت اگر این مقدار را تنظیم نکردید ، این مقدار به زمانی که درخواست را انجام داده اید پیش فرض می شود. توجه: هنگامی که |
arrival_time | اختیاری. زمان ورود توجه: فقط در صورت تنظیم |
compute_alternative_routes | اختیاری. مشخص می کند که آیا می توان مسیرهای متناوب را علاوه بر مسیر محاسبه کرد. برای درخواست هایی که دارای نقاط راه میانی هستند ، هیچ مسیر جایگزین بازگردانده نمی شود. |
route_modifiers | اختیاری. مجموعه ای از شرایط برای برآورده کردن بر نحوه محاسبه مسیرها. |
language_code | اختیاری. کد زبان BCP-47 ، مانند "en-us" یا "sr-latn". برای اطلاعات بیشتر ، به شناسه محلی Unicode مراجعه کنید. پشتیبانی از زبان را برای لیست زبانهای پشتیبانی شده مشاهده کنید. وقتی این مقدار را ارائه نمی دهید ، زبان نمایش از محل درخواست مسیر استنباط می شود. |
region_code | اختیاری. کد منطقه ، به عنوان یک مقدار CCTLD ("دامنه سطح بالا") مقدار دو شخصیت مشخص شده است. برای اطلاعات بیشتر به دامنه های سطح بالای کد کشور مراجعه کنید. |
units | اختیاری. واحدهای اندازه گیری را برای قسمتهای نمایشگر مشخص می کند. این زمینه ها شامل زمینه |
optimize_waypoint_order | اختیاری. در صورت تنظیم صحیح ، این سرویس سعی می کند با سفارش مجدد ایستگاه های واسطه ای مشخص شده ، هزینه کلی مسیر را به حداقل برساند. اگر هر یک از نقاط راه میانی |
requested_reference_routes[] | اختیاری. علاوه بر مسیر پیش فرض ، چه مسیرهای مرجع را برای محاسبه به عنوان بخشی از درخواست مشخص می کند. یک مسیر مرجع مسیری با هدف محاسبه مسیر متفاوت از مسیر پیش فرض است. به عنوان مثال ، یک محاسبه مسیر مرجع |
extra_computations[] | اختیاری. لیستی از محاسبات اضافی که ممکن است برای تکمیل درخواست استفاده شود. توجه: این محاسبات اضافی ممکن است زمینه های اضافی را در پاسخ بازگرداند. این زمینه های اضافی نیز باید در ماسک میدانی مشخص شود که در پاسخ برگردانده شود. |
traffic_model | اختیاری. فرضیات استفاده شده در هنگام محاسبه زمان در ترافیک را مشخص می کند. این تنظیم بر مقدار برگشتی در زمینه مدت زمان در |
transit_preferences | اختیاری. ترجیحاتی را که در مسیر بازگشت برای مسیرهای |
خارج
محاسبات اضافی برای انجام ضمن تکمیل درخواست.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار شکست خواهد خورد. |
TOLLS | اطلاعات عوارض برای مسیر (ها). |
FUEL_CONSUMPTION | تخمین مصرف سوخت برای مسیر (ها). |
TRAFFIC_ON_POLYLINE | Polylines آگاهی از ترافیک برای مسیر (ها). |
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS | NavigationInstructions به عنوان یک رشته متن HTML فرمت شده ارائه شده است. این محتوا به معنای خوانده شده است. این محتوا فقط برای نمایش است. آن را به صورت برنامه ای تجزیه نکنید. |
FLYOVER_INFO_ON_POLYLINE | اطلاعات پرواز برای مسیر (ها). برای بازگشت این اطلاعات باید routes.polyline_details.flyover_info FieldMask مشخص شود. این داده ها فقط در حال حاضر برای متروهای خاص در هند جمع می شوند. این ویژگی آزمایشی است و Sku/Charge در معرض تغییر است. |
NARROW_ROAD_INFO_ON_POLYLINE | اطلاعات جاده ای باریک برای مسیر (ها). routes.polyline_details.narrow_road_info fieldmask باید برای بازگشت این اطلاعات مشخص شود. این داده ها فقط در حال حاضر برای متروهای خاص در هند جمع می شوند. این ویژگی آزمایشی است و Sku/Charge در معرض تغییر است. |
ارجاع
یک مسیر مرجع پشتیبانی شده در ComputerOutesRequest.
Enums | |
---|---|
REFERENCE_ROUTE_UNSPECIFIED | استفاده نشده است. درخواست های حاوی این مقدار شکست می خورند. |
FUEL_EFFICIENT | مسیر کارآمد سوخت. |
SHORTER_DISTANCE | مسیر با فاصله سفر کوتاه تر. این یک ویژگی آزمایشی است. برای درخواست های برای درخواست های این ویژگی با سایر حالت های مسافرتی ، از طریق نقاط راه میانی ، یا |
بازپرداخت رایانه
رایانه پیام پاسخ را انجام می دهد.
فیلدها | |
---|---|
routes[] | در هنگام مشخص کردن |
fallback_info | در بعضی موارد که سرور قادر به محاسبه نتایج مسیر با تمام ترجیحات ورودی نیست ، ممکن است به استفاده از یک روش محاسبات متفاوت بازگردد. هنگامی که از حالت Fallback استفاده می شود ، این قسمت حاوی اطلاعات مفصلی در مورد پاسخ برگشتی است. در غیر این صورت این زمینه غیرقانونی است. |
geocoding_results | حاوی اطلاعات پاسخ GeoCoding برای نقاط راه مشخص شده به عنوان آدرس است. |
خط دبستان
اطلاعات مربوط به چگونگی و چرا از نتیجه برگشتی استفاده شده است. اگر این قسمت تنظیم شده باشد ، به این معنی است که سرور از حالت مسیریابی متفاوتی از حالت مورد نظر شما به عنوان Fallback استفاده کرده است.
فیلدها | |
---|---|
routing_mode | حالت مسیریابی مورد استفاده برای پاسخ. در صورت ایجاد برگشتی ، حالت ممکن است با ترجیح مسیریابی تنظیم شده در درخواست اصلی مشتری متفاوت باشد. |
reason | The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned. |
FallbackReason
Reasons for using fallback response.
Enums | |
---|---|
FALLBACK_REASON_UNSPECIFIED | No fallback reason specified. |
SERVER_ERROR | A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode. |
LATENCY_EXCEEDED | We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode. |
FallbackRoutingMode
Actual routing mode used for returned fallback response.
Enums | |
---|---|
FALLBACK_ROUTING_MODE_UNSPECIFIED | استفاده نشده است. |
FALLBACK_TRAFFIC_UNAWARE | Indicates the TRAFFIC_UNAWARE was used to compute the response. |
FALLBACK_TRAFFIC_AWARE | Indicates the TRAFFIC_AWARE was used to compute the response. |
GeocodedWaypoint
Details about the locations used as waypoints. Only populated for address waypoints. Includes details about the geocoding results for the purposes of determining what the address was geocoded to.
فیلدها | |
---|---|
geocoder_status | Indicates the status code resulting from the geocoding operation. |
type[] | The type(s) of the result, in the form of zero or more type tags. Supported types: Address types and address component types . |
partial_match | Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address. |
place_id | The place ID for this result. |
intermediate_waypoint_request_index | The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint. |
GeocodingResults
Contains
for origin, destination and intermediate waypoints. Only populated for address waypoints. GeocodedWaypoints
فیلدها | |
---|---|
origin | Origin geocoded waypoint. |
destination | Destination geocoded waypoint. |
intermediates[] | A list of intermediate geocoded waypoints each containing an index field that corresponds to the zero-based position of the waypoint in the order they were specified in the request. |
LocalizedTime
Localized description of time.
فیلدها | |
---|---|
time | The time specified as a string in a given time zone. |
time_zone | Contains the time zone. The value is the name of the time zone as defined in the IANA Time Zone Database , eg "America/New_York". |
مکان
Encapsulates a location (a geographic point, and an optional heading).
فیلدها | |
---|---|
lat_lng | The waypoint's geographic coordinates. |
heading | The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for |
مانور
A set of values that specify the navigation action to take for the current step (for example, turn left, merge, or straight).
Enums | |
---|---|
MANEUVER_UNSPECIFIED | استفاده نشده است. |
TURN_SLIGHT_LEFT | Turn slightly to the left. |
TURN_SHARP_LEFT | Turn sharply to the left. |
UTURN_LEFT | Make a left u-turn. |
TURN_LEFT | Turn left. |
TURN_SLIGHT_RIGHT | Turn slightly to the right. |
TURN_SHARP_RIGHT | Turn sharply to the right. |
UTURN_RIGHT | Make a right u-turn. |
TURN_RIGHT | به راست بپیچید. |
STRAIGHT | Go straight. |
RAMP_LEFT | Take the left ramp. |
RAMP_RIGHT | Take the right ramp. |
MERGE | Merge into traffic. |
FORK_LEFT | Take the left fork. |
FORK_RIGHT | Take the right fork. |
FERRY | Take the ferry. |
FERRY_TRAIN | Take the train leading onto the ferry. |
ROUNDABOUT_LEFT | Turn left at the roundabout. |
ROUNDABOUT_RIGHT | Turn right at the roundabout. |
DEPART | Initial maneuver. |
NAME_CHANGE | Used to indicate a street name change. |
پلی لاین
Encapsulates an encoded polyline.
فیلدها | |
---|---|
Union field polyline_type . Encapsulates the type of polyline. Defaults to encoded_polyline. polyline_type can be only one of the following: | |
encoded_polyline | The string encoding of the polyline using the polyline encoding algorithm |
geo_json_linestring | Specifies a polyline using the GeoJSON LineString format . |
PolylineDetails
Details corresponding to a given index or contiguous segment of a polyline. Given a polyline with points P_0, P_1, ... , P_N (zero-based index), the PolylineDetails
defines an interval and associated metadata.
فیلدها | |
---|---|
flyover_info[] | Flyover details along the polyline. |
narrow_road_info[] | Narrow road details along the polyline. |
FlyoverInfo
Encapsulates information about flyovers along the polyline.
فیلدها | |
---|---|
flyover_presence | Output only. Denotes whether a flyover exists for a given stretch of the polyline. |
polyline_point_index | The location of flyover related information along the polyline. |
NarrowRoadInfo
Encapsulates information about narrow roads along the polyline.
فیلدها | |
---|---|
narrow_road_presence | Output only. Denotes whether a narrow road exists for a given stretch of the polyline. |
polyline_point_index | The location of narrow road related information along the polyline. |
PolylinePointIndex
Encapsulates the start and end indexes for a polyline detail. For instances where the data corresponds to a single point, start_index
and end_index
will be equal.
فیلدها | |
---|---|
start_index | The start index of this detail in the polyline. |
end_index | The end index of this detail in the polyline. |
RoadFeatureState
Encapsulates the states of road features along a stretch of polyline.
Enums | |
---|---|
ROAD_FEATURE_STATE_UNSPECIFIED | The road feature's state was not computed (default value). |
EXISTS | The road feature exists. |
DOES_NOT_EXIST | The road feature does not exist. |
PolylineEncoding
Specifies the preferred type of polyline to be returned.
Enums | |
---|---|
POLYLINE_ENCODING_UNSPECIFIED | No polyline type preference specified. Defaults to ENCODED_POLYLINE . |
ENCODED_POLYLINE | Specifies a polyline encoded using the polyline encoding algorithm . |
GEO_JSON_LINESTRING | Specifies a polyline using the GeoJSON LineString format |
PolylineQuality
A set of values that specify the quality of the polyline.
Enums | |
---|---|
POLYLINE_QUALITY_UNSPECIFIED | No polyline quality preference specified. Defaults to OVERVIEW . |
HIGH_QUALITY | Specifies a high-quality polyline - which is composed using more points than OVERVIEW , at the cost of increased response size. Use this value when you need more precision. |
OVERVIEW | Specifies an overview polyline - which is composed using a small number of points. Use this value when displaying an overview of the route. Using this option has a lower request latency compared to using the HIGH_QUALITY option. |
مسیر
Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
فیلدها | |
---|---|
route_labels[] | Labels for the |
legs[] | A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non- |
distance_meters | The travel distance of the route, in meters. |
duration | The length of time needed to navigate the route. If you set the |
static_duration | The duration of travel through the route without taking traffic conditions into consideration. |
polyline | The overall route polyline. This polyline is the combined polyline of all |
description | A description of the route. |
warnings[] | An array of warnings to show when displaying the route. |
viewport | The viewport bounding box of the polyline. |
travel_advisory | Additional information about the route. |
optimized_intermediate_waypoint_index[] | If you set |
localized_values | Text representations of properties of the |
route_token | An opaque token that can be passed to Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created. Treat this token as an opaque blob. Don't compare its value across requests as its value may change even if the service returns the exact same route. NOTE: |
polyline_details | Contains information about details along the polyline. |
RouteLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
transit_fare | Transit fare represented in text form. |
RouteLabel
Labels for the
that are useful to identify specific properties of the route to compare against others. Route
Enums | |
---|---|
ROUTE_LABEL_UNSPECIFIED | Default - not used. |
DEFAULT_ROUTE | The default "best" route returned for the route computation. |
DEFAULT_ROUTE_ALTERNATE | An alternative to the default "best" route. Routes like this will be returned when is specified. |
FUEL_EFFICIENT | Fuel efficient route. Routes labeled with this value are determined to be optimized for Eco parameters such as fuel consumption. |
SHORTER_DISTANCE | Shorter travel distance route. این یک ویژگی آزمایشی است. |
RouteLeg
Contains a segment between non- via
waypoints.
فیلدها | |
---|---|
distance_meters | The travel distance of the route leg, in meters. |
duration | The length of time needed to navigate the leg. If the |
static_duration | The duration of travel through the leg, calculated without taking traffic conditions into consideration. |
polyline | The overall polyline for this leg that includes each |
start_location | The start location of this leg. This location might be different from the provided |
end_location | The end location of this leg. This location might be different from the provided |
steps[] | An array of steps denoting segments within this leg. Each step represents one navigation instruction. |
travel_advisory | Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg. |
localized_values | Text representations of properties of the |
steps_overview | Overview information about the steps in this |
RouteLegLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration. |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
StepsOverview
Provides overview information about a list of RouteLegStep
s.
فیلدها | |
---|---|
multi_modal_segments[] | Summarized information about different multi-modal segments of the |
MultiModalSegment
Provides summarized information about different multi-modal segments of the RouteLeg.steps
. A multi-modal segment is defined as one or more contiguous RouteLegStep
that have the same RouteTravelMode
. This field is not populated if the RouteLeg
does not contain any multi-modal segments in the steps.
فیلدها | |
---|---|
navigation_instruction | NavigationInstruction for the multi-modal segment. |
travel_mode | The travel mode of the multi-modal segment. |
step_start_index | The corresponding |
step_end_index | The corresponding |
RouteLegStep
Contains a segment of a
. A step corresponds to a single navigation instruction. Route legs are made up of steps. RouteLeg
فیلدها | |
---|---|
distance_meters | The travel distance of this step, in meters. In some circumstances, this field might not have a value. |
static_duration | The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value. |
polyline | The polyline associated with this step. |
start_location | The start location of this step. |
end_location | The end location of this step. |
navigation_instruction | Navigation instructions. |
travel_advisory | Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step. |
localized_values | Text representations of properties of the |
transit_details | Details pertaining to this step if the travel mode is |
travel_mode | The travel mode used for this step. |
RouteLegStepLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
RouteLegStepTransitDetails
Additional information for the RouteLegStep
related to TRANSIT
routes.
فیلدها | |
---|---|
stop_details | Information about the arrival and departure stops for the step. |
localized_values | Text representations of properties of the |
headsign | Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station. |
headway | Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus. |
transit_line | Information about the transit line used in this step. |
stop_count | The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, returns 3. |
trip_short_text | The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the |
TransitDetailsLocalizedValues
Localized descriptions of values for RouteTransitDetails
.
فیلدها | |
---|---|
arrival_time | Time in its formatted text representation with a corresponding time zone. |
departure_time | Time in its formatted text representation with a corresponding time zone. |
TransitStopDetails
Details about the transit stops for the RouteLegStep
.
فیلدها | |
---|---|
arrival_stop | Information about the arrival stop for the step. |
arrival_time | The estimated time of arrival for the step. |
departure_stop | Information about the departure stop for the step. |
departure_time | The estimated time of departure for the step. |
RouteLegStepTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions on a leg step.
فیلدها | |
---|---|
speed_reading_intervals[] | NOTE: This field is not currently populated. |
RouteLegTravelAdvisory
Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.
فیلدها | |
---|---|
toll_info | Contains information about tolls on the specific |
speed_reading_intervals[] | Speed reading intervals detailing traffic density. Applicable in case of مثال:
|
RouteMatrixDestination
A single destination for ComputeRouteMatrixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. Destination waypoint |
RouteMatrixElement
Contains route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.
فیلدها | |
---|---|
status | Error status code for this element. |
condition | Indicates whether the route was found or not. Independent of status. |
distance_meters | The travel distance of the route, in meters. |
duration | The length of time needed to navigate the route. If you set the |
static_duration | The duration of traveling through the route without taking traffic conditions into consideration. |
travel_advisory | Additional information about the route. For example: restriction information and toll information |
fallback_info | In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset. |
localized_values | Text representations of properties of the |
origin_index | Zero-based index of the origin in the request. |
destination_index | Zero-based index of the destination in the request. |
LocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration. |
static_duration | Duration represented in text form without taking traffic conditions into consideration. |
transit_fare | Transit fare represented in text form. |
RouteMatrixElementCondition
The condition of the route being returned.
Enums | |
---|---|
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED | Only used when the status of the element is not OK. |
ROUTE_EXISTS | A route was found, and the corresponding information was filled out for the element. |
ROUTE_NOT_FOUND | No route could be found. Fields containing route information, such as distance_meters or duration , will not be filled out in the element. |
RouteMatrixOrigin
A single origin for ComputeRouteMatrixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. Origin waypoint |
route_modifiers | اختیاری. Modifiers for every route that takes this as the origin |
RouteModifiers
Encapsulates a set of optional conditions to satisfy when calculating the routes.
فیلدها | |
---|---|
avoid_tolls | When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the |
avoid_highways | When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the |
avoid_ferries | When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the |
avoid_indoor | When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the |
vehicle_info | Specifies the vehicle information. |
toll_passes[] | Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the |
RouteTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.
فیلدها | |
---|---|
toll_info | Contains information about tolls on the route. This field is only populated if tolls are expected on the route. If this field is set, but the |
speed_reading_intervals[] | Speed reading intervals detailing traffic density. Applicable in case of مثال:
|
fuel_consumption_microliters | The predicted fuel consumption in microliters. |
route_restrictions_partially_ignored | Returned route may have restrictions that are not suitable for requested travel mode or route modifiers. |
transit_fare | If present, contains the total fare or ticket costs on this route This property is only returned for |
RouteTravelMode
A set of values used to specify the mode of travel. NOTE: WALK
, BICYCLE
, and TWO_WHEELER
routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.
Enums | |
---|---|
TRAVEL_MODE_UNSPECIFIED | No travel mode specified. Defaults to DRIVE . |
DRIVE | Travel by passenger car. |
BICYCLE | Travel by bicycle. |
WALK | Travel by walking. |
TWO_WHEELER | Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the BICYCLE travel mode which covers human-powered mode. |
TRANSIT | Travel by public transit routes, where available. |
RoutingPreference
A set of values that specify factors to take into consideration when calculating the route.
Enums | |
---|---|
ROUTING_PREFERENCE_UNSPECIFIED | No routing preference specified. Default to TRAFFIC_UNAWARE . |
TRAFFIC_UNAWARE | Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For DRIVE and TWO_WHEELER , the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency. |
TRAFFIC_AWARE | Calculates routes taking live traffic conditions into consideration. In contrast to TRAFFIC_AWARE_OPTIMAL , some optimizations are applied to significantly reduce latency. |
TRAFFIC_AWARE_OPTIMAL | Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency. |
SpeedReadingInterval
Traffic density indicator on a contiguous segment of a polyline or path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval
defines an interval and describes its traffic using the following categories.
فیلدها | |
---|---|
start_polyline_point_index | The starting index of this interval in the polyline. |
end_polyline_point_index | The ending index of this interval in the polyline. |
Union field | |
speed | Traffic speed in this interval. |
سرعت
The classification of polyline speed based on traffic data.
Enums | |
---|---|
SPEED_UNSPECIFIED | مقدار پیش فرض این مقدار استفاده نشده است. |
NORMAL | Normal speed, no traffic delays. |
SLOW | Slowdown detected, medium amount of traffic. |
TRAFFIC_JAM | Traffic delays. |
TollInfo
فیلدها | |
---|---|
estimated_price[] | The monetary amount of tolls for the corresponding |
TollPass
List of toll passes around the world that we support.
Enums | |
---|---|
TOLL_PASS_UNSPECIFIED | استفاده نشده است. If this value is used, then the request fails. |
AU_ETOLL_TAG | Sydney toll pass. See additional details at https://www.myetoll.com.au . |
AU_EWAY_TAG | Sydney toll pass. See additional details at https://www.tollpay.com.au . |
AU_LINKT | Australia-wide toll pass. See additional details at https://www.linkt.com.au/ . |
AR_TELEPASE | Argentina toll pass. See additional details at https://telepase.com.ar |
BR_AUTO_EXPRESO | Brazil toll pass. See additional details at https://www.autoexpreso.com |
BR_CONECTCAR | Brazil toll pass. See additional details at https://conectcar.com . |
BR_MOVE_MAIS | Brazil toll pass. See additional details at https://movemais.com . |
BR_PASSA_RAPIDO | Brazil toll pass. See additional details at https://pasorapido.gob.do/ |
BR_SEM_PARAR | Brazil toll pass. See additional details at https://www.semparar.com.br . |
BR_TAGGY | Brazil toll pass. See additional details at https://taggy.com.br . |
BR_VELOE | Brazil toll pass. See additional details at https://veloe.com.br/site/onde-usar . |
CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD | Canada to United States border crossing. |
CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD | Canada to United States border crossing. |
CA_US_BLUE_WATER_EDGE_PASS | Ontario, Canada to Michigan, United States border crossing. |
CA_US_CONNEXION | Ontario, Canada to Michigan, United States border crossing. |
CA_US_NEXUS_CARD | Canada to United States border crossing. |
ID_E_TOLL | اندونزی. E-card provided by multiple banks used to pay for tolls. All e-cards via banks are charged the same so only one enum value is needed. Eg - Bank Mandiri https://www.bankmandiri.co.id/e-money - BCA https://www.bca.co.id/flazz - BNI https://www.bni.co.id/id-id/ebanking/tapcash |
IN_FASTAG | هند. |
IN_LOCAL_HP_PLATE_EXEMPT | India, HP state plate exemption. |
JP_ETC | Japan ETC. Electronic wireless system to collect tolls. https://www.go-etc.jp/ |
JP_ETC2 | Japan ETC2.0. New version of ETC with further discount and bidirectional communication between devices on vehicles and antennas on the road. https://www.go-etc.jp/etc2/index.html |
MX_IAVE | Mexico toll pass. https://iave.capufe.gob.mx/#/ |
MX_PASE | Mexico https://www.pase.com.mx |
MX_QUICKPASS | Mexico https://operadoravial.com/quick-pass/ |
MX_SISTEMA_TELEPEAJE_CHIHUAHUA | http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf |
MX_TAG_IAVE | مکزیک |
MX_TAG_TELEVIA | Mexico toll pass company. One of many operating in Mexico City. See additional details at https://www.televia.com.mx . |
MX_TELEVIA | Mexico toll pass company. One of many operating in Mexico City. https://www.televia.com.mx |
MX_VIAPASS | Mexico toll pass. See additional details at https://www.viapass.com.mx/viapass/web_home.aspx . |
US_AL_FREEDOM_PASS | AL, USA. |
US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS | AK, USA. |
US_CA_FASTRAK | CA, USA. |
US_CA_FASTRAK_CAV_STICKER | Indicates driver has any FasTrak pass in addition to the DMV issued Clean Air Vehicle (CAV) sticker. https://www.bayareafastrak.org/en/guide/doINeedFlex.shtml |
US_CO_EXPRESSTOLL | CO, USA. |
US_CO_GO_PASS | CO, USA. |
US_DE_EZPASSDE | DE, USA. |
US_FL_BOB_SIKES_TOLL_BRIDGE_PASS | FL, USA. |
US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD | FL, USA. |
US_FL_EPASS | FL, USA. |
US_FL_GIBA_TOLL_PASS | FL, USA. |
US_FL_LEEWAY | FL, USA. |
US_FL_SUNPASS | FL, USA. |
US_FL_SUNPASS_PRO | FL, USA. |
US_IL_EZPASSIL | IL، ایالات متحده آمریکا |
US_IL_IPASS | IL، ایالات متحده آمریکا |
US_IN_EZPASSIN | در ایالات متحده آمریکا |
US_KS_BESTPASS_HORIZON | KS, USA. |
US_KS_KTAG | KS, USA. |
US_KS_NATIONALPASS | KS, USA. |
US_KS_PREPASS_ELITEPASS | KS, USA. |
US_KY_RIVERLINK | KY, USA. |
US_LA_GEAUXPASS | LA, USA. |
US_LA_TOLL_TAG | LA, USA. |
US_MA_EZPASSMA | MA, USA. |
US_MD_EZPASSMD | MD, USA. |
US_ME_EZPASSME | ME, USA. |
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD | MI, USA. |
US_MI_BCPASS | MI, USA. |
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG | MI, USA. |
US_MI_IQ_PROX_CARD | MI, USA. Deprecated as this pass type no longer exists. |
US_MI_IQ_TAG | MI, USA. |
US_MI_MACKINAC_BRIDGE_MAC_PASS | MI, USA. |
US_MI_NEXPRESS_TOLL | MI, USA. |
US_MN_EZPASSMN | MN, USA. |
US_NC_EZPASSNC | NC, USA. |
US_NC_PEACH_PASS | NC, USA. |
US_NC_QUICK_PASS | NC, USA. |
US_NH_EZPASSNH | NH, USA. |
US_NJ_DOWNBEACH_EXPRESS_PASS | NJ, USA. |
US_NJ_EZPASSNJ | NJ, USA. |
US_NY_EXPRESSPASS | NY, USA. |
US_NY_EZPASSNY | NY, USA. |
US_OH_EZPASSOH | OH, USA. |
US_PA_EZPASSPA | PA, USA. |
US_RI_EZPASSRI | RI, USA. |
US_SC_PALPASS | SC, USA. |
US_TX_AVI_TAG | TX, USA. |
US_TX_BANCPASS | TX, USA. |
US_TX_DEL_RIO_PASS | TX, USA. |
US_TX_EFAST_PASS | TX, USA. |
US_TX_EAGLE_PASS_EXPRESS_CARD | TX, USA. |
US_TX_EPTOLL | TX, USA. |
US_TX_EZ_CROSS | TX, USA. |
US_TX_EZTAG | TX, USA. |
US_TX_FUEGO_TAG | TX, USA. |
US_TX_LAREDO_TRADE_TAG | TX, USA. |
US_TX_PLUSPASS | TX, USA. |
US_TX_TOLLTAG | TX, USA. |
US_TX_TXTAG | TX, USA. |
US_TX_XPRESS_CARD | TX, USA. |
US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD | UT, USA. |
US_VA_EZPASSVA | VA, USA. |
US_WA_BREEZEBY | WA, USA. |
US_WA_GOOD_TO_GO | WA, USA. |
US_WV_EZPASSWV | WV, USA. |
US_WV_MEMORIAL_BRIDGE_TICKETS | WV, USA. |
US_WV_MOV_PASS | WV, USA |
US_WV_NEWELL_TOLL_BRIDGE_TICKET | WV, USA. |
TrafficModel
Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration
field in the response, which contains the predicted time in traffic based on historical averages.
Enums | |
---|---|
TRAFFIC_MODEL_UNSPECIFIED | استفاده نشده If specified, will default to BEST_GUESS . |
BEST_GUESS | Indicates that the returned duration should be the best estimate of travel time given what is known about both historical traffic conditions and live traffic. Live traffic becomes more important the closer the departure_time is to now. |
PESSIMISTIC | Indicates that the returned duration should be longer than the actual travel time on most days, though occasional days with particularly bad traffic conditions may exceed this value. |
OPTIMISTIC | Indicates that the returned duration should be shorter than the actual travel time on most days, though occasional days with particularly good traffic conditions may be faster than this value. |
TransitAgency
A transit agency that operates a transit line.
فیلدها | |
---|---|
name | The name of this transit agency. |
phone_number | The transit agency's locale-specific formatted phone number. |
uri | The transit agency's URI. |
TransitLine
Contains information about the transit line used in this step.
فیلدها | |
---|---|
agencies[] | The transit agency (or agencies) that operates this transit line. |
name | The full name of this transit line, For example, "8 Avenue Local". |
uri | the URI for this transit line as provided by the transit agency. |
color | The color commonly used in signage for this line. Represented in hexadecimal. |
icon_uri | The URI for the icon associated with this line. |
name_short | The short name of this transit line. This name will normally be a line number, such as "M7" or "355". |
text_color | The color commonly used in text on signage for this line. Represented in hexadecimal. |
vehicle | The type of vehicle that operates on this transit line. |
TransitPreferences
Preferences for TRANSIT
based routes that influence the route that is returned.
فیلدها | |
---|---|
allowed_travel_modes[] | A set of travel modes to use when getting a |
routing_preference | A routing preference that, when specified, influences the |
TransitRoutingPreference
Specifies routing preferences for transit routes.
Enums | |
---|---|
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED | No preference specified. |
LESS_WALKING | Indicates that the calculated route should prefer limited amounts of walking. |
FEWER_TRANSFERS | Indicates that the calculated route should prefer a limited number of transfers. |
TransitTravelMode
A set of values used to specify the mode of transit.
Enums | |
---|---|
TRANSIT_TRAVEL_MODE_UNSPECIFIED | No transit travel mode specified. |
BUS | با اتوبوس سفر کنید. |
SUBWAY | Travel by subway. |
TRAIN | Travel by train. |
LIGHT_RAIL | Travel by light rail or tram. |
RAIL | Travel by rail. This is equivalent to a combination of SUBWAY , TRAIN , and LIGHT_RAIL . |
TransitStop
Information about a transit stop.
فیلدها | |
---|---|
name | The name of the transit stop. |
location | The location of the stop expressed in latitude/longitude coordinates. |
TransitVehicle
Information about a vehicle used in transit routes.
فیلدها | |
---|---|
name | The name of this vehicle, capitalized. |
type | The type of vehicle used. |
icon_uri | The URI for an icon associated with this vehicle type. |
local_icon_uri | The URI for the icon associated with this vehicle type, based on the local transport signage. |
TransitVehicleType
The type of vehicles for transit routes.
Enums | |
---|---|
TRANSIT_VEHICLE_TYPE_UNSPECIFIED | استفاده نشده |
BUS | اتوبوس |
CABLE_CAR | A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type GONDOLA_LIFT . |
COMMUTER_TRAIN | راه آهن شهری. |
FERRY | فری |
FUNICULAR | A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other. |
GONDOLA_LIFT | An aerial cable car. |
HEAVY_RAIL | ریل سنگین |
HIGH_SPEED_TRAIN | قطار پر سرعت. |
INTERCITY_BUS | Intercity bus. |
LONG_DISTANCE_TRAIN | Long distance train. |
METRO_RAIL | Light rail transit. |
MONORAIL | Monorail. |
OTHER | All other vehicles. |
RAIL | راه آهن. |
SHARE_TAXI | Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route. |
SUBWAY | Underground light rail. |
TRAM | Above ground light rail. |
TROLLEYBUS | Trolleybus. |
واحدها
A set of values that specify the unit of measure used in the display.
Enums | |
---|---|
UNITS_UNSPECIFIED | Units of measure not specified. Defaults to the unit of measure inferred from the request. |
METRIC | Metric units of measure. |
IMPERIAL | Imperial (English) units of measure. |
VehicleEmissionType
A set of values describing the vehicle's emission type. Applies only to the DRIVE
. RouteTravelMode
Enums | |
---|---|
VEHICLE_EMISSION_TYPE_UNSPECIFIED | No emission type specified. Default to GASOLINE . |
GASOLINE | Gasoline/petrol fueled vehicle. |
ELECTRIC | Electricity powered vehicle. |
HYBRID | Hybrid fuel (such as gasoline + electric) vehicle. |
DIESEL | Diesel fueled vehicle. |
VehicleInfo
Contains the vehicle information, such as the vehicle emission type.
فیلدها | |
---|---|
emission_type | Describes the vehicle's emission type. Applies only to the |
نقطه راه
Encapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.
فیلدها | |
---|---|
via | Marks this waypoint as a milestone rather a stopping point. For each non-via waypoint in the request, the response appends an entry to the |
vehicle_stopover | Indicates that the waypoint is meant for vehicles to stop at, where the intention is to either pickup or drop-off. When you set this value, the calculated route won't include non- |
side_of_road | Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for |
Union field location_type . Different ways to represent a location. location_type can be only one of the following: | |
location | A point specified using geographic coordinates, including an optional heading. |
place_id | The POI Place ID associated with the waypoint. |
address | Human readable address or a plus code. See https://plus.codes for details. |
شاخص
-
Routes
(interface) -
ComputeRouteMatrixRequest
(message) -
ComputeRouteMatrixRequest.ExtraComputation
(enum) -
ComputeRoutesRequest
(message) -
ComputeRoutesRequest.ExtraComputation
(enum) -
ComputeRoutesRequest.ReferenceRoute
(enum) -
ComputeRoutesResponse
(message) -
FallbackInfo
(message) -
FallbackReason
(enum) -
FallbackRoutingMode
(enum) -
GeocodedWaypoint
(message) -
GeocodingResults
(message) -
LocalizedTime
(message) -
Location
(message) -
Maneuver
(enum) -
NavigationInstruction
(message) -
Polyline
(message) -
PolylineDetails
(message) -
PolylineDetails.FlyoverInfo
(message) -
PolylineDetails.NarrowRoadInfo
(message) -
PolylineDetails.PolylinePointIndex
(message) -
PolylineDetails.RoadFeatureState
(enum) -
PolylineEncoding
(enum) -
PolylineQuality
(enum) -
Route
(message) -
Route.RouteLocalizedValues
(message) -
RouteLabel
(enum) -
RouteLeg
(message) -
RouteLeg.RouteLegLocalizedValues
(message) -
RouteLeg.StepsOverview
(message) -
RouteLeg.StepsOverview.MultiModalSegment
(message) -
RouteLegStep
(message) -
RouteLegStep.RouteLegStepLocalizedValues
(message) -
RouteLegStepTransitDetails
(message) -
RouteLegStepTransitDetails.TransitDetailsLocalizedValues
(message) -
RouteLegStepTransitDetails.TransitStopDetails
(message) -
RouteLegStepTravelAdvisory
(message) -
RouteLegTravelAdvisory
(message) -
RouteMatrixDestination
(message) -
RouteMatrixElement
(message) -
RouteMatrixElement.LocalizedValues
(message) -
RouteMatrixElementCondition
(enum) -
RouteMatrixOrigin
(message) -
RouteModifiers
(message) -
RouteTravelAdvisory
(message) -
RouteTravelMode
(enum) -
RoutingPreference
(enum) -
SpeedReadingInterval
(message) -
SpeedReadingInterval.Speed
(enum) -
TollInfo
(message) -
TollPass
(enum) -
TrafficModel
(enum) -
TransitAgency
(message) -
TransitLine
(message) -
TransitPreferences
(message) -
TransitPreferences.TransitRoutingPreference
(enum) -
TransitPreferences.TransitTravelMode
(enum) -
TransitStop
(message) -
TransitVehicle
(message) -
TransitVehicle.TransitVehicleType
(enum) -
Units
(enum) -
VehicleEmissionType
(enum) -
VehicleInfo
(message) -
Waypoint
(message)
مسیرها
The Routes API.
ComputeRouteMatrix |
---|
Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. NOTE: This method requires that you specify a response field mask in the input. You can provide the response field mask by using the URL parameter For example, in this method:
It is critical that you include
|
ComputeRoutes |
---|
Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. NOTE: This method requires that you specify a response field mask in the input. You can provide the response field mask by using URL parameter For example, in this method:
Google discourage the use of the wildcard (
|
ComputeRouteMatrixRequest
ComputeRouteMatrix request message
فیلدها | |
---|---|
origins[] | مورد نیاز. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations:
|
destinations[] | مورد نیاز. Array of destinations, which determines the columns of the response matrix. |
travel_mode | اختیاری. Specifies the mode of transportation. |
routing_preference | اختیاری. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, an error is returned. You can specify this option only when the |
departure_time | اختیاری. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a |
arrival_time | اختیاری. The arrival time. NOTE: Can only be set when |
language_code | اختیاری. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see Unicode Locale Identifier . See Language Support for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the first origin. |
region_code | اختیاری. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see Country code top-level domains . |
units | اختیاری. Specifies the units of measure for the display fields. |
extra_computations[] | اختیاری. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response. |
traffic_model | اختیاری. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the |
transit_preferences | اختیاری. Specifies preferences that influence the route returned for |
ExtraComputation
Extra computations to perform while completing the request.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. Requests containing this value will fail. |
TOLLS | Toll information for the matrix element(s). |
ComputeRoutesRequest
ComputeRoutes request message.
فیلدها | |
---|---|
origin | مورد نیاز. Origin waypoint. |
destination | مورد نیاز. Destination waypoint. |
intermediates[] | اختیاری. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported. |
travel_mode | اختیاری. Specifies the mode of transportation. |
routing_preference | اختیاری. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the |
polyline_quality | اختیاری. Specifies your preference for the quality of the polyline. |
polyline_encoding | اختیاری. Specifies the preferred encoding for the polyline. |
departure_time | اختیاری. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a |
arrival_time | اختیاری. The arrival time. NOTE: Can only be set when |
compute_alternative_routes | اختیاری. Specifies whether to calculate alternate routes in addition to the route. No alternative routes are returned for requests that have intermediate waypoints. |
route_modifiers | اختیاری. A set of conditions to satisfy that affect the way routes are calculated. |
language_code | اختیاری. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see Unicode Locale Identifier . See Language Support for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request. |
region_code | اختیاری. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see Country code top-level domains . |
units | اختیاری. Specifies the units of measure for the display fields. These fields include the |
optimize_waypoint_order | اختیاری. If set to true, the service attempts to minimize the overall cost of the route by re-ordering the specified intermediate waypoints. The request fails if any of the intermediate waypoints is a |
requested_reference_routes[] | اختیاری. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a |
extra_computations[] | اختیاری. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response. |
traffic_model | اختیاری. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the |
transit_preferences | اختیاری. Specifies preferences that influence the route returned for |
ExtraComputation
Extra computations to perform while completing the request.
Enums | |
---|---|
EXTRA_COMPUTATION_UNSPECIFIED | استفاده نشده است. Requests containing this value will fail. |
TOLLS | Toll information for the route(s). |
FUEL_CONSUMPTION | Estimated fuel consumption for the route(s). |
TRAFFIC_ON_POLYLINE | Traffic aware polylines for the route(s). |
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS | NavigationInstructions presented as a formatted HTML text string. This content is meant to be read as-is. This content is for display only. Do not programmatically parse it. |
FLYOVER_INFO_ON_POLYLINE | Flyover information for the route(s). The routes.polyline_details.flyover_info fieldmask must be specified to return this information. This data will only currently be populated for certain metros in India. This feature is experimental, and the SKU/charge is subject to change. |
NARROW_ROAD_INFO_ON_POLYLINE | Narrow road information for the route(s). The routes.polyline_details.narrow_road_info fieldmask must be specified to return this information. This data will only currently be populated for certain metros in India. This feature is experimental, and the SKU/charge is subject to change. |
ReferenceRoute
A supported reference route on the ComputeRoutesRequest.
Enums | |
---|---|
REFERENCE_ROUTE_UNSPECIFIED | استفاده نشده است. Requests containing this value fail. |
FUEL_EFFICIENT | Fuel efficient route. |
SHORTER_DISTANCE | Route with shorter travel distance. این یک ویژگی آزمایشی است. For For This feature is not compatible with any other travel modes, via intermediate waypoints, or |
ComputeRoutesResponse
ComputeRoutes the response message.
فیلدها | |
---|---|
routes[] | Contains an array of computed routes (up to three) when you specify |
fallback_info | In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation. When fallback mode is used, this field contains detailed info about the fallback response. Otherwise this field is unset. |
geocoding_results | Contains geocoding response info for waypoints specified as addresses. |
FallbackInfo
Information related to how and why a fallback result was used. If this field is set, then it means the server used a different routing mode from your preferred mode as fallback.
فیلدها | |
---|---|
routing_mode | Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request. |
reason | The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned. |
FallbackReason
Reasons for using fallback response.
Enums | |
---|---|
FALLBACK_REASON_UNSPECIFIED | No fallback reason specified. |
SERVER_ERROR | A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode. |
LATENCY_EXCEEDED | We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode. |
FallbackRoutingMode
Actual routing mode used for returned fallback response.
Enums | |
---|---|
FALLBACK_ROUTING_MODE_UNSPECIFIED | استفاده نشده است. |
FALLBACK_TRAFFIC_UNAWARE | Indicates the TRAFFIC_UNAWARE was used to compute the response. |
FALLBACK_TRAFFIC_AWARE | Indicates the TRAFFIC_AWARE was used to compute the response. |
GeocodedWaypoint
Details about the locations used as waypoints. Only populated for address waypoints. Includes details about the geocoding results for the purposes of determining what the address was geocoded to.
فیلدها | |
---|---|
geocoder_status | Indicates the status code resulting from the geocoding operation. |
type[] | The type(s) of the result, in the form of zero or more type tags. Supported types: Address types and address component types . |
partial_match | Indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address. |
place_id | The place ID for this result. |
intermediate_waypoint_request_index | The index of the corresponding intermediate waypoint in the request. Only populated if the corresponding waypoint is an intermediate waypoint. |
GeocodingResults
Contains
for origin, destination and intermediate waypoints. Only populated for address waypoints. GeocodedWaypoints
فیلدها | |
---|---|
origin | Origin geocoded waypoint. |
destination | Destination geocoded waypoint. |
intermediates[] | A list of intermediate geocoded waypoints each containing an index field that corresponds to the zero-based position of the waypoint in the order they were specified in the request. |
LocalizedTime
Localized description of time.
فیلدها | |
---|---|
time | The time specified as a string in a given time zone. |
time_zone | Contains the time zone. The value is the name of the time zone as defined in the IANA Time Zone Database , eg "America/New_York". |
مکان
Encapsulates a location (a geographic point, and an optional heading).
فیلدها | |
---|---|
lat_lng | The waypoint's geographic coordinates. |
heading | The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for |
مانور
A set of values that specify the navigation action to take for the current step (for example, turn left, merge, or straight).
Enums | |
---|---|
MANEUVER_UNSPECIFIED | استفاده نشده است. |
TURN_SLIGHT_LEFT | Turn slightly to the left. |
TURN_SHARP_LEFT | Turn sharply to the left. |
UTURN_LEFT | Make a left u-turn. |
TURN_LEFT | Turn left. |
TURN_SLIGHT_RIGHT | Turn slightly to the right. |
TURN_SHARP_RIGHT | Turn sharply to the right. |
UTURN_RIGHT | Make a right u-turn. |
TURN_RIGHT | به راست بپیچید. |
STRAIGHT | Go straight. |
RAMP_LEFT | Take the left ramp. |
RAMP_RIGHT | Take the right ramp. |
MERGE | Merge into traffic. |
FORK_LEFT | Take the left fork. |
FORK_RIGHT | Take the right fork. |
FERRY | Take the ferry. |
FERRY_TRAIN | Take the train leading onto the ferry. |
ROUNDABOUT_LEFT | Turn left at the roundabout. |
ROUNDABOUT_RIGHT | Turn right at the roundabout. |
DEPART | Initial maneuver. |
NAME_CHANGE | Used to indicate a street name change. |
پلی لاین
Encapsulates an encoded polyline.
فیلدها | |
---|---|
Union field polyline_type . Encapsulates the type of polyline. Defaults to encoded_polyline. polyline_type can be only one of the following: | |
encoded_polyline | The string encoding of the polyline using the polyline encoding algorithm |
geo_json_linestring | Specifies a polyline using the GeoJSON LineString format . |
PolylineDetails
Details corresponding to a given index or contiguous segment of a polyline. Given a polyline with points P_0, P_1, ... , P_N (zero-based index), the PolylineDetails
defines an interval and associated metadata.
فیلدها | |
---|---|
flyover_info[] | Flyover details along the polyline. |
narrow_road_info[] | Narrow road details along the polyline. |
FlyoverInfo
Encapsulates information about flyovers along the polyline.
فیلدها | |
---|---|
flyover_presence | Output only. Denotes whether a flyover exists for a given stretch of the polyline. |
polyline_point_index | The location of flyover related information along the polyline. |
NarrowRoadInfo
Encapsulates information about narrow roads along the polyline.
فیلدها | |
---|---|
narrow_road_presence | Output only. Denotes whether a narrow road exists for a given stretch of the polyline. |
polyline_point_index | The location of narrow road related information along the polyline. |
PolylinePointIndex
Encapsulates the start and end indexes for a polyline detail. For instances where the data corresponds to a single point, start_index
and end_index
will be equal.
فیلدها | |
---|---|
start_index | The start index of this detail in the polyline. |
end_index | The end index of this detail in the polyline. |
RoadFeatureState
Encapsulates the states of road features along a stretch of polyline.
Enums | |
---|---|
ROAD_FEATURE_STATE_UNSPECIFIED | The road feature's state was not computed (default value). |
EXISTS | The road feature exists. |
DOES_NOT_EXIST | The road feature does not exist. |
PolylineEncoding
Specifies the preferred type of polyline to be returned.
Enums | |
---|---|
POLYLINE_ENCODING_UNSPECIFIED | No polyline type preference specified. Defaults to ENCODED_POLYLINE . |
ENCODED_POLYLINE | Specifies a polyline encoded using the polyline encoding algorithm . |
GEO_JSON_LINESTRING | Specifies a polyline using the GeoJSON LineString format |
PolylineQuality
A set of values that specify the quality of the polyline.
Enums | |
---|---|
POLYLINE_QUALITY_UNSPECIFIED | No polyline quality preference specified. Defaults to OVERVIEW . |
HIGH_QUALITY | Specifies a high-quality polyline - which is composed using more points than OVERVIEW , at the cost of increased response size. Use this value when you need more precision. |
OVERVIEW | Specifies an overview polyline - which is composed using a small number of points. Use this value when displaying an overview of the route. Using this option has a lower request latency compared to using the HIGH_QUALITY option. |
مسیر
Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
فیلدها | |
---|---|
route_labels[] | Labels for the |
legs[] | A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non- |
distance_meters | The travel distance of the route, in meters. |
duration | The length of time needed to navigate the route. If you set the |
static_duration | The duration of travel through the route without taking traffic conditions into consideration. |
polyline | The overall route polyline. This polyline is the combined polyline of all |
description | A description of the route. |
warnings[] | An array of warnings to show when displaying the route. |
viewport | The viewport bounding box of the polyline. |
travel_advisory | Additional information about the route. |
optimized_intermediate_waypoint_index[] | If you set |
localized_values | Text representations of properties of the |
route_token | An opaque token that can be passed to Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created. Treat this token as an opaque blob. Don't compare its value across requests as its value may change even if the service returns the exact same route. NOTE: |
polyline_details | Contains information about details along the polyline. |
RouteLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
transit_fare | Transit fare represented in text form. |
RouteLabel
Labels for the
that are useful to identify specific properties of the route to compare against others. Route
Enums | |
---|---|
ROUTE_LABEL_UNSPECIFIED | Default - not used. |
DEFAULT_ROUTE | The default "best" route returned for the route computation. |
DEFAULT_ROUTE_ALTERNATE | An alternative to the default "best" route. Routes like this will be returned when is specified. |
FUEL_EFFICIENT | Fuel efficient route. Routes labeled with this value are determined to be optimized for Eco parameters such as fuel consumption. |
SHORTER_DISTANCE | Shorter travel distance route. این یک ویژگی آزمایشی است. |
RouteLeg
Contains a segment between non- via
waypoints.
فیلدها | |
---|---|
distance_meters | The travel distance of the route leg, in meters. |
duration | The length of time needed to navigate the leg. If the |
static_duration | The duration of travel through the leg, calculated without taking traffic conditions into consideration. |
polyline | The overall polyline for this leg that includes each |
start_location | The start location of this leg. This location might be different from the provided |
end_location | The end location of this leg. This location might be different from the provided |
steps[] | An array of steps denoting segments within this leg. Each step represents one navigation instruction. |
travel_advisory | Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a route leg. |
localized_values | Text representations of properties of the |
steps_overview | Overview information about the steps in this |
RouteLegLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration. |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
StepsOverview
Provides overview information about a list of RouteLegStep
s.
فیلدها | |
---|---|
multi_modal_segments[] | Summarized information about different multi-modal segments of the |
MultiModalSegment
Provides summarized information about different multi-modal segments of the RouteLeg.steps
. A multi-modal segment is defined as one or more contiguous RouteLegStep
that have the same RouteTravelMode
. This field is not populated if the RouteLeg
does not contain any multi-modal segments in the steps.
فیلدها | |
---|---|
navigation_instruction | NavigationInstruction for the multi-modal segment. |
travel_mode | The travel mode of the multi-modal segment. |
step_start_index | The corresponding |
step_end_index | The corresponding |
RouteLegStep
Contains a segment of a
. A step corresponds to a single navigation instruction. Route legs are made up of steps. RouteLeg
فیلدها | |
---|---|
distance_meters | The travel distance of this step, in meters. In some circumstances, this field might not have a value. |
static_duration | The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value. |
polyline | The polyline associated with this step. |
start_location | The start location of this step. |
end_location | The end location of this step. |
navigation_instruction | Navigation instructions. |
travel_advisory | Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step. |
localized_values | Text representations of properties of the |
transit_details | Details pertaining to this step if the travel mode is |
travel_mode | The travel mode used for this step. |
RouteLegStepLocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
static_duration | Duration without taking traffic conditions into consideration, represented in text form. |
RouteLegStepTransitDetails
Additional information for the RouteLegStep
related to TRANSIT
routes.
فیلدها | |
---|---|
stop_details | Information about the arrival and departure stops for the step. |
localized_values | Text representations of properties of the |
headsign | Specifies the direction in which to travel on this line as marked on the vehicle or at the departure stop. The direction is often the terminus station. |
headway | Specifies the expected time as a duration between departures from the same stop at this time. For example, with a headway seconds value of 600, you would expect a ten minute wait if you should miss your bus. |
transit_line | Information about the transit line used in this step. |
stop_count | The number of stops from the departure to the arrival stop. This count includes the arrival stop, but excludes the departure stop. For example, if your route leaves from Stop A, passes through stops B and C, and arrives at stop D, returns 3. |
trip_short_text | The text that appears in schedules and sign boards to identify a transit trip to passengers. The text should uniquely identify a trip within a service day. For example, "538" is the |
TransitDetailsLocalizedValues
Localized descriptions of values for RouteTransitDetails
.
فیلدها | |
---|---|
arrival_time | Time in its formatted text representation with a corresponding time zone. |
departure_time | Time in its formatted text representation with a corresponding time zone. |
TransitStopDetails
Details about the transit stops for the RouteLegStep
.
فیلدها | |
---|---|
arrival_stop | Information about the arrival stop for the step. |
arrival_time | The estimated time of arrival for the step. |
departure_stop | Information about the departure stop for the step. |
departure_time | The estimated time of departure for the step. |
RouteLegStepTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions on a leg step.
فیلدها | |
---|---|
speed_reading_intervals[] | NOTE: This field is not currently populated. |
RouteLegTravelAdvisory
Contains the additional information that the user should be informed about on a leg step, such as possible traffic zone restrictions.
فیلدها | |
---|---|
toll_info | Contains information about tolls on the specific |
speed_reading_intervals[] | Speed reading intervals detailing traffic density. Applicable in case of مثال:
|
RouteMatrixDestination
A single destination for ComputeRouteMatrixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. Destination waypoint |
RouteMatrixElement
Contains route information computed for an origin/destination pair in the ComputeRouteMatrix API. This proto can be streamed to the client.
فیلدها | |
---|---|
status | Error status code for this element. |
condition | Indicates whether the route was found or not. Independent of status. |
distance_meters | The travel distance of the route, in meters. |
duration | The length of time needed to navigate the route. If you set the |
static_duration | The duration of traveling through the route without taking traffic conditions into consideration. |
travel_advisory | Additional information about the route. For example: restriction information and toll information |
fallback_info | In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation. When fallback mode is used, this field contains detailed information about the fallback response. Otherwise this field is unset. |
localized_values | Text representations of properties of the |
origin_index | Zero-based index of the origin in the request. |
destination_index | Zero-based index of the destination in the request. |
LocalizedValues
Text representations of certain properties.
فیلدها | |
---|---|
distance | Travel distance represented in text form. |
duration | Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration. |
static_duration | Duration represented in text form without taking traffic conditions into consideration. |
transit_fare | Transit fare represented in text form. |
RouteMatrixElementCondition
The condition of the route being returned.
Enums | |
---|---|
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED | Only used when the status of the element is not OK. |
ROUTE_EXISTS | A route was found, and the corresponding information was filled out for the element. |
ROUTE_NOT_FOUND | No route could be found. Fields containing route information, such as distance_meters or duration , will not be filled out in the element. |
RouteMatrixOrigin
A single origin for ComputeRouteMatrixRequest
فیلدها | |
---|---|
waypoint | مورد نیاز. Origin waypoint |
route_modifiers | اختیاری. Modifiers for every route that takes this as the origin |
RouteModifiers
Encapsulates a set of optional conditions to satisfy when calculating the routes.
فیلدها | |
---|---|
avoid_tolls | When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the |
avoid_highways | When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the |
avoid_ferries | When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the |
avoid_indoor | When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the |
vehicle_info | Specifies the vehicle information. |
toll_passes[] | Encapsulates information about toll passes. If toll passes are provided, the API tries to return the pass price. If toll passes are not provided, the API treats the toll pass as unknown and tries to return the cash price. Applies only to the |
RouteTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.
فیلدها | |
---|---|
toll_info | Contains information about tolls on the route. This field is only populated if tolls are expected on the route. If this field is set, but the |
speed_reading_intervals[] | Speed reading intervals detailing traffic density. Applicable in case of مثال:
|
fuel_consumption_microliters | The predicted fuel consumption in microliters. |
route_restrictions_partially_ignored | Returned route may have restrictions that are not suitable for requested travel mode or route modifiers. |
transit_fare | If present, contains the total fare or ticket costs on this route This property is only returned for |
RouteTravelMode
A set of values used to specify the mode of travel. NOTE: WALK
, BICYCLE
, and TWO_WHEELER
routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.
Enums | |
---|---|
TRAVEL_MODE_UNSPECIFIED | No travel mode specified. Defaults to DRIVE . |
DRIVE | Travel by passenger car. |
BICYCLE | Travel by bicycle. |
WALK | Travel by walking. |
TWO_WHEELER | Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the BICYCLE travel mode which covers human-powered mode. |
TRANSIT | Travel by public transit routes, where available. |
RoutingPreference
A set of values that specify factors to take into consideration when calculating the route.
Enums | |
---|---|
ROUTING_PREFERENCE_UNSPECIFIED | No routing preference specified. Default to TRAFFIC_UNAWARE . |
TRAFFIC_UNAWARE | Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For DRIVE and TWO_WHEELER , the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency. |
TRAFFIC_AWARE | Calculates routes taking live traffic conditions into consideration. In contrast to TRAFFIC_AWARE_OPTIMAL , some optimizations are applied to significantly reduce latency. |
TRAFFIC_AWARE_OPTIMAL | Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency. |
SpeedReadingInterval
Traffic density indicator on a contiguous segment of a polyline or path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval
defines an interval and describes its traffic using the following categories.
فیلدها | |
---|---|
start_polyline_point_index | The starting index of this interval in the polyline. |
end_polyline_point_index | The ending index of this interval in the polyline. |
Union field | |
speed | Traffic speed in this interval. |
سرعت
The classification of polyline speed based on traffic data.
Enums | |
---|---|
SPEED_UNSPECIFIED | مقدار پیش فرض این مقدار استفاده نشده است. |
NORMAL | Normal speed, no traffic delays. |
SLOW | Slowdown detected, medium amount of traffic. |
TRAFFIC_JAM | Traffic delays. |
TollInfo
فیلدها | |
---|---|
estimated_price[] | The monetary amount of tolls for the corresponding |
TollPass
List of toll passes around the world that we support.
Enums | |
---|---|
TOLL_PASS_UNSPECIFIED | استفاده نشده است. If this value is used, then the request fails. |
AU_ETOLL_TAG | Sydney toll pass. See additional details at https://www.myetoll.com.au . |
AU_EWAY_TAG | Sydney toll pass. See additional details at https://www.tollpay.com.au . |
AU_LINKT | Australia-wide toll pass. See additional details at https://www.linkt.com.au/ . |
AR_TELEPASE | Argentina toll pass. See additional details at https://telepase.com.ar |
BR_AUTO_EXPRESO | Brazil toll pass. See additional details at https://www.autoexpreso.com |
BR_CONECTCAR | Brazil toll pass. See additional details at https://conectcar.com . |
BR_MOVE_MAIS | Brazil toll pass. See additional details at https://movemais.com . |
BR_PASSA_RAPIDO | Brazil toll pass. See additional details at https://pasorapido.gob.do/ |
BR_SEM_PARAR | Brazil toll pass. See additional details at https://www.semparar.com.br . |
BR_TAGGY | Brazil toll pass. See additional details at https://taggy.com.br . |
BR_VELOE | Brazil toll pass. See additional details at https://veloe.com.br/site/onde-usar . |
CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD | Canada to United States border crossing. |
CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD | Canada to United States border crossing. |
CA_US_BLUE_WATER_EDGE_PASS | Ontario, Canada to Michigan, United States border crossing. |
CA_US_CONNEXION | Ontario, Canada to Michigan, United States border crossing. |
CA_US_NEXUS_CARD | Canada to United States border crossing. |
ID_E_TOLL | اندونزی. E-card provided by multiple banks used to pay for tolls. All e-cards via banks are charged the same so only one enum value is needed. Eg - Bank Mandiri https://www.bankmandiri.co.id/e-money - BCA https://www.bca.co.id/flazz - BNI https://www.bni.co.id/id-id/ebanking/tapcash |
IN_FASTAG | هند. |
IN_LOCAL_HP_PLATE_EXEMPT | India, HP state plate exemption. |
JP_ETC | Japan ETC. Electronic wireless system to collect tolls. https://www.go-etc.jp/ |
JP_ETC2 | Japan ETC2.0. New version of ETC with further discount and bidirectional communication between devices on vehicles and antennas on the road. https://www.go-etc.jp/etc2/index.html |
MX_IAVE | Mexico toll pass. https://iave.capufe.gob.mx/#/ |
MX_PASE | Mexico https://www.pase.com.mx |
MX_QUICKPASS | Mexico https://operadoravial.com/quick-pass/ |
MX_SISTEMA_TELEPEAJE_CHIHUAHUA | http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf |
MX_TAG_IAVE | مکزیک |
MX_TAG_TELEVIA | Mexico toll pass company. One of many operating in Mexico City. See additional details at https://www.televia.com.mx . |
MX_TELEVIA | Mexico toll pass company. One of many operating in Mexico City. https://www.televia.com.mx |
MX_VIAPASS | Mexico toll pass. See additional details at https://www.viapass.com.mx/viapass/web_home.aspx . |
US_AL_FREEDOM_PASS | AL, USA. |
US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS | AK, USA. |
US_CA_FASTRAK | CA, USA. |
US_CA_FASTRAK_CAV_STICKER | Indicates driver has any FasTrak pass in addition to the DMV issued Clean Air Vehicle (CAV) sticker. https://www.bayareafastrak.org/en/guide/doINeedFlex.shtml |
US_CO_EXPRESSTOLL | CO, USA. |
US_CO_GO_PASS | CO, USA. |
US_DE_EZPASSDE | DE, USA. |
US_FL_BOB_SIKES_TOLL_BRIDGE_PASS | FL, USA. |
US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD | FL, USA. |
US_FL_EPASS | FL, USA. |
US_FL_GIBA_TOLL_PASS | FL, USA. |
US_FL_LEEWAY | FL, USA. |
US_FL_SUNPASS | FL, USA. |
US_FL_SUNPASS_PRO | FL, USA. |
US_IL_EZPASSIL | IL، ایالات متحده آمریکا |
US_IL_IPASS | IL، ایالات متحده آمریکا |
US_IN_EZPASSIN | در ایالات متحده آمریکا |
US_KS_BESTPASS_HORIZON | KS, USA. |
US_KS_KTAG | KS, USA. |
US_KS_NATIONALPASS | KS, USA. |
US_KS_PREPASS_ELITEPASS | KS, USA. |
US_KY_RIVERLINK | KY, USA. |
US_LA_GEAUXPASS | LA, USA. |
US_LA_TOLL_TAG | LA, USA. |
US_MA_EZPASSMA | MA, USA. |
US_MD_EZPASSMD | MD, USA. |
US_ME_EZPASSME | ME, USA. |
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD | MI, USA. |
US_MI_BCPASS | MI, USA. |
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG | MI, USA. |
US_MI_IQ_PROX_CARD | MI, USA. Deprecated as this pass type no longer exists. |
US_MI_IQ_TAG | MI, USA. |
US_MI_MACKINAC_BRIDGE_MAC_PASS | MI, USA. |
US_MI_NEXPRESS_TOLL | MI, USA. |
US_MN_EZPASSMN | MN, USA. |
US_NC_EZPASSNC | NC, USA. |
US_NC_PEACH_PASS | NC, USA. |
US_NC_QUICK_PASS | NC, USA. |
US_NH_EZPASSNH | NH, USA. |
US_NJ_DOWNBEACH_EXPRESS_PASS | NJ, USA. |
US_NJ_EZPASSNJ | NJ, USA. |
US_NY_EXPRESSPASS | NY, USA. |
US_NY_EZPASSNY | NY, USA. |
US_OH_EZPASSOH | OH, USA. |
US_PA_EZPASSPA | PA, USA. |
US_RI_EZPASSRI | RI, USA. |
US_SC_PALPASS | SC, USA. |
US_TX_AVI_TAG | TX, USA. |
US_TX_BANCPASS | TX, USA. |
US_TX_DEL_RIO_PASS | TX, USA. |
US_TX_EFAST_PASS | TX, USA. |
US_TX_EAGLE_PASS_EXPRESS_CARD | TX, USA. |
US_TX_EPTOLL | TX, USA. |
US_TX_EZ_CROSS | TX, USA. |
US_TX_EZTAG | TX, USA. |
US_TX_FUEGO_TAG | TX, USA. |
US_TX_LAREDO_TRADE_TAG | TX, USA. |
US_TX_PLUSPASS | TX, USA. |
US_TX_TOLLTAG | TX, USA. |
US_TX_TXTAG | TX, USA. |
US_TX_XPRESS_CARD | TX, USA. |
US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD | UT, USA. |
US_VA_EZPASSVA | VA, USA. |
US_WA_BREEZEBY | WA, USA. |
US_WA_GOOD_TO_GO | WA, USA. |
US_WV_EZPASSWV | WV, USA. |
US_WV_MEMORIAL_BRIDGE_TICKETS | WV, USA. |
US_WV_MOV_PASS | WV, USA |
US_WV_NEWELL_TOLL_BRIDGE_TICKET | WV, USA. |
TrafficModel
Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration
field in the response, which contains the predicted time in traffic based on historical averages.
Enums | |
---|---|
TRAFFIC_MODEL_UNSPECIFIED | استفاده نشده If specified, will default to BEST_GUESS . |
BEST_GUESS | Indicates that the returned duration should be the best estimate of travel time given what is known about both historical traffic conditions and live traffic. Live traffic becomes more important the closer the departure_time is to now. |
PESSIMISTIC | Indicates that the returned duration should be longer than the actual travel time on most days, though occasional days with particularly bad traffic conditions may exceed this value. |
OPTIMISTIC | Indicates that the returned duration should be shorter than the actual travel time on most days, though occasional days with particularly good traffic conditions may be faster than this value. |
TransitAgency
A transit agency that operates a transit line.
فیلدها | |
---|---|
name | The name of this transit agency. |
phone_number | The transit agency's locale-specific formatted phone number. |
uri | The transit agency's URI. |
TransitLine
Contains information about the transit line used in this step.
فیلدها | |
---|---|
agencies[] | The transit agency (or agencies) that operates this transit line. |
name | The full name of this transit line, For example, "8 Avenue Local". |
uri | the URI for this transit line as provided by the transit agency. |
color | The color commonly used in signage for this line. Represented in hexadecimal. |
icon_uri | The URI for the icon associated with this line. |
name_short | The short name of this transit line. This name will normally be a line number, such as "M7" or "355". |
text_color | The color commonly used in text on signage for this line. Represented in hexadecimal. |
vehicle | The type of vehicle that operates on this transit line. |
TransitPreferences
Preferences for TRANSIT
based routes that influence the route that is returned.
فیلدها | |
---|---|
allowed_travel_modes[] | A set of travel modes to use when getting a |
routing_preference | A routing preference that, when specified, influences the |
TransitRoutingPreference
Specifies routing preferences for transit routes.
Enums | |
---|---|
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED | No preference specified. |
LESS_WALKING | Indicates that the calculated route should prefer limited amounts of walking. |
FEWER_TRANSFERS | Indicates that the calculated route should prefer a limited number of transfers. |
TransitTravelMode
A set of values used to specify the mode of transit.
Enums | |
---|---|
TRANSIT_TRAVEL_MODE_UNSPECIFIED | No transit travel mode specified. |
BUS | با اتوبوس سفر کنید. |
SUBWAY | Travel by subway. |
TRAIN | Travel by train. |
LIGHT_RAIL | Travel by light rail or tram. |
RAIL | Travel by rail. This is equivalent to a combination of SUBWAY , TRAIN , and LIGHT_RAIL . |
TransitStop
Information about a transit stop.
فیلدها | |
---|---|
name | The name of the transit stop. |
location | The location of the stop expressed in latitude/longitude coordinates. |
TransitVehicle
Information about a vehicle used in transit routes.
فیلدها | |
---|---|
name | The name of this vehicle, capitalized. |
type | The type of vehicle used. |
icon_uri | The URI for an icon associated with this vehicle type. |
local_icon_uri | The URI for the icon associated with this vehicle type, based on the local transport signage. |
TransitVehicleType
The type of vehicles for transit routes.
Enums | |
---|---|
TRANSIT_VEHICLE_TYPE_UNSPECIFIED | استفاده نشده |
BUS | اتوبوس |
CABLE_CAR | A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type GONDOLA_LIFT . |
COMMUTER_TRAIN | راه آهن شهری. |
FERRY | فری |
FUNICULAR | A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other. |
GONDOLA_LIFT | An aerial cable car. |
HEAVY_RAIL | ریل سنگین |
HIGH_SPEED_TRAIN | قطار پر سرعت. |
INTERCITY_BUS | Intercity bus. |
LONG_DISTANCE_TRAIN | Long distance train. |
METRO_RAIL | Light rail transit. |
MONORAIL | Monorail. |
OTHER | All other vehicles. |
RAIL | راه آهن. |
SHARE_TAXI | Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route. |
SUBWAY | Underground light rail. |
TRAM | Above ground light rail. |
TROLLEYBUS | Trolleybus. |
واحدها
A set of values that specify the unit of measure used in the display.
Enums | |
---|---|
UNITS_UNSPECIFIED | Units of measure not specified. Defaults to the unit of measure inferred from the request. |
METRIC | Metric units of measure. |
IMPERIAL | Imperial (English) units of measure. |
VehicleEmissionType
A set of values describing the vehicle's emission type. Applies only to the DRIVE
. RouteTravelMode
Enums | |
---|---|
VEHICLE_EMISSION_TYPE_UNSPECIFIED | No emission type specified. Default to GASOLINE . |
GASOLINE | Gasoline/petrol fueled vehicle. |
ELECTRIC | Electricity powered vehicle. |
HYBRID | Hybrid fuel (such as gasoline + electric) vehicle. |
DIESEL | Diesel fueled vehicle. |
VehicleInfo
Contains the vehicle information, such as the vehicle emission type.
فیلدها | |
---|---|
emission_type | Describes the vehicle's emission type. Applies only to the |
نقطه راه
Encapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.
فیلدها | |
---|---|
via | Marks this waypoint as a milestone rather a stopping point. For each non-via waypoint in the request, the response appends an entry to the |
vehicle_stopover | Indicates that the waypoint is meant for vehicles to stop at, where the intention is to either pickup or drop-off. When you set this value, the calculated route won't include non- |
side_of_road | Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road. When you set this value, the route will pass through the location so that the vehicle can stop at the side of road that the location is biased towards from the center of the road. This option works only for |
Union field location_type . Different ways to represent a location. location_type can be only one of the following: | |
location | A point specified using geographic coordinates, including an optional heading. |
place_id | The POI Place ID associated with the waypoint. |
address | Human readable address or a plus code. See https://plus.codes for details. |