Package google.maps.routing.v2

সূচী

রুট

রাউটস এপিআই।

ComputeRouteMatrix

rpc ComputeRouteMatrix( ComputeRouteMatrixRequest ) returns ( RouteMatrixElement )

এটি উৎস এবং গন্তব্যের একটি তালিকা গ্রহণ করে এবং উৎস ও গন্তব্যের প্রতিটি সমন্বয়ের জন্য রুটের তথ্য সম্বলিত একটি স্ট্রিম ফেরত দেয়।

দ্রষ্টব্য: এই পদ্ধতিতে ইনপুটে একটি রেসপন্স ফিল্ড মাস্ক নির্দিষ্ট করতে হবে। আপনি $fields বা fields ইউআরএল প্যারামিটার ব্যবহার করে, অথবা X-Goog-FieldMask HTTP/gRPC হেডার ব্যবহার করে রেসপন্স ফিল্ড মাস্কটি প্রদান করতে পারেন ( উপলব্ধ ইউআরএল প্যারামিটার এবং হেডারসমূহ দেখুন)। এর ভ্যালুটি হলো কমা দ্বারা পৃথক করা ফিল্ড পাথগুলোর একটি তালিকা। ফিল্ড পাথগুলো কীভাবে তৈরি করতে হয় সে সম্পর্কে বিস্তারিত জানতে এই ডকুমেন্টেশনটি দেখুন।

উদাহরণস্বরূপ, এই পদ্ধতিতে:

  • উপলব্ধ সকল ফিল্ডের ফিল্ড মাস্ক (ম্যানুয়াল পরিদর্শনের জন্য): X-Goog-FieldMask: *
  • রুটের সময়কাল, দূরত্ব, উপাদানের অবস্থা, শর্ত এবং উপাদানের সূচকের ফিল্ড মাস্ক (একটি উদাহরণ উৎপাদন সেটআপ): X-Goog-FieldMask: originIndex,destinationIndex,status,condition,distanceMeters,duration

আপনার ফিল্ড মাস্কে status অন্তর্ভুক্ত করা অত্যন্ত গুরুত্বপূর্ণ, কারণ অন্যথায় সমস্ত মেসেজ 'ওকে' (OK) হিসাবে প্রদর্শিত হবে। গুগল ওয়াইল্ডকার্ড ( * ) রেসপন্স ফিল্ড মাস্কের ব্যবহারকে নিরুৎসাহিত করে, কারণ:

  • আপনার প্রয়োজনীয় ফিল্ডগুলোই শুধু নির্বাচন করলে আমাদের সার্ভারের গণনা চক্র সাশ্রয় হয়, ফলে আমরা আপনাকে কম বিলম্বে ফলাফল ফেরত দিতে পারি।
  • আপনার প্রোডাকশন জবে শুধুমাত্র প্রয়োজনীয় ফিল্ডগুলো নির্বাচন করলে স্থিতিশীল ল্যাটেন্সি পারফরম্যান্স নিশ্চিত হয়। ভবিষ্যতে আমরা আরও রেসপন্স ফিল্ড যোগ করতে পারি, এবং সেই নতুন ফিল্ডগুলোর জন্য অতিরিক্ত কম্পিউটেশন সময়ের প্রয়োজন হতে পারে। আপনি যদি সমস্ত ফিল্ড নির্বাচন করেন, অথবা যদি আপনি টপ লেভেলে সমস্ত ফিল্ড নির্বাচন করেন, তাহলে আপনি পারফরম্যান্সের অবনতি অনুভব করতে পারেন, কারণ আমাদের যোগ করা যেকোনো নতুন ফিল্ড স্বয়ংক্রিয়ভাবে রেসপন্সে অন্তর্ভুক্ত হয়ে যাবে।
  • শুধুমাত্র প্রয়োজনীয় ফিল্ডগুলো নির্বাচন করলে রেসপন্স সাইজ ছোট হয়, এবং এর ফলে নেটওয়ার্ক থ্রুপুট বৃদ্ধি পায়।
কম্পিউটরুটস

rpc ComputeRoutes( ComputeRoutesRequest ) returns ( ComputeRoutesResponse )

টার্মিনাল ও মধ্যবর্তী ওয়েপয়েন্টের একটি সেট দেওয়া থাকলে, এটি প্রধান রুটের পাশাপাশি ঐচ্ছিক বিকল্প রুটগুলোও ফেরত দেয়।

দ্রষ্টব্য: এই পদ্ধতিতে ইনপুটে একটি রেসপন্স ফিল্ড মাস্ক নির্দিষ্ট করতে হবে। আপনি URL প্যারামিটার $fields বা fields ব্যবহার করে, অথবা একটি HTTP/gRPC হেডার X-Goog-FieldMask ব্যবহার করে রেসপন্স ফিল্ড মাস্কটি প্রদান করতে পারেন ( উপলব্ধ URL প্যারামিটার এবং হেডারসমূহ দেখুন)। এর ভ্যালুটি হলো কমা দ্বারা পৃথক করা ফিল্ড পাথগুলোর একটি তালিকা। ফিল্ড পাথগুলো কীভাবে তৈরি করতে হয় সে সম্পর্কে বিস্তারিত ডকুমেন্টেশন দেখুন।

উদাহরণস্বরূপ, এই পদ্ধতিতে:

  • উপলব্ধ সকল ফিল্ডের ফিল্ড মাস্ক (ম্যানুয়াল পরিদর্শনের জন্য): X-Goog-FieldMask: *
  • রুট-স্তরের সময়কাল, দূরত্ব এবং পলিলাইনের ফিল্ড মাস্ক (একটি উদাহরণ প্রোডাকশন সেটআপ): X-Goog-FieldMask: routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline

গুগল ওয়াইল্ডকার্ড ( * ) রেসপন্স ফিল্ড মাস্ক ব্যবহার করতে, অথবা টপ লেভেলে ( routes ) ফিল্ড মাস্ক নির্দিষ্ট করতে নিরুৎসাহিত করে, কারণ:

  • আপনার প্রয়োজনীয় ফিল্ডগুলোই শুধু নির্বাচন করলে আমাদের সার্ভারের গণনা চক্র সাশ্রয় হয়, ফলে আমরা আপনাকে কম বিলম্বে ফলাফল ফেরত দিতে পারি।
  • আপনার প্রোডাকশন জবে শুধুমাত্র প্রয়োজনীয় ফিল্ডগুলো নির্বাচন করলে স্থিতিশীল ল্যাটেন্সি পারফরম্যান্স নিশ্চিত হয়। ভবিষ্যতে আমরা আরও রেসপন্স ফিল্ড যোগ করতে পারি, এবং সেই নতুন ফিল্ডগুলোর জন্য অতিরিক্ত কম্পিউটেশন সময়ের প্রয়োজন হতে পারে। আপনি যদি সমস্ত ফিল্ড নির্বাচন করেন, অথবা যদি আপনি টপ লেভেলে সমস্ত ফিল্ড নির্বাচন করেন, তাহলে আপনি পারফরম্যান্সের অবনতি অনুভব করতে পারেন, কারণ আমাদের যোগ করা যেকোনো নতুন ফিল্ড স্বয়ংক্রিয়ভাবে রেসপন্সে অন্তর্ভুক্ত হয়ে যাবে।
  • শুধুমাত্র প্রয়োজনীয় ফিল্ডগুলো নির্বাচন করলে রেসপন্স সাইজ ছোট হয়, এবং এর ফলে নেটওয়ার্ক থ্রুপুট বৃদ্ধি পায়।

ComputeRouteMatrixRequest

ComputeRouteMatrix অনুরোধ বার্তা

ক্ষেত্র
origins[]

RouteMatrixOrigin

প্রয়োজনীয়। উৎসসমূহের অ্যারে, যা রেসপন্স ম্যাট্রিক্সের সারিগুলো নির্ধারণ করে। উৎস এবং গন্তব্যের কার্ডিনালিটির ক্ষেত্রে বেশ কিছু আকারের সীমাবদ্ধতা প্রযোজ্য:

  • place_id বা address হিসেবে নির্দিষ্ট করা উৎসের সংখ্যা এবং গন্তব্যের সংখ্যার যোগফল ৫০-এর বেশি হতে পারবে না।
  • কোনো অবস্থাতেই উৎস সংখ্যা × গন্তব্য সংখ্যার গুণফল ৬২৫-এর বেশি হবে না।
  • যদি routing_preference-কে TRAFFIC_AWARE_OPTIMAL এ সেট করা থাকে, তাহলে উৎসের সংখ্যা × গন্তব্যের সংখ্যার গুণফল ১০০-এর বেশি হওয়া যাবে না।
  • যদি travel_mode-কে TRANSIT হিসেবে সেট করা হয়, তাহলে যাত্রার উৎস সংখ্যা × গন্তব্য সংখ্যার গুণফল ১০০-এর বেশি হওয়া যাবে না।
destinations[]

RouteMatrixDestination

প্রয়োজনীয়। গন্তব্যস্থলসমূহের অ্যারে, যা রেসপন্স ম্যাট্রিক্সের কলামগুলো নির্ধারণ করে।

travel_mode

RouteTravelMode

ঐচ্ছিক। পরিবহনের মাধ্যম নির্দিষ্ট করে।

routing_preference

RoutingPreference

ঐচ্ছিক। রুটটি কীভাবে গণনা করা হবে তা নির্দিষ্ট করে। সার্ভার রুটটি গণনা করার জন্য নির্বাচিত রাউটিং প্রেফারেন্স ব্যবহার করার চেষ্টা করে। যদি রাউটিং প্রেফারেন্সের ফলে কোনো ত্রুটি হয় বা অতিরিক্ত দীর্ঘ ল্যাটেন্সি দেখা দেয়, তাহলে একটি ত্রুটি বার্তা ফেরত দেওয়া হয়। আপনি এই অপশনটি শুধুমাত্র তখনই নির্দিষ্ট করতে পারবেন যখন travel_mode হবে DRIVE বা TWO_WHEELER , অন্যথায় অনুরোধটি ব্যর্থ হবে।

departure_time

Timestamp

ঐচ্ছিক। প্রস্থানের সময়। আপনি যদি এই মানটি সেট না করেন, তাহলে এই মানটি আপনার অনুরোধ করার সময় হিসেবে ডিফল্ট হবে। দ্রষ্টব্য: আপনি শুধুমাত্র তখনই অতীতের কোনো departure_time নির্দিষ্ট করতে পারবেন, যখন RouteTravelMode TRANSIT এ সেট করা থাকবে।

arrival_time

Timestamp

ঐচ্ছিক। পৌঁছানোর সময়। দ্রষ্টব্য: শুধুমাত্র তখনই সেট করা যাবে যখন RouteTravelMode TRANSIT এ সেট করা থাকবে। আপনি departure_time অথবা arrival_time মধ্যে যেকোনো একটি উল্লেখ করতে পারেন, কিন্তু উভয়ই নয়।

language_code

string

ঐচ্ছিক। BCP-47 ভাষা কোড, যেমন "en-US" বা "sr-Latn"। আরও তথ্যের জন্য, ইউনিকোড লোকেল আইডেন্টিফায়ার দেখুন। সমর্থিত ভাষাগুলির তালিকার জন্য ল্যাঙ্গুয়েজ সাপোর্ট দেখুন। আপনি যখন এই মানটি প্রদান করেন না, তখন প্রথম অরিজিনের অবস্থান থেকে প্রদর্শিত ভাষা অনুমান করা হয়।

region_code

string

ঐচ্ছিক। অঞ্চল কোড, যা একটি ccTLD ("টপ-লেভেল ডোমেইন") দুই-অক্ষরের মান হিসাবে নির্দিষ্ট করা হয়। আরও তথ্যের জন্য কান্ট্রি কোড টপ-লেভেল ডোমেইন দেখুন।

units

Units

ঐচ্ছিক। প্রদর্শন ক্ষেত্রগুলির জন্য পরিমাপের একক নির্দিষ্ট করে।

extra_computations[]

ExtraComputation

ঐচ্ছিক। অতিরিক্ত গণনার একটি তালিকা যা অনুরোধটি সম্পূর্ণ করতে ব্যবহৃত হতে পারে। দ্রষ্টব্য: এই অতিরিক্ত গণনাগুলো রেসপন্সে অতিরিক্ত ফিল্ড ফেরত দিতে পারে। রেসপন্সে ফেরত পাওয়ার জন্য এই অতিরিক্ত ফিল্ডগুলো অবশ্যই ফিল্ড মাস্কেও উল্লেখ করতে হবে।

traffic_model

TrafficModel

ঐচ্ছিক। ট্র্যাফিকের সময় গণনা করার জন্য ব্যবহৃত অনুমানগুলি নির্দিষ্ট করে। এই সেটিংটি RouteMatrixElement এর duration ফিল্ডে ফেরত আসা মানকে প্রভাবিত করে, যেখানে ঐতিহাসিক গড়ের উপর ভিত্তি করে ট্র্যাফিকের পূর্বাভাসিত সময় থাকে। TrafficModel শুধুমাত্র সেইসব অনুরোধের জন্য উপলব্ধ, যেগুলিতে RoutingPreference TRAFFIC_AWARE_OPTIMAL এবং RouteTravelMode কে DRIVE হিসেবে সেট করা হয়েছে। যদি ট্র্যাফিকের অনুরোধ করা হয় এবং TrafficModel নির্দিষ্ট করা না থাকে, তবে এটি ডিফল্টরূপে BEST_GUESS ব্যবহার করে।

transit_preferences

TransitPreferences

ঐচ্ছিক। এটি এমন পছন্দসমূহ নির্দিষ্ট করে যা TRANSIT রুটের জন্য প্রত্যাবর্তিত পথকে প্রভাবিত করে। দ্রষ্টব্য: আপনি শুধুমাত্র তখনই একটি transit_preferences নির্দিষ্ট করতে পারবেন যখন RouteTravelMode TRANSIT এ সেট করা থাকে।

অতিরিক্ত গণনা

অনুরোধটি সম্পন্ন করার সময় অতিরিক্ত গণনা সম্পাদন করতে হবে।

এনাম
EXTRA_COMPUTATION_UNSPECIFIED ব্যবহৃত নয়। এই মান সম্বলিত অনুরোধগুলি ব্যর্থ হবে।
TOLLS ম্যাট্রিক্স উপাদান(গুলি)র জন্য টোল তথ্য।

ComputeRoutesRequest

ComputeRoutes অনুরোধ বার্তা।

ক্ষেত্র
origin

Waypoint

আবশ্যক। উৎস ওয়েপয়েন্ট।

destination

Waypoint

আবশ্যক। গন্তব্য ওয়েপয়েন্ট।

intermediates[]

Waypoint

ঐচ্ছিক। যাত্রাপথের বিভিন্ন পয়েন্টের একটি সেট (টার্মিনাল পয়েন্ট বাদে), যেখানে থামা বা পাশ কাটিয়ে যাওয়া যায়। সর্বোচ্চ ২৫টি মধ্যবর্তী পয়েন্ট সমর্থন করা হয়।

travel_mode

RouteTravelMode

ঐচ্ছিক। পরিবহনের মাধ্যম নির্দিষ্ট করে।

routing_preference

RoutingPreference

ঐচ্ছিক। রুটটি কীভাবে গণনা করা হবে তা নির্দিষ্ট করে। সার্ভার রুটটি গণনা করার জন্য নির্বাচিত রাউটিং প্রেফারেন্স ব্যবহার করার চেষ্টা করে। যদি রাউটিং প্রেফারেন্সের ফলে কোনো ত্রুটি হয় বা অতিরিক্ত দীর্ঘ ল্যাটেন্সি দেখা দেয়, তাহলে একটি ত্রুটি বার্তা ফেরত দেওয়া হয়। আপনি এই অপশনটি শুধুমাত্র তখনই নির্দিষ্ট করতে পারবেন যখন travel_mode হবে DRIVE বা TWO_WHEELER , অন্যথায় অনুরোধটি ব্যর্থ হবে।

polyline_quality

PolylineQuality

ঐচ্ছিক। পলিলাইনের গুণমান সম্পর্কে আপনার পছন্দ নির্দিষ্ট করে।

polyline_encoding

PolylineEncoding

ঐচ্ছিক। পলিলাইনের জন্য পছন্দের এনকোডিং নির্দিষ্ট করে।

departure_time

Timestamp

ঐচ্ছিক। প্রস্থানের সময়। আপনি যদি এই মানটি সেট না করেন, তাহলে এই মানটি আপনার অনুরোধ করার সময় হিসেবে ডিফল্ট হবে। দ্রষ্টব্য: আপনি শুধুমাত্র তখনই অতীতের কোনো departure_time নির্দিষ্ট করতে পারবেন যখন RouteTravelMode TRANSIT এ সেট করা থাকবে। ট্রানজিট ট্রিপগুলো অতীতের ৭ দিন পর্যন্ত অথবা ভবিষ্যতের ১০০ দিন পর্যন্ত উপলব্ধ থাকে।

arrival_time

Timestamp

ঐচ্ছিক। পৌঁছানোর সময়। দ্রষ্টব্য: অনুরোধে TRANSIT ব্যতীত অন্য কোনো RouteTravelMode উল্লেখ করা হলে এই ক্ষেত্রটি উপেক্ষা করা হয়। আপনি departure_time অথবা arrival_time যেকোনো একটি উল্লেখ করতে পারেন, কিন্তু উভয়ই নয়। ট্রানজিট ট্রিপগুলি অতীতের ৭ দিন পর্যন্ত অথবা ভবিষ্যতের ১০০ দিন পর্যন্ত উপলব্ধ থাকে।

compute_alternative_routes

bool

ঐচ্ছিক। মূল রুটের পাশাপাশি বিকল্প রুট গণনা করা হবে কিনা তা নির্দিষ্ট করে। যেসব অনুরোধে মধ্যবর্তী ওয়েপয়েন্ট থাকে, সেগুলোর জন্য কোনো বিকল্প রুট ফেরত দেওয়া হয় না।

route_modifiers

RouteModifiers

ঐচ্ছিক। কিছু শর্তের সমষ্টি যা রুট গণনার পদ্ধতিকে প্রভাবিত করে।

language_code

string

ঐচ্ছিক। BCP-47 ভাষা কোড, যেমন "en-US" বা "sr-Latn"। আরও তথ্যের জন্য, ইউনিকোড লোকেল আইডেন্টিফায়ার দেখুন। সমর্থিত ভাষাগুলির তালিকার জন্য ল্যাঙ্গুয়েজ সাপোর্ট দেখুন। আপনি যখন এই মানটি প্রদান করেন না, তখন রাউট অনুরোধের অবস্থান থেকে প্রদর্শিত ভাষা অনুমান করা হয়।

region_code

string

ঐচ্ছিক। অঞ্চল কোড, যা একটি ccTLD ("টপ-লেভেল ডোমেইন") দুই-অক্ষরের মান হিসাবে নির্দিষ্ট করা হয়। আরও তথ্যের জন্য কান্ট্রি কোড টপ-লেভেল ডোমেইন দেখুন।

units

Units

ঐচ্ছিক। এটি ডিসপ্লে ফিল্ডগুলির জন্য পরিমাপের একক নির্দিষ্ট করে। এই ফিল্ডগুলির মধ্যে NavigationInstruction এর instruction ফিল্ড অন্তর্ভুক্ত। রুট, লেগ, স্টেপ ডিসটেন্স এবং ডিউরেশনের জন্য ব্যবহৃত পরিমাপের একক এই মান দ্বারা প্রভাবিত হয় না। আপনি যদি এই মানটি প্রদান না করেন, তাহলে ডিসপ্লে এককগুলি প্রথম অরিজিনের অবস্থান থেকে অনুমান করা হয়।

optimize_waypoint_order

bool

ঐচ্ছিক। যদি এটি 'true' সেট করা হয়, তাহলে পরিষেবাটি নির্দিষ্ট মধ্যবর্তী ওয়েপয়েন্টগুলির ক্রম পরিবর্তন করে রুটের সামগ্রিক খরচ কমানোর চেষ্টা করে। যদি কোনো মধ্যবর্তী ওয়েপয়েন্ট একটি ' via ' ওয়েপয়েন্ট হয়, তাহলে অনুরোধটি ব্যর্থ হবে। নতুন ক্রম খুঁজে পেতে ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index ব্যবহার করুন। যদি X-Goog-FieldMask হেডারে ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index এর জন্য অনুরোধ করা না হয়, তাহলে অনুরোধটি ব্যর্থ হবে। যদি optimize_waypoint_order 'false' সেট করা হয়, তাহলে ComputeRoutesResponse.optimized_intermediate_waypoint_index খালি থাকবে।

requested_reference_routes[]

ReferenceRoute

ঐচ্ছিক। ডিফল্ট রুটের পাশাপাশি অনুরোধের অংশ হিসেবে কোন রেফারেন্স রুটগুলো গণনা করা হবে তা নির্দিষ্ট করে। রেফারেন্স রুট হলো এমন একটি রুট যার রুট গণনার উদ্দেশ্য ডিফল্ট রুটের থেকে ভিন্ন। উদাহরণস্বরূপ, একটি FUEL_EFFICIENT রেফারেন্স রুট গণনায় বিভিন্ন প্যারামিটার বিবেচনা করা হয় যা একটি সর্বোত্তম জ্বালানি-সাশ্রয়ী রুট তৈরি করবে। এই বৈশিষ্ট্যটি ব্যবহার করার সময়, ফলাফলস্বরূপ প্রাপ্ত রুটগুলোতে route_labels খুঁজুন।

extra_computations[]

ExtraComputation

ঐচ্ছিক। অতিরিক্ত গণনার একটি তালিকা যা অনুরোধটি সম্পূর্ণ করতে ব্যবহৃত হতে পারে। দ্রষ্টব্য: এই অতিরিক্ত গণনাগুলো রেসপন্সে অতিরিক্ত ফিল্ড ফেরত দিতে পারে। রেসপন্সে ফেরত পাওয়ার জন্য এই অতিরিক্ত ফিল্ডগুলো অবশ্যই ফিল্ড মাস্কেও উল্লেখ করতে হবে।

traffic_model

TrafficModel

ঐচ্ছিক। ট্র্যাফিকের সময় গণনা করার জন্য ব্যবহৃত অনুমানগুলি নির্দিষ্ট করে। এই সেটিংটি Route এবং RouteLeg এর duration ফিল্ডে ফেরত আসা মানকে প্রভাবিত করে, যেখানে ঐতিহাসিক গড়ের উপর ভিত্তি করে ট্র্যাফিকের পূর্বাভাসিত সময় থাকে। TrafficModel শুধুমাত্র সেইসব অনুরোধের জন্য উপলব্ধ, যেগুলিতে RoutingPreference TRAFFIC_AWARE_OPTIMAL এবং RouteTravelMode কে DRIVE হিসেবে সেট করা হয়েছে। যদি ট্র্যাফিকের অনুরোধ করা হয় এবং TrafficModel নির্দিষ্ট করা না থাকে, তবে এটি ডিফল্টরূপে BEST_GUESS ব্যবহার করে।

transit_preferences

TransitPreferences

ঐচ্ছিক। এটি এমন পছন্দসমূহ নির্দিষ্ট করে যা TRANSIT রুটের জন্য প্রত্যাবর্তিত পথকে প্রভাবিত করে। দ্রষ্টব্য: আপনি শুধুমাত্র তখনই একটি transit_preferences নির্দিষ্ট করতে পারবেন যখন RouteTravelMode TRANSIT এ সেট করা থাকে।

অতিরিক্ত গণনা

অনুরোধটি সম্পন্ন করার জন্য অতিরিক্ত গণনা করতে হবে। ভবিষ্যতে অতিরিক্ত মান যোগ করা হতে পারে।

এনাম
EXTRA_COMPUTATION_UNSPECIFIED ব্যবহৃত নয়। এই মান সম্বলিত অনুরোধগুলি ব্যর্থ হবে।
TOLLS রুট(গুলো)র জন্য টোলের তথ্য।
FUEL_CONSUMPTION রুট(গুলো)র জন্য আনুমানিক জ্বালানি খরচ।
TRAFFIC_ON_POLYLINE রুট(গুলি)র জন্য ট্র্যাফিক-সচেতন পলিলাইন।
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS NavigationInstruction একটি ফরম্যাট করা HTML টেক্সট স্ট্রিং হিসেবে উপস্থাপন করা হয়েছে। এই বিষয়বস্তুটি হুবহু পড়ার জন্য। এটি শুধুমাত্র প্রদর্শনের জন্য। প্রোগ্রামগতভাবে এটি পার্স করবেন না।
FLYOVER_INFO_ON_POLYLINE রুট(গুলি)র জন্য ফ্লাইওভারের তথ্য। এই তথ্যটি পাওয়ার জন্য routes.polyline_details.flyover_info ফিল্ডমাস্কটি অবশ্যই নির্দিষ্ট করতে হবে। এই ডেটা বর্তমানে শুধুমাত্র ভারতের নির্দিষ্ট কিছু মেট্রোর জন্য সরবরাহ করা হবে। এই ফিচারটি পরীক্ষামূলক, এবং SKU/চার্জ পরিবর্তন সাপেক্ষ।
NARROW_ROAD_INFO_ON_POLYLINE রুট(গুলি)র জন্য সংকীর্ণ রাস্তার তথ্য। এই তথ্যটি পাওয়ার জন্য routes.polyline_details.narrow_road_info ফিল্ডমাস্কটি অবশ্যই নির্দিষ্ট করতে হবে। এই ডেটা বর্তমানে শুধুমাত্র ভারতের নির্দিষ্ট কিছু মেট্রো শহরের জন্য সরবরাহ করা হবে। এই ফিচারটি পরীক্ষামূলক, এবং SKU/চার্জ পরিবর্তন সাপেক্ষ।
TUNNEL_INFO_ON_POLYLINE রুট(গুলি)র জন্য টানেলের তথ্য। এই তথ্যটি পাওয়ার জন্য routes.polyline_details.tunnel_info ফিল্ডমাস্কটি অবশ্যই নির্দিষ্ট করতে হবে।
BRIDGE_INFO_ON_POLYLINE রুট(গুলি)র জন্য ব্রিজের তথ্য। এই তথ্যটি পাওয়ার জন্য routes.polyline_details.bridge_info ফিল্ডমাস্কটি অবশ্যই নির্দিষ্ট করতে হবে।
SKYWAY_INFO_ON_POLYLINE রুট(গুলি)র জন্য স্কাইওয়ে তথ্য। এই তথ্যটি পাওয়ার জন্য routes.polyline_details.skyway_info ফিল্ডমাস্কটি অবশ্যই নির্দিষ্ট করতে হবে।

রেফারেন্স রুট

ComputeRoutesRequest-এ একটি সমর্থিত রেফারেন্স রুট।

এনাম
REFERENCE_ROUTE_UNSPECIFIED ব্যবহৃত নয়। এই মান সম্বলিত অনুরোধগুলি ব্যর্থ হয়।
FUEL_EFFICIENT জ্বালানি সাশ্রয়ী পথ।
SHORTER_DISTANCE

কম দূরত্বের পথ। এটি একটি পরীক্ষামূলক বৈশিষ্ট্য।

DRIVE অনুরোধের ক্ষেত্রে, এই ফিচারটি ড্রাইভিং আরামের চেয়ে কম দূরত্বকে বেশি অগ্রাধিকার দেয়। উদাহরণস্বরূপ, এটি হাইওয়ের পরিবর্তে স্থানীয় রাস্তা পছন্দ করতে পারে, কাঁচা রাস্তা নিতে পারে, পার্কিং লটের মধ্যে দিয়ে যেতে পারে, ইত্যাদি। এই ফিচারটি এমন কোনো চালনা শনাক্ত করে না, যা গুগল ম্যাপসের মতে অবৈধ।

BICYCLE এবং TWO_WHEELER অনুরোধের ক্ষেত্রে, এই বৈশিষ্ট্যটি সেইসব রুটের অনুরূপ রুট ফেরত দেয় যা আপনি requested_reference_routes নির্দিষ্ট না করলে ফেরত আসে।

এই ফিচারটি অন্য কোনো ভ্রমণ মোড, মধ্যবর্তী ওয়েপয়েন্ট, বা optimize_waypoint_order সাথে সামঞ্জস্যপূর্ণ নয়; এই ধরনের অনুরোধ ব্যর্থ হবে। তবে, আপনি এটি যেকোনো routing_preference সাথে ব্যবহার করতে পারেন।

ComputeRoutesResponse

ComputeRoutes প্রতিক্রিয়া বার্তাটি তৈরি করে।

ক্ষেত্র
routes[]

Route

আপনি যখন compute_alternatives_routes নির্দিষ্ট করেন, তখন এতে গণনাকৃত রুটগুলির (সর্বোচ্চ তিনটি) একটি অ্যারে থাকে, এবং যখন তা করেন না, তখন এতে কেবল একটি রুট থাকে। যখন এই অ্যারেতে একাধিক এন্ট্রি থাকে, তখন প্রথমটিই সবচেয়ে প্রস্তাবিত রুট। যদি অ্যারেটি খালি থাকে, তাহলে এর অর্থ হলো কোনো রুট খুঁজে পাওয়া যায়নি।

fallback_info

FallbackInfo

কিছু ক্ষেত্রে, যখন সার্ভার সমস্ত ইনপুট পছন্দ অনুযায়ী রাউটের ফলাফল গণনা করতে পারে না, তখন এটি গণনার জন্য একটি ভিন্ন পদ্ধতি ব্যবহার করতে পারে। যখন ফলব্যাক মোড ব্যবহার করা হয়, তখন এই ফিল্ডটিতে ফলব্যাক প্রতিক্রিয়া সম্পর্কে বিস্তারিত তথ্য থাকে। অন্যথায় এই ফিল্ডটি সেট করা থাকে না।

geocoding_results

GeocodingResults

ঠিকানা হিসাবে নির্দিষ্ট করা ওয়েপয়েন্টগুলির জন্য জিওকোডিং প্রতিক্রিয়া তথ্য ধারণ করে।

ফলব্যাকইনফো

কীভাবে এবং কেন একটি ফলব্যাক ফলাফল ব্যবহার করা হয়েছিল, সে সম্পর্কিত তথ্য। যদি এই ফিল্ডটি সেট করা থাকে, তাহলে এর অর্থ হলো সার্ভারটি ফলব্যাক হিসেবে আপনার পছন্দের মোডের পরিবর্তে একটি ভিন্ন রাউটিং মোড ব্যবহার করেছে।

ক্ষেত্র
routing_mode

FallbackRoutingMode

প্রতিক্রিয়ার জন্য ব্যবহৃত রাউটিং মোড। যদি ফলব্যাক সক্রিয় হয়, তবে মোডটি মূল ক্লায়েন্ট অনুরোধে সেট করা রাউটিং পছন্দ থেকে ভিন্ন হতে পারে।

reason

FallbackReason

মূল প্রতিক্রিয়ার পরিবর্তে ফলব্যাক প্রতিক্রিয়া ব্যবহার করার কারণ। এই ক্ষেত্রটি শুধুমাত্র তখনই পূরণ করা হয় যখন ফলব্যাক মোড সক্রিয় হয় এবং ফলব্যাক প্রতিক্রিয়া ফেরত দেওয়া হয়।

ফলব্যাকরিজন

ফলব্যাক প্রতিক্রিয়া ব্যবহারের কারণসমূহ।

এনাম
FALLBACK_REASON_UNSPECIFIED ফলব্যাকের কোনো কারণ নির্দিষ্ট করা হয়নি।
SERVER_ERROR আপনার পছন্দের রাউটিং মোড ব্যবহার করে রুট গণনা করার সময় একটি সার্ভার ত্রুটি ঘটেছে, কিন্তু আমরা একটি বিকল্প মোডের মাধ্যমে গণনা করা ফলাফলটি ফেরত দিতে সক্ষম হয়েছি।
LATENCY_EXCEEDED আমরা আপনার পছন্দের রাউটিং মোডে সময়মতো গণনাটি শেষ করতে পারিনি, কিন্তু একটি বিকল্প মোডে গণনা করা ফলাফল প্রদান করতে সক্ষম হয়েছি।

ফলব্যাক রাউটিং মোড

ফেরত আসা ফলব্যাক প্রতিক্রিয়ার জন্য ব্যবহৃত প্রকৃত রাউটিং মোড।

এনাম
FALLBACK_ROUTING_MODE_UNSPECIFIED ব্যবহৃত হয়নি।
FALLBACK_TRAFFIC_UNAWARE এটি নির্দেশ করে যে প্রতিক্রিয়াটি গণনা করতে TRAFFIC_UNAWARE RoutingPreference ব্যবহার করা হয়েছিল।
FALLBACK_TRAFFIC_AWARE এটি নির্দেশ করে যে প্রতিক্রিয়াটি গণনা করতে TRAFFIC_AWARE RoutingPreference ব্যবহার করা হয়েছিল।

জিওকোডেডওয়েপয়েন্ট

ওয়েপয়েন্ট হিসেবে ব্যবহৃত অবস্থানগুলোর বিবরণ। শুধুমাত্র ঠিকানা ওয়েপয়েন্টগুলোর জন্য এটি পূরণ করা হয়। ঠিকানাটি কীসে জিওকোড করা হয়েছিল তা নির্ধারণের উদ্দেশ্যে জিওকোডিং ফলাফলের বিবরণ অন্তর্ভুক্ত থাকে।

ক্ষেত্র
geocoder_status

Status

জিওকোডিং অপারেশনের ফলে প্রাপ্ত স্ট্যাটাস কোড নির্দেশ করে।

type[]

string

ফলাফলের ধরণ, যা শূন্য বা ততোধিক টাইপ ট্যাগ আকারে থাকতে পারে। সমর্থিত ধরণসমূহ: ঠিকানা ধরণ এবং ঠিকানা উপাদান ধরণ

partial_match

bool

এটি নির্দেশ করে যে জিওকোডারটি মূল অনুরোধের জন্য একটি সঠিক মিল খুঁজে পায়নি, যদিও এটি অনুরোধ করা ঠিকানার একটি অংশের সাথে মেলাতে সক্ষম হয়েছে। আপনি মূল অনুরোধটিতে কোনো বানান ভুল এবং/অথবা অসম্পূর্ণ ঠিকানা আছে কিনা তা খতিয়ে দেখতে পারেন।

place_id

string

এই ফলাফলের স্থান আইডি।

intermediate_waypoint_request_index

int32

অনুরোধে সংশ্লিষ্ট মধ্যবর্তী ওয়েপয়েন্টের সূচক। শুধুমাত্র তখনই পূরণ করা হয় যখন সংশ্লিষ্ট ওয়েপয়েন্টটি একটি মধ্যবর্তী ওয়েপয়েন্ট হয়।

জিওকোডিং ফলাফল

উৎস, গন্তব্য এবং মধ্যবর্তী ওয়েপয়েন্টগুলোর জন্য GeocodedWaypoints রয়েছে। শুধুমাত্র ঠিকানা ওয়েপয়েন্টগুলোর জন্য এটি পূরণ করা হয়।

ক্ষেত্র
origin

GeocodedWaypoint

উৎস জিওকোডেড ওয়েপয়েন্ট।

destination

GeocodedWaypoint

গন্তব্য জিওকোডেড ওয়েপয়েন্ট।

intermediates[]

GeocodedWaypoint

মধ্যবর্তী জিওকোডেড ওয়েপয়েন্টগুলির একটি তালিকা, যার প্রতিটিতে একটি সূচক ক্ষেত্র রয়েছে যা অনুরোধে নির্দিষ্ট করা ক্রম অনুসারে ওয়েপয়েন্টটির শূন্য-ভিত্তিক অবস্থানের সাথে সঙ্গতিপূর্ণ।

স্থানীয় সময়

সময়ের স্থানিক বর্ণনা।

ক্ষেত্র
time

LocalizedText

একটি নির্দিষ্ট টাইম জোনে স্ট্রিং হিসেবে উল্লেখিত সময়।

time_zone

string

এতে সময় অঞ্চলটি থাকে। এর মান হলো IANA সময় অঞ্চল ডেটাবেসে সংজ্ঞায়িত সময় অঞ্চলের নাম, যেমন "America/New_York"।

অবস্থান

একটি অবস্থানকে অন্তর্ভুক্ত করে (একটি ভৌগোলিক বিন্দু এবং একটি ঐচ্ছিক শিরোনাম)।

ক্ষেত্র
lat_lng

LatLng

ওয়েপয়েন্টটির ভৌগোলিক স্থানাঙ্ক।

heading

Int32Value

যানবাহন চলাচলের দিকের সাথে সম্পর্কিত কম্পাস হেডিং। এই মানটি যাত্রী ওঠানো এবং নামানোর জন্য রাস্তার পাশ নির্দিষ্ট করে। হেডিং-এর মান ০ থেকে ৩৬০ পর্যন্ত হতে পারে, যেখানে ০ সরাসরি উত্তর দিক, ৯০ সরাসরি পূর্ব দিক ইত্যাদি নির্দেশ করে। আপনি এই ফিল্ডটি শুধুমাত্র DRIVE এবং TWO_WHEELER RouteTravelMode জন্য ব্যবহার করতে পারবেন।

কৌশল

একগুচ্ছ মান যা বর্তমান ধাপের জন্য করণীয় নেভিগেশন অ্যাকশন নির্দিষ্ট করে (যেমন, বামে মোড় নেওয়া, একীভূত হওয়া, বা সোজা যাওয়া)।

এনাম
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 রাস্তার নাম পরিবর্তন বোঝাতে ব্যবহৃত হয়।

একটি RouteLegStep এর জন্য নেভিগেশন নির্দেশাবলী অন্তর্ভুক্ত করে।

ক্ষেত্র
maneuver

Maneuver

বর্তমান ধাপের জন্য দিকনির্দেশনা এখানে উল্লেখ করা থাকে (যেমন, বামে মোড় নিন, মার্জ করুন, বা সোজা যান)। কোন আইকনটি প্রদর্শন করা হবে, তা এই ফিল্ডটি নির্ধারণ করে।

instructions

string

এই ধাপটি সম্পন্ন করার জন্য নির্দেশাবলী।

পলিলাইন

একটি এনকোডেড পলিলাইনকে আবদ্ধ করে।

ক্ষেত্র
ইউনিয়ন ফিল্ড polyline_type পলিলাইনের ধরনকে আবদ্ধ করে। এর ডিফল্ট মান হলো `encoded_polyline`। polyline_type নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
encoded_polyline

string

পলিলাইন এনকোডিং অ্যালগরিদম ব্যবহার করে পলিলাইনের স্ট্রিং এনকোডিং

geo_json_linestring

Struct

GeoJSON LineString ফরম্যাট ব্যবহার করে একটি পলিলাইন নির্দিষ্ট করে।

পলিলাইন বিবরণ

একটি পলিলাইনের প্রদত্ত সূচক বা সংলগ্ন অংশের সাথে সম্পর্কিত বিবরণ। P_0, P_1, ... , P_N (শূন্য-ভিত্তিক সূচক) বিন্দুবিশিষ্ট একটি পলিলাইনের ক্ষেত্রে, PolylineDetails একটি ব্যবধি এবং এর সাথে সম্পর্কিত মেটাডেটা নির্ধারণ করে।

ক্ষেত্র
tunnel_info[]

TunnelInfo

পলিলাইন বরাবর টানেলের বিবরণ। এই ফিল্ডটি পূরণ করা হয় যদি অনুরোধে avoid_tunnels রুট মডিফায়ারটি নির্দিষ্ট করা থাকে এবং ফলস্বরূপ রুটটি টানেলগুলি এড়াতে ব্যর্থ হয়, অথবা যদি extra_computationsTUNNEL_INFO_ON_POLYLINE নির্দিষ্ট করা থাকে এবং রুটটিতে টানেল থাকে।

restriction_info[]

RestrictionInfo

পলিলাইন বরাবর বিধিনিষেধের বিবরণ। এই ফিল্ডটি শুধুমাত্র তখনই পূরণ করা হয়, যখন কোনো অনুরোধে vehicle_info রুট মডিফায়ারটি নির্দিষ্ট করা থাকে এবং ফলস্বরূপ রুটটিতে একটি প্রযোজ্য বিধিনিষেধ থাকে। অন্যথায়, এই ফিল্ডটি অব্যবহৃত থাকে।

flyover_info[]

FlyoverInfo

পলিলাইন বরাবর ফ্লাইওভারের বিবরণ।

narrow_road_info[]

NarrowRoadInfo

পলিলাইন বরাবর সরু রাস্তার বিবরণ।

bridge_info[]

BridgeInfo

পলিলাইন বরাবর সেতুর বিবরণ।

skyway_info[]

SkywayInfo

পলিলাইন বরাবর স্কাইওয়ের বিবরণ।

ব্রিজইনফো

পলিলাইন বরাবর সেতুগুলো সম্পর্কিত তথ্য ধারণ করে।

ক্ষেত্র
bridge_presence

RoadFeatureState

পলিলাইনের কোনো নির্দিষ্ট অংশে সেতু আছে কি না, তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর সেতু সম্পর্কিত তথ্যের অবস্থান।

ফ্লাইওভারইনফো

পলিলাইন বরাবর ফ্লাইওভার সম্পর্কিত তথ্য অন্তর্ভুক্ত করে।

ক্ষেত্র
flyover_presence

RoadFeatureState

শুধুমাত্র আউটপুট। পলিলাইনের কোনো নির্দিষ্ট অংশে ফ্লাইওভার আছে কি না, তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর ফ্লাইওভার সম্পর্কিত তথ্যের অবস্থান।

সংকীর্ণ সড়ক তথ্য

পলিলাইন বরাবর সরু রাস্তাগুলোর তথ্য ধারণ করে।

ক্ষেত্র
narrow_road_presence

RoadFeatureState

শুধুমাত্র আউটপুট। পলিলাইনের কোনো নির্দিষ্ট অংশে সরু রাস্তা আছে কিনা তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর সংকীর্ণ রাস্তা সম্পর্কিত তথ্যের অবস্থান।

পলিলাইনপয়েন্ট সূচক

একটি পলিলাইন ডিটেলের শুরু এবং শেষের ইন্ডেক্সকে অন্তর্ভুক্ত করে। যেসব ক্ষেত্রে ডেটা একটিমাত্র পয়েন্টকে নির্দেশ করে, সেখানে start_index এবং end_index সমান হবে।

ক্ষেত্র
start_index

int32

পলিলাইনে এই বিবরণের শুরুর সূচক।

end_index

int32

পলিলাইনে এই বিবরণের শেষ সূচক।

সীমাবদ্ধতার তথ্য

পলিলাইন বরাবর বিভিন্ন সীমাবদ্ধতা সম্পর্কিত তথ্য ধারণ করে।

ক্ষেত্র
restriction_presence

RoadFeatureState

শুধুমাত্র আউটপুট। পলিলাইনের কোনো নির্দিষ্ট অংশের জন্য কোনো সীমাবদ্ধতা আছে কিনা তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর বিধিনিষেধ সম্পর্কিত তথ্যের অবস্থান।

ইউনিয়ন ফিল্ড restriction । এটি পলিলাইনের একটি নির্দিষ্ট অংশে প্রযোজ্য হতে পারে এমন বিভিন্ন ধরনের সীমাবদ্ধতাকে অন্তর্ভুক্ত করে। restriction নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
restricted_height_mm

int64

উচ্চতার সীমা, মিলিমিটারে। যখন সীমাবদ্ধ উচ্চতার কারণে নির্দিষ্ট যানবাহনটি চলাচল করতে পারে না বা তার জন্য পর্যাপ্ত জায়গা থাকে না, তখন এই ক্ষেত্রটি পূরণ করা হয়।

restricted_weight_kg

int64

ওজনের সীমা, কিলোগ্রামে। যখন ওজনের সীমাবদ্ধতার কারণে চলাচল সম্ভব হয় না অথবা নির্দিষ্ট যানবাহনটির ওজনের কাছাকাছি হয়, তখন এই ক্ষেত্রটি পূরণ করা হয়।

hazardous_goods

bool

বিপজ্জনক পণ্য বহন নিষিদ্ধ হলে এই ফিল্ডটির মান 'true' সেট করা হয়।

trucks_prohibited

bool

ট্রাক চলাচল নিষিদ্ধ হলে এই ফিল্ডটির মান 'true' সেট করা হয়।

রোডফিচারস্টেট

একটি পলিলাইনের দৈর্ঘ্য বরাবর রাস্তার বৈশিষ্ট্যগুলোর অবস্থা তুলে ধরে।

এনাম
ROAD_FEATURE_STATE_UNSPECIFIED সড়ক বৈশিষ্ট্যটির অবস্থা গণনা করা হয়নি (ডিফল্ট মান)।
EXISTS রাস্তার বৈশিষ্ট্যটি বিদ্যমান।
DOES_NOT_EXIST রাস্তাটির কোনো অস্তিত্ব নেই।

স্কাইওয়েইনফো

পলিলাইন বরাবর স্কাইওয়ে সম্পর্কিত তথ্য ধারণ করে।

ক্ষেত্র
skyway_presence

RoadFeatureState

পলিলাইনের কোনো নির্দিষ্ট অংশে স্কাইওয়ে আছে কি না, তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর স্কাইওয়ে সম্পর্কিত তথ্যের অবস্থান।

টানেলইনফো

পলিলাইন বরাবর টানেল সম্পর্কিত তথ্য ধারণ করে।

ক্ষেত্র
tunnel_presence

RoadFeatureState

পলিলাইনের কোনো নির্দিষ্ট অংশে টানেল আছে কি না, তা নির্দেশ করে।

polyline_point_index

PolylinePointIndex

পলিলাইন বরাবর টানেল সম্পর্কিত তথ্যের অবস্থান।

পলিলাইন এনকোডিং

ফেরত দেওয়া হবে এমন পছন্দের পলিলাইনের ধরন নির্দিষ্ট করে।

এনাম
POLYLINE_ENCODING_UNSPECIFIED পলিলাইন টাইপের কোনো পছন্দ নির্দিষ্ট করা হয়নি। ডিফল্ট হিসেবে ENCODED_POLYLINE ব্যবহৃত হয়।
ENCODED_POLYLINE পলিলাইন এনকোডিং অ্যালগরিদম ব্যবহার করে এনকোড করা একটি পলিলাইন নির্দিষ্ট করে।
GEO_JSON_LINESTRING GeoJSON LineString ফরম্যাট ব্যবহার করে একটি পলিলাইন নির্দিষ্ট করে।

পলিলাইন কোয়ালিটি

একগুচ্ছ মান যা পলিলাইনের গুণমান নির্দিষ্ট করে।

এনাম
POLYLINE_QUALITY_UNSPECIFIED পলিলাইনের গুণমান সম্পর্কে কোনো পছন্দ নির্দিষ্ট করা হয়নি। ডিফল্ট হিসেবে OVERVIEW ব্যবহৃত হয়।
HIGH_QUALITY একটি উচ্চ-মানের পলিলাইন নির্দিষ্ট করে - যা OVERVIEW চেয়ে বেশি পয়েন্ট ব্যবহার করে গঠিত হয়, তবে এর ফলে প্রতিক্রিয়ার আকার বৃদ্ধি পায়। যখন আপনার আরও বেশি নির্ভুলতার প্রয়োজন হয় তখন এই মানটি ব্যবহার করুন।
OVERVIEW একটি ওভারভিউ পলিলাইন নির্দিষ্ট করে - যা অল্প সংখ্যক পয়েন্ট ব্যবহার করে গঠিত। রুটের একটি ওভারভিউ প্রদর্শন করার সময় এই মানটি ব্যবহার করুন। HIGH_QUALITY অপশনটি ব্যবহার করার তুলনায় এই অপশনটি ব্যবহার করলে রিকোয়েস্ট ল্যাটেন্সি কম হয়।

রুট

এতে একটি পথরেখা রয়েছে, যা একাধিক সংযুক্ত সড়ক খণ্ডাংশ নিয়ে গঠিত এবং যা শুরু, শেষ ও মধ্যবর্তী বিন্দুগুলোকে যুক্ত করে।

ক্ষেত্র
route_labels[]

RouteLabel

Route এমন লেবেল যা রুটের নির্দিষ্ট বৈশিষ্ট্য শনাক্ত করতে এবং অন্যগুলোর সাথে তুলনা করতে সহায়ক।

legs[]

RouteLeg

লেগ (ওয়েপয়েন্টগুলোর মধ্যবর্তী পথের অংশ) নিয়ে গঠিত একটি রুট। প্রতিটি লেগ দুটি নন- via Waypoints মধ্যবর্তী যাত্রাপথকে নির্দেশ করে। উদাহরণস্বরূপ, যে রুটে কোনো মধ্যবর্তী ওয়েপয়েন্ট নেই, তার কেবল একটি লেগ থাকে। যে রুটে একটি নন- via মধ্যবর্তী ওয়েপয়েন্ট থাকে, তার দুটি লেগ থাকে। যে রুটে একটি via মধ্যবর্তী ওয়েপয়েন্ট থাকে, তার একটি লেগ থাকে। লেগগুলোর origin থেকে intermediates হয়ে destination পর্যন্ত ওয়েপয়েন্টগুলোর ক্রমের সাথে মিলে যায়।

distance_meters

int32

পথটির ভ্রমণ দূরত্ব, মিটারে।

duration

Duration

রুটটি নেভিগেট করতে প্রয়োজনীয় সময়কাল। যদি আপনি routing_preference TRAFFIC_UNAWARE এ সেট করেন, তাহলে এই মানটি static_duration এর সমান হবে। যদি আপনি routing_preference TRAFFIC_AWARE অথবা TRAFFIC_AWARE_OPTIMAL এ সেট করেন, তাহলে এই মানটি ট্র্যাফিকের অবস্থা বিবেচনায় নিয়ে গণনা করা হয়।

static_duration

Duration

যানজটের অবস্থা বিবেচনা না করে পথ ধরে ভ্রমণের সময়কাল।

polyline

Polyline

সম্পূর্ণ পথের পলিলাইন। এই পলিলাইনটি হলো সমস্ত legs সম্মিলিত পলিলাইন।

description

string

পথটির বর্ণনা।

warnings[]

string

রাউটটি প্রদর্শন করার সময় দেখানোর জন্য সতর্কবার্তাগুলোর একটি অ্যারে।

viewport

Viewport

পলিলাইনটির ভিউপোর্ট বাউন্ডিং বক্স।

travel_advisory

RouteTravelAdvisory

পথ সম্পর্কে অতিরিক্ত তথ্য।

optimized_intermediate_waypoint_index[]

int32

যদি আপনি optimize_waypoint_order true সেট করেন, তাহলে এই ফিল্ডটিতে মধ্যবর্তী ওয়েপয়েন্টগুলোর অপ্টিমাইজড ক্রম থাকবে। অন্যথায়, এই ফিল্ডটি খালি থাকবে। উদাহরণস্বরূপ, যদি আপনি Origin: LA; Intermediate waypoints: Dallas, Bangor, Phoenix; Destination: New York; ইনপুট হিসেবে দেন এবং অপ্টিমাইজড মধ্যবর্তী ওয়েপয়েন্টের ক্রমটি হয় Phoenix, Dallas, Bangor, তাহলে এই ফিল্ডটিতে [2, 0, 1] মানগুলো থাকবে। ইনপুটে দেওয়া প্রথম মধ্যবর্তী ওয়েপয়েন্টের জন্য ইনডেক্সটি 0 থেকে শুরু হয়।

localized_values

RouteLocalizedValues

Route বৈশিষ্ট্যগুলোর পাঠ্য উপস্থাপনা।

route_token

string

একটি অস্বচ্ছ টোকেন যা নেভিগেশনের সময় রুট পুনর্গঠন করতে এবং রুট পরিবর্তনের ক্ষেত্রে, রুট তৈরির সময়কার মূল উদ্দেশ্যকে সম্মান জানাতে নেভিগেশন SDK- তে পাঠানো যেতে পারে। এই টোকেনটিকে একটি অস্বচ্ছ ব্লব হিসেবে বিবেচনা করুন। বিভিন্ন রিকোয়েস্টের মধ্যে এর মান তুলনা করবেন না, কারণ সার্ভিসটি হুবহু একই রুট ফেরত দিলেও এর মান পরিবর্তিত হতে পারে।

দ্রষ্টব্য: Route.route_token শুধুমাত্র সেইসব অনুরোধের জন্য উপলব্ধ, যেগুলিতে ComputeRoutesRequest.routing_preference TRAFFIC_AWARE বা TRAFFIC_AWARE_OPTIMAL এ সেট করা হয়েছে। Via ওয়েপয়েন্টযুক্ত অনুরোধের জন্য Route.route_token সমর্থিত নয়।

polyline_details

PolylineDetails

পলিলাইন বরাবর বিশদ তথ্য ধারণ করে।

রুটলোকালাইজডভ্যালুস

নির্দিষ্ট কিছু বৈশিষ্ট্যের লিখিত উপস্থাপনা।

ক্ষেত্র
distance

LocalizedText

ভ্রমণ দূরত্ব লিখিত আকারে উপস্থাপন করা হয়েছে।

duration

LocalizedText

সময়কাল, যা টেক্সট আকারে উপস্থাপিত এবং কোয়েরির অঞ্চলের জন্য স্থানীয়কৃত। এটি ট্র্যাফিকের অবস্থা বিবেচনা করে। দ্রষ্টব্য: আপনি যদি ট্র্যাফিকের তথ্য অনুরোধ না করে থাকেন, তাহলে এই মানটি static_duration এর সমান হবে।

static_duration

LocalizedText

যানজটের অবস্থা বিবেচনা না করে সময়কাল, যা লিখিত আকারে উপস্থাপন করা হয়েছে।

transit_fare

LocalizedText

গণপরিবহনের ভাড়া লিখিত আকারে উপস্থাপন করা হয়েছে।

রুটলেবেল

Route এমন লেবেল যা রুটের নির্দিষ্ট বৈশিষ্ট্য শনাক্ত করতে এবং অন্যগুলোর সাথে তুলনা করতে সহায়ক।

এনাম
ROUTE_LABEL_UNSPECIFIED ডিফল্ট - ব্যবহৃত নয়।
DEFAULT_ROUTE রুট গণনার জন্য ডিফল্ট 'সেরা' রুটটি ফেরত দেওয়া হয়েছে।
DEFAULT_ROUTE_ALTERNATE ডিফল্ট 'সেরা' রুটের একটি বিকল্প। compute_alternative_routes নির্দিষ্ট করা হলে এই ধরনের রুটগুলো ফেরত দেওয়া হবে।
FUEL_EFFICIENT জ্বালানি সাশ্রয়ী পথ। এই মান দ্বারা চিহ্নিত পথগুলো জ্বালানি খরচের মতো পরিবেশগত পরামিতিগুলোর জন্য সর্বোত্তম বলে বিবেচিত হয়।
SHORTER_DISTANCE কম দূরত্বের পথ। এটি একটি পরীক্ষামূলক বৈশিষ্ট্য।

রুটলেগ

নন- via ওয়েপয়েন্টগুলোর মধ্যে একটি অংশ রয়েছে।

ক্ষেত্র
distance_meters

int32

পথের এই অংশের ভ্রমণ দূরত্ব, মিটারে।

duration

Duration

পথটুকু অতিক্রম করতে প্রয়োজনীয় সময়কাল। যদি route_preference TRAFFIC_UNAWARE হিসেবে সেট করা থাকে, তাহলে এই মানটি static_duration এর সমান হয়। যদি route_preference TRAFFIC_AWARE অথবা TRAFFIC_AWARE_OPTIMAL হিসেবে সেট করা থাকে, তাহলে ট্র্যাফিকের অবস্থা বিবেচনা করে এই মানটি গণনা করা হয়।

static_duration

Duration

যানজটের অবস্থা বিবেচনায় না নিয়ে গণনা করা যাত্রাপথের মোট সময়কাল।

polyline

Polyline

এই পায়ের সামগ্রিক পলিলাইন, যার মধ্যে প্রতিটি step পলিলাইন অন্তর্ভুক্ত রয়েছে।

start_location

Location

এই লেগের শুরুর স্থান। এই স্থানটি প্রদত্ত origin থেকে ভিন্ন হতে পারে। উদাহরণস্বরূপ, যখন প্রদত্ত origin কোনো রাস্তার কাছাকাছি থাকে না, তখন এটি রাস্তার উপর অবস্থিত একটি বিন্দু।

end_location

Location

এই যাত্রাপথের শেষ অবস্থান। এই অবস্থানটি প্রদত্ত destination থেকে ভিন্ন হতে পারে। উদাহরণস্বরূপ, যখন প্রদত্ত destination কোনো রাস্তার কাছাকাছি না থাকে, তখন এটি রাস্তার উপর অবস্থিত একটি বিন্দু।

steps[]

RouteLegStep

এই লেগের অন্তর্ভুক্ত অংশগুলোকে নির্দেশকারী ধাপসমূহের একটি বিন্যাস। প্রতিটি ধাপ একটি দিকনির্দেশনা উপস্থাপন করে।

travel_advisory

RouteLegTravelAdvisory

এতে রুটের কোনো একটি অংশে সম্ভাব্য ট্র্যাফিক জোনের বিধিনিষেধের মতো অতিরিক্ত তথ্য থাকে, যা ব্যবহারকারীকে জানানো উচিত।

localized_values

RouteLegLocalizedValues

RouteLeg এর বৈশিষ্ট্যগুলোর পাঠ্য উপস্থাপনা।

steps_overview

StepsOverview

এই RouteLeg ধাপগুলোর সার্বিক তথ্য। এই ফিল্ডটি শুধুমাত্র ট্রানজিট রুটের জন্য পূরণ করা হয়।

RouteLegLocalizedValues

নির্দিষ্ট কিছু বৈশিষ্ট্যের লিখিত উপস্থাপনা।

ক্ষেত্র
distance

LocalizedText

ভ্রমণ দূরত্ব লিখিত আকারে উপস্থাপন করা হয়েছে।

duration

LocalizedText

সময়কাল, যা টেক্সট আকারে উপস্থাপিত এবং কোয়েরির অঞ্চলের জন্য স্থানীয়কৃত। এটি ট্র্যাফিকের অবস্থা বিবেচনা করে। দ্রষ্টব্য: যদি আপনি ট্র্যাফিকের তথ্য অনুরোধ না করে থাকেন, তাহলে এই মানটি static_duration-এর সমান হবে।

static_duration

LocalizedText

যানজটের অবস্থা বিবেচনা না করে সময়কাল, যা লিখিত আকারে উপস্থাপন করা হয়েছে।

ধাপগুলির সংক্ষিপ্ত বিবরণ

RouteLegStep গুলোর একটি তালিকা সম্পর্কে সার্বিক ধারণা প্রদান করে।

ক্ষেত্র
multi_modal_segments[]

MultiModalSegment

RouteLeg.steps এর বিভিন্ন মাল্টি-মোডাল সেগমেন্ট সম্পর্কিত সংক্ষিপ্ত তথ্য। যদি RouteLeg এর steps অংশে কোনো মাল্টি-মোডাল সেগমেন্ট না থাকে, তাহলে এই ফিল্ডটি পূরণ করা হয় না।

মাল্টিমোডাল সেগমেন্ট

RouteLeg.steps এর বিভিন্ন মাল্টি-মোডাল সেগমেন্ট সম্পর্কে সংক্ষিপ্ত তথ্য প্রদান করে। একটি মাল্টি-মোডাল সেগমেন্টকে এক বা একাধিক সংলগ্ন RouteLegStep হিসাবে সংজ্ঞায়িত করা হয়, যেগুলোর RouteTravelMode একই থাকে। যদি RouteLeg স্টেপগুলোর মধ্যে কোনো মাল্টি-মোডাল সেগমেন্ট না থাকে, তাহলে এই ফিল্ডটি পূরণ করা হয় না।

ক্ষেত্র
navigation_instruction

NavigationInstruction

মাল্টি-মোডাল সেগমেন্টের জন্য নেভিগেশন নির্দেশনা।

travel_mode

RouteTravelMode

মাল্টি-মোডাল সেগমেন্টের ভ্রমণের মাধ্যম।

step_start_index

int32

সংশ্লিষ্ট RouteLegStep সূচক যা একটি মাল্টি-মোডাল সেগমেন্টের শুরু।

step_end_index

int32

সংশ্লিষ্ট RouteLegStep সূচক যা একটি মাল্টি-মোডাল সেগমেন্টের শেষ বিন্দু।

রুটলেগস্টেপ

একটি RouteLeg অংশ ধারণ করে। একটি স্টেপ একটি একক নেভিগেশন নির্দেশনার সাথে সঙ্গতিপূর্ণ। রুটলেগগুলো স্টেপ দ্বারা গঠিত।

ক্ষেত্র
distance_meters

int32

এই ধাপের অতিক্রান্ত দূরত্ব, মিটারে। কিছু ক্ষেত্রে, এই ফিল্ডটির কোনো মান নাও থাকতে পারে।

static_duration

Duration

যানজটের অবস্থা বিবেচনা না করে এই ধাপটি অতিক্রম করার সময়কাল। কিছু পরিস্থিতিতে, এই ফিল্ডটির কোনো মান নাও থাকতে পারে।

polyline

Polyline

এই ধাপের সাথে সংশ্লিষ্ট পলিলাইন।

start_location

Location

এই ধাপের শুরুর স্থান।

end_location

Location

এই ধাপের শেষ অবস্থান।

navigation_instruction

NavigationInstruction

দিকনির্দেশনা।

travel_advisory

RouteLegStepTravelAdvisory

পায়ে হাঁটার ধাপে সম্ভাব্য যান চলাচল অঞ্চলের বিধিনিষেধের মতো অতিরিক্ত তথ্য এতে রয়েছে, যা ব্যবহারকারীকে জানানো উচিত।

localized_values

RouteLegStepLocalizedValues

RouteLegStep এর বৈশিষ্ট্যগুলির পাঠ্য উপস্থাপনা।

transit_details

RouteLegStepTransitDetails

ভ্রমণের মাধ্যম TRANSIT হলে এই ধাপ সম্পর্কিত বিবরণ।

travel_mode

RouteTravelMode

এই ধাপের জন্য ব্যবহৃত ভ্রমণ পদ্ধতি।

RouteLegStepLocalizedValues

নির্দিষ্ট কিছু বৈশিষ্ট্যের লিখিত উপস্থাপনা।

ক্ষেত্র
distance

LocalizedText

ভ্রমণ দূরত্ব লিখিত আকারে উপস্থাপন করা হয়েছে।

static_duration

LocalizedText

Duration without taking traffic conditions into consideration, represented in text form.

RouteLegStepTransitDetails

Additional information for the RouteLegStep related to TRANSIT routes.

ক্ষেত্র
stop_details

TransitStopDetails

Information about the arrival and departure stops for the step.

localized_values

TransitDetailsLocalizedValues

Text representations of properties of the RouteLegStepTransitDetails .

headsign

string

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

Duration

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

TransitLine

Information about the transit line used in this step.

stop_count

int32

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, stop_count returns 3.

trip_short_text

string

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 trip_short_text of the Amtrak train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.

TransitDetailsLocalizedValues

Localized descriptions of values for RouteTransitDetails .

ক্ষেত্র
arrival_time

LocalizedTime

Time in its formatted text representation with a corresponding time zone.

departure_time

LocalizedTime

Time in its formatted text representation with a corresponding time zone.

TransitStopDetails

Details about the transit stops for the RouteLegStep .

ক্ষেত্র
arrival_stop

TransitStop

Information about the arrival stop for the step.

arrival_time

Timestamp

The estimated time of arrival for the step.

departure_stop

TransitStop

Information about the departure stop for the step.

departure_time

Timestamp

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[]

SpeedReadingInterval

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

TollInfo

Contains information about tolls on the specific RouteLeg . This field is only populated if we expect there are tolls on the RouteLeg and TOLLS is included in the request's ComputeRoutesRequest.extra_computations . If this field is set but the estimated_price subfield is not populated, we expect that road contains tolls but we do not know an estimated price. If toll_info does not exist, then there is no toll on the RouteLeg .

speed_reading_intervals[]

SpeedReadingInterval

Speed reading intervals indicating traffic density. This field is only populated for requests when the request has a TRAFFIC_AWARE or TRAFFIC_AWARE_OPTIMAL ComputeRoutesRequest.routing_preference value, and TRAFFIC_ON_POLYLINE is included in the ComputeRoutesRequest.extra_computations . The intervals cover the entire polyline of the RouteLeg without overlap. The start point of a specified interval is the same as the end point of the preceding interval.

উদাহরণ:

polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).

RouteMatrixDestination

A single destination for ComputeRouteMatrixRequest

ক্ষেত্র
waypoint

Waypoint

Required. 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

Status

Error status code for this element.

condition

RouteMatrixElementCondition

Indicates whether the route was found or not. Independent of status.

distance_meters

int32

The travel distance of the route, in meters.

duration

Duration

The length of time needed to navigate the route. If you set the routing_preference to TRAFFIC_UNAWARE , then this value is the same as static_duration . If you set the routing_preference to either TRAFFIC_AWARE or TRAFFIC_AWARE_OPTIMAL , then this value is calculated taking traffic conditions into account.

static_duration

Duration

The duration of traveling through the route without taking traffic conditions into consideration.

travel_advisory

RouteTravelAdvisory

Additional information about the route. For example: restriction information and toll information

fallback_info

FallbackInfo

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

LocalizedValues

Text representations of properties of the RouteMatrixElement .

origin_index

int32

Zero-based index of the origin in the request.

destination_index

int32

Zero-based index of the destination in the request.

LocalizedValues

Text representations of certain properties.

ক্ষেত্র
distance

LocalizedText

Travel distance represented in text form.

duration

LocalizedText

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

LocalizedText

Duration represented in text form without taking traffic conditions into consideration.

transit_fare

LocalizedText

Transit fare represented in text form.

RouteMatrixElementCondition

The condition of the route being returned.

এনাম
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

Waypoint

Required. Origin waypoint

route_modifiers

RouteModifiers

Optional. 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

bool

When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the DRIVE and TWO_WHEELER RouteTravelMode .

avoid_highways

bool

When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the DRIVE and TWO_WHEELER RouteTravelMode .

avoid_ferries

bool

When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the DRIVE and TWO_WHEELER RouteTravelMode .

avoid_indoor

bool

When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the WALK RouteTravelMode .

vehicle_info

VehicleInfo

Specifies the vehicle information.

toll_passes[]

TollPass

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 DRIVE and TWO_WHEELER RouteTravelMode .

avoid_tunnels

bool

Optional. When set to true, avoids tunnels where reasonable, giving preference to routes not containing tunnels. Applies only to the DRIVE and TWO_WHEELER RouteTravelMode . RoutingPreference must be set to TRAFFIC_AWARE_OPTIMAL . This field is not supported in ComputeRouteMatrix.

RouteTravelAdvisory

Contains the additional information that the user should be informed about, such as possible traffic zone restrictions.

ক্ষেত্র
toll_info

TollInfo

Contains information about tolls on the route. This field is only populated if tolls are expected on the route and TOLLS is included in the request's ComputeRoutesRequest.extra_computations . If this field is set, but the estimatedPrice subfield is not populated, then the route contains tolls, but the estimated price is unknown. If toll_info is not set, then there are no tolls expected on the route.

speed_reading_intervals[]

SpeedReadingInterval

Speed reading intervals indicating traffic density. This field is only populated for requests when the request has a TRAFFIC_AWARE or TRAFFIC_AWARE_OPTIMAL ComputeRoutesRequest.routing_preference value, and TRAFFIC_ON_POLYLINE is included in the ComputeRoutesRequest.extra_computations . The intervals cover the entire polyline of the route without overlap. The start point of a specified interval is the same as the end point of the preceding interval.

উদাহরণ:

polyline: A ---- B ---- C ---- D ---- E ---- F ---- G
speed_reading_intervals: [A,C), [C,D), [D,G).
fuel_consumption_microliters

int64

The predicted fuel consumption in microliters. This field is only populated when FUEL_CONSUMPTION is included in the request's ComputeRoutesRequest.extra_computations .

route_restrictions_partially_ignored

bool

Returned route may have restrictions that are not suitable for requested travel mode or route modifiers.

transit_fare

Money

If present, contains the total fare or ticket costs on this route This property is only returned for TRANSIT requests and only for routes where fare information is available for all transit steps.

RouteTravelMode

ভ্রমণের মাধ্যম নির্দিষ্ট করতে ব্যবহৃত মানসমূহের একটি সেট। দ্রষ্টব্য: WALK , BICYCLE এবং TWO_WHEELER রুটগুলো বিটা পর্যায়ে রয়েছে এবং এগুলোতে মাঝে মাঝে স্পষ্ট ফুটপাত, পথচারী পথ বা সাইকেল চালানোর পথ অনুপস্থিত থাকতে পারে। আপনার অ্যাপে প্রদর্শিত সমস্ত হাঁটা, সাইকেল চালানো এবং দুই চাকার যানবাহনের রুটের জন্য আপনাকে অবশ্যই ব্যবহারকারীকে এই সতর্কতাটি দেখাতে হবে।

এনাম
TRAVEL_MODE_UNSPECIFIED কোনো ভ্রমণ মোড নির্দিষ্ট করা হয়নি। ডিফল্ট হিসেবে DRIVE ব্যবহৃত হয়।
DRIVE যাত্রীবাহী গাড়িতে ভ্রমণ করুন।
BICYCLE সাইকেলে ভ্রমণ করুন।
WALK হেঁটে ভ্রমণ করুন।
TWO_WHEELER দুই চাকার মোটরচালিত যান। উদাহরণস্বরূপ, মোটরসাইকেল। উল্লেখ্য যে, এটি BICYCLE ভ্রমণ মোড থেকে ভিন্ন, যা মানব-চালিত মোডকে অন্তর্ভুক্ত করে।
TRUCK ট্রাক, যা নিয়ন্ত্রক বা ভৌত বিধিনিষেধের অধীন হতে পারে। আপনাকে VehicleInfo মেসেজে গাড়ির বৈশিষ্ট্যগুলো অবশ্যই পূরণ করতে হবে।
TRANSIT যেখানে উপলব্ধ, সেখানে গণপরিবহন রুট ব্যবহার করে ভ্রমণ করুন।

RoutingPreference

A set of values that specify factors to take into consideration when calculating the route.

এনাম
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 RouteTravelMode 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

একটি পলিলাইন বা পথের সংলগ্ন অংশে ট্র্যাফিকের ঘনত্ব নির্দেশক। P_0, P_1, ... , P_N (শূন্য-ভিত্তিক সূচক) বিন্দুসহ একটি পথ দেওয়া থাকলে, SpeedReadingInterval একটি ব্যবধান নির্ধারণ করে এবং নিম্নলিখিত বিভাগগুলি ব্যবহার করে এর ট্র্যাফিক বর্ণনা করে।

ক্ষেত্র
start_polyline_point_index

int32

পলিলাইনে এই ব্যবধির প্রারম্ভিক সূচক।

end_polyline_point_index

int32

পলিলাইনে এই ব্যবধির শেষ সূচক।

Union field speed_type . The type of speed in this interval. speed_type can be only one of the following:
speed

Speed

এই সময়কালে যানবাহনের গতি

গতি

ট্র্যাফিক তথ্যের উপর ভিত্তি করে পলিলাইনের গতির শ্রেণিবিন্যাস।

এনাম
SPEED_UNSPECIFIED ডিফল্ট মান। এই মানটি ব্যবহৃত হয় না।
NORMAL স্বাভাবিক গতি, যানজটের কারণে কোনো বিলম্ব নেই।
SLOW গতি হ্রাস শনাক্ত করা হয়েছে, ট্র্যাফিকের পরিমাণ মাঝারি।
TRAFFIC_JAM যানজটের কারণে বিলম্ব।

TollInfo

Encapsulates toll information on a Route or on a RouteLeg .

ক্ষেত্র
estimated_price[]

Money

The monetary amount of tolls for the corresponding Route or RouteLeg . This list contains a money amount for each currency that is expected to be charged by the toll stations. Typically this list will contain only one item for routes with tolls in one currency. For international trips, this list may contain multiple items to reflect tolls in different currencies.

TollPass

List of toll passes around the world that we support.

এনাম
TOLL_PASS_UNSPECIFIED Not used. 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 Indonesia. 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, USA.
US_IL_IPASS IL, USA.
US_IN_EZPASSIN IN, USA.
US_KS_BESTPASS_HORIZON KS, USA.
US_KS_KTAG KS, USA.
US_KS_NATIONALPASS KS, USA.
US_KS_PREPASS_ELITEPASS KS, 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_BREAKAWAY 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

This field specifies one of the following assumptions to use when calculating travel time in traffic conditions, shown in the enums below. Depending on the enum chosen, the duration field of the TrafficModel response will vary. The value contains the predicted time to destination in traffic, based on historical averages. TrafficModel is only available for requests that have set RoutingPreference to TRAFFIC_AWARE_OPTIMAL and RouteTravelMode to DRIVE .

এনাম
TRAFFIC_MODEL_UNSPECIFIED Unused. 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

string

The name of this transit agency.

phone_number

string

The transit agency's locale-specific formatted phone number.

uri

string

The transit agency's URI.

TransitLine

Contains information about the transit line used in this step.

ক্ষেত্র
agencies[]

TransitAgency

The transit agency (or agencies) that operates this transit line.

name

string

The full name of this transit line, For example, "8 Avenue Local".

uri

string

the URI for this transit line as provided by the transit agency.

color

string

The color commonly used in signage for this line. Represented in hexadecimal.

icon_uri

string

The URI for the icon associated with this line.

name_short

string

The short name of this transit line. This name will normally be a line number, such as "M7" or "355".

text_color

string

The color commonly used in text on signage for this line. Represented in hexadecimal.

vehicle

TransitVehicle

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[]

TransitTravelMode

A set of travel modes to use when getting a TRANSIT route. Defaults to all supported modes of travel.

routing_preference

TransitRoutingPreference

A routing preference that, when specified, influences the TRANSIT route returned.

TransitRoutingPreference

Specifies routing preferences for transit routes.

এনাম
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.

এনাম
TRANSIT_TRAVEL_MODE_UNSPECIFIED No transit travel mode specified.
BUS Travel by 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

string

The name of the transit stop.

location

Location

The location of the stop expressed in latitude/longitude coordinates.

TransitVehicle

Information about a vehicle used in transit routes.

ক্ষেত্র
name

LocalizedText

The name of this vehicle, capitalized.

type

TransitVehicleType

The type of vehicle used.

icon_uri

string

The URI for an icon associated with this vehicle type.

local_icon_uri

string

The URI for the icon associated with this vehicle type, based on the local transport signage.

TransitVehicleType

The type of vehicles for transit routes.

এনাম
TRANSIT_VEHICLE_TYPE_UNSPECIFIED Unused.
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 Commuter rail.
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 Heavy rail.
HIGH_SPEED_TRAIN High speed train.
INTERCITY_BUS Intercity bus.
LONG_DISTANCE_TRAIN Long distance train.
METRO_RAIL Light rail transit.
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.

এনাম
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 .

এনাম
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

VehicleEmissionType

Describes the vehicle's emission type. Applies only to the DRIVE RouteTravelMode .

total_height_mm

int64

Height of the vehicle, including heights of any attached trailers. Must be set for trucking or trailering to trigger. This field is not supported in ComputeRouteMatrix when RouteTravelMode is DRIVE .

total_length_mm

int64

Length of the vehicle, including lengths of any attached trailers. Must be set for trucking or trailering to trigger. This field is not supported in ComputeRouteMatrix when RouteTravelMode is DRIVE .

total_width_mm

int64

Width of the vehicle, including widths of any attached trailers. Must be set for trucking or trailering to trigger. This field is not supported in ComputeRouteMatrix when RouteTravelMode is DRIVE .

total_weight_kg

int64

Weight of the vehicle, including weights of any attached trailers. Weight in this context refers to actual weight, not weight rating. Must be set for trucking or trailering to trigger. This field is not supported in ComputeRouteMatrix when RouteTravelMode is DRIVE .

trailer_info[]

TrailerInfo

Contains one entry for each trailer. If trailer info is provided, RoutingPreference must be set to TRAFFIC_AWARE_OPTIMAL . This field is not supported in ComputeRouteMatrix when RouteTravelMode is DRIVE .

hazardous_goods_types[]

HazardousGoodsType

List of hazardous materials transported in the vehicle, if any.

HazardousGoodsType

Types of different hazardous materials.

এনাম
HAZARDOUS_GOODS_TYPE_UNSPECIFIED No hazardous goods type specified.
EXPLOSIVES Explosive goods.
GASES গ্যাস।
FLAMMABLE Flammable goods.
COMBUSTIBLE Combustible goods.
ORGANIC Organic goods.
POISON Poisonous goods.
RADIOACTIVE Radioactive goods.
CORROSIVE Corrosive goods.
ASPIRATION_HAZARD Aspiration hazardous goods.
ENVIRONMENTAL_HAZARD Environmental hazardous goods.
OTHER Other types of goods.

TrailerInfo

Information about individual trailers attached to the vehicle. Lengths of any trailers must be supplied for trucking. Other attributes are optional. Total attributes must encompass the attributes of any trailers. For example, total_height_mm must always be greater than or equal to trailer_info.height_mm .

ক্ষেত্র
height_mm

int64

Height of the trailer.

length_mm

int64

Length of the trailer.

width_mm

int64

Width of the trailer.

weight_kg

int64

Weight of the trailer. Weight in this context refers to actual weight, not weight rating.

ওয়েপয়েন্ট

Encapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.

ক্ষেত্র
via

bool

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 legs array to provide the details for stopovers on that leg of the trip. Set this value to true when you want the route to pass through this waypoint without stopping over. Via waypoints don't cause an entry to be added to the legs array, but they do route the journey through the waypoint. You can only set this value on waypoints that are intermediates. The request fails if you set this field on terminal waypoints. If ComputeRoutesRequest.optimize_waypoint_order is set to true then this field cannot be set to true; otherwise, the request fails.

vehicle_stopover

bool

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- via waypoints on roads that are unsuitable for pickup and drop-off. This option works only for DRIVE and TWO_WHEELER travel modes, and when the location_type is Location .

side_of_road

bool

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 DRIVE and TWO_WHEELER RouteTravelMode .

Union field location_type . Different ways to represent a location. location_type can be only one of the following:
location

Location

A point specified using geographic coordinates, including an optional heading.

place_id

string

The POI Place ID associated with the waypoint.

address

string

Human readable address or a plus code. See https://plus.codes for details.

navigation_point_token

string

A token that identifies a NavigationPoint , obtained from the SearchDestinations method of the Geocoding API.