একটি ওয়েপয়েন্ট এনক্যাপসুলেট করে। ওয়েপয়েন্টগুলি একটি রুটের শুরু এবং শেষ উভয়ই চিহ্নিত করে এবং রুটের মধ্যবর্তী স্টপগুলি অন্তর্ভুক্ত করে।
JSON প্রতিনিধিত্ব
{"via": boolean,"vehicleStopover": boolean,"sideOfRoad": boolean,// Union field location_type can be only one of the following:"location": {object (Location)},"placeId": string,"address": string// End of list of possible types for union field location_type.}
ক্ষেত্র
via
boolean
এই ওয়েপয়েন্টটিকে একটি মাইলফলক হিসেবে চিহ্নিত করে বরং একটি স্টপিং পয়েন্ট। অনুরোধে প্রতিটি নন-এর মাধ্যমে ওয়েপয়েন্টের জন্য, প্রতিক্রিয়া legs অ্যারেতে একটি এন্ট্রি যুক্ত করে ট্রিপের সেই পায়ে স্টপওভারের বিশদ প্রদান করতে। আপনি যখন রুটটিকে থামিয়ে না দিয়ে এই ওয়েপয়েন্টের মধ্য দিয়ে যেতে চান তখন এই মানটিকে সত্য হিসাবে সেট করুন। ওয়েপয়েন্টের মাধ্যমে legs অ্যারেতে কোনো এন্ট্রি যোগ করা হয় না, তবে তারা ওয়েপয়েন্টের মাধ্যমে যাত্রাপথ করে। আপনি শুধুমাত্র মধ্যবর্তী ওয়েপয়েন্টগুলিতে এই মান সেট করতে পারেন। আপনি টার্মিনাল ওয়েপয়েন্টে এই ক্ষেত্রটি সেট করলে অনুরোধটি ব্যর্থ হয়। যদি ComputeRoutesRequest.optimize_waypoint_order সত্যে সেট করা হয় তবে এই ক্ষেত্রটি সত্যে সেট করা যাবে না; অন্যথায়, অনুরোধ ব্যর্থ হয়।
vehicleStopover
boolean
নির্দেশ করে যে ওয়েপয়েন্টটি যানবাহন থামানোর জন্য বোঝানো হয়েছে, যেখানে উদ্দেশ্য হয় পিকআপ বা ড্রপ-অফ। আপনি যখন এই মানটি সেট করেন, গণনা করা রুটটি পিকআপ এবং ড্রপ-অফের জন্য অনুপযুক্ত রাস্তায় ওয়েপয়েন্টের via নয় অন্তর্ভুক্ত করবে না। এই বিকল্পটি শুধুমাত্র DRIVE এবং TWO_WHEELER ভ্রমণ মোডের জন্য কাজ করে, এবং যখন locationTypeLocation ।
sideOfRoad
boolean
ইঙ্গিত করে যে এই ওয়েপয়েন্টের অবস্থানটি রাস্তার একটি নির্দিষ্ট পাশে গাড়ি থামানোর জন্য একটি পছন্দকে বোঝানো হয়েছে৷ আপনি যখন এই মানটি সেট করবেন, তখন রুটটি লোকেশনের মধ্য দিয়ে যাবে যাতে গাড়িটি রাস্তার পাশে থামতে পারে যে অবস্থানটি রাস্তার মাঝখানের দিকে পক্ষপাতদুষ্ট। এই বিকল্পটি শুধুমাত্র DRIVE এবং TWO_WHEELERRouteTravelMode এর জন্য কাজ করে।
ইউনিয়ন ক্ষেত্রের location_type । একটি অবস্থানের প্রতিনিধিত্ব করার বিভিন্ন উপায়। location_type নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eWaypoints define the start, end, and intermediate points of a route.\u003c/p\u003e\n"],["\u003cp\u003eWaypoints can be specified using geographic coordinates, Place IDs, or addresses.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evia\u003c/code\u003e field allows a waypoint to be a pass-through point without stopping.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003evehicleStopover\u003c/code\u003e is used for pickup/drop-off optimization, while \u003ccode\u003esideOfRoad\u003c/code\u003e indicates preferred stopping side.\u003c/p\u003e\n"]]],["Waypoints, marking route start, end, and intermediate stops, are defined using a JSON format. Key properties include `via` (boolean) for non-stopping waypoints, `vehicleStopover` (boolean) for pickup/drop-off locations, and `sideOfRoad` (boolean) for preferred stopping side. A waypoint's `location_type` can be specified via geographic coordinates (`location`), a place ID (`placeId`), or a human-readable address (`address`). `via` cannot be true for terminal waypoints or if `optimize_waypoint_order` is true.\n"],null,["# Waypoint\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nEncapsulates a waypoint. Waypoints mark both the beginning and end of a route, and include intermediate stops along the route.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"via\": boolean, \"vehicleStopover\": boolean, \"sideOfRoad\": boolean, // Union field `location_type` can be only one of the following: \"location\": { object (/maps/documentation/routes/reference/rest/v2/Location) }, \"placeId\": string, \"address\": string // End of list of possible types for union field `location_type`. } ``` |\n\n| Fields ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `via` | `boolean` 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`](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#Route.FIELDS.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. |\n| `vehicleStopover` | `boolean` 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 `locationType` is [`Location`](/maps/documentation/routes/reference/rest/v2/Location). |\n| `sideOfRoad` | `boolean` 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`](/maps/documentation/routes/reference/rest/v2/RouteTravelMode). |\n| Union field `location_type`. Different ways to represent a location. `location_type` can be only one of the following: ||\n| `location` | `object (`[Location](/maps/documentation/routes/reference/rest/v2/Location)`)` A point specified using geographic coordinates, including an optional heading. |\n| `placeId` | `string` The POI Place ID associated with the waypoint. |\n| `address` | `string` Human readable address or a plus code. See \u003chttps://plus.codes\u003e for details. |"]]