সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
রুটগুলি কীভাবে গণনা করা হয় তা পরিবর্তন করতে অবস্থানগুলিতে সংশোধক অন্তর্ভুক্ত থাকতে পারে।
হেডিং প্যারামিটার ব্যবহার করে
আপনি যখন একটি রুটের জন্য ওয়েপয়েন্ট (উৎপত্তি, গন্তব্য এবং মধ্যবর্তী স্থান) নির্দিষ্ট করেন, তখন আপনি প্রতিটি ওয়েপয়েন্টে আসার সময় গাড়িটি যে দিকে যেতে চান সেটি নির্দিষ্ট করতে পারেন। আপনি এই বৈশিষ্ট্যটি নিশ্চিত করতে ব্যবহার করতে পারেন যে গাড়িটি রাস্তার একই পাশে ভোক্তাকে তোলার জন্য অপেক্ষা করছে। আপনি একটি শিরোনাম উল্লেখ না করলে, গাড়িটি রাস্তার ভুল দিকে আসতে পারে।
একটি ওয়েপয়েন্টের জন্য একটি শিরোনাম নির্দিষ্ট করা
শিরোনামের মানগুলি হল পূর্ণ সংখ্যা যা কম্পাসের দিকনির্দেশের সাথে সারিবদ্ধ, এবং তাই শূন্য থেকে 359 পর্যন্ত। উদাহরণস্বরূপ, 0-এর মান সঠিক উত্তরের শিরোনামের দিক নির্দেশ করে।
উদাহরণ
নিচের উদাহরণটি দেখায় কিভাবে একটি ওয়েপয়েন্টের জন্য heading সেট করতে হয়।
একটি ওয়েপয়েন্ট নির্দিষ্ট করার সময়, side_of_road প্যারামিটার ব্যবহার করে আপনি অনুরোধ করতে পারেন যে পথটি রাস্তার যে দিকেই হোক না কেন ওয়েপয়েন্টটি পক্ষপাতদুষ্ট।
উদাহরণ
নিচের উদাহরণটি দেখায় কিভাবে একটি ওয়েপয়েন্টের জন্য side_of_road সেট করতে হয়।
[null,null,["2025-04-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eWaypoint locations for routes can be modified using \u003ccode\u003eheading\u003c/code\u003e or \u003ccode\u003eside_of_road\u003c/code\u003e parameters to refine route calculations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eheading\u003c/code\u003e guides vehicle direction at waypoints (0-359 degrees, like compass directions) and is compatible with \u003ccode\u003eDrive\u003c/code\u003e and \u003ccode\u003eTwo-wheeler\u003c/code\u003e travel modes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eside_of_road\u003c/code\u003e biases the route towards the waypoint's side of the road and is only compatible with the \u003ccode\u003eDrive\u003c/code\u003e travel mode.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eheading\u003c/code\u003e and \u003ccode\u003eside_of_road\u003c/code\u003e parameters cannot be used together for the same location.\u003c/p\u003e\n"]]],["Waypoints in routes can be modified using `heading` or `side_of_road`, but not together. `Heading` defines the vehicle's arrival direction at a waypoint (0-359, like a compass), applicable to `Drive` or `Two-wheeler` modes. `Side_of_road` biases the route towards a specific side of the road at a waypoint and it's only applicable to `Drive` mode. Examples show how to include `heading` and `side_of_road` within waypoint specifications using whole numbers.\n"],null,["# Using Location Modifiers\n\n| **Note:** `heading` and `side_of_road` are incompatible. You may not use them for the same location.\n\nLocations may include modifiers to change how routes are calculated.\n\nUsing the Heading Parameter\n---------------------------\n\nWhen you specify waypoints (origin, destination, and intermediates) for a route,\nyou can specify the direction you want the vehicle to head when it arrives\nat each waypoint. You can use this feature to ensures that the vehicle arrives\non the same side of the road as the consumer waiting to be picked up. When you\ndon't specify a heading, the vehicle can arrive on the wrong side of the road.\n| **Note:** You can set the heading only when using either the `Drive` or `Two-wheeler` travel modes.\n\n### Specifying a heading for a waypoint\n\nHeading values are whole numbers that align with the compass directions, and\ntherefore range from zero to 359. For example, a value of 0 indicates a heading\ndirection of due North.\n\n### Example\n\nThe following example demonstrates how to set a\n[`heading`](/maps/documentation/routes_preferred/reference/rest/Shared.Types/Location#FIELDS.heading)\nfor a waypoint. \n\n```cplint\n{\n \"latLng\": {\n \"latitude\":37.419734,\n \"longitude\":-122.0827784\n },\n \"heading\": 127\n}\n```\n\nUsing the Side of Road Parameter\n--------------------------------\n\nWhen specifying a waypoint, you can request that the route go through whichever\nside of the road the waypoint is biased towards by using the `side_of_road`\nparameter.\n| **Note:** You can set `side_of_road` only when using the `Drive` travel mode.\n\n### Example\n\nThe following example demonstrates how to set\n[`side_of_road`](/maps/documentation/routes_preferred/reference/rest/Shared.Types/Waypoint#FIELDS.side_of_road)\nfor a waypoint. \n\n```cplint\n\"location\": {\n \"latLng\": {\n \"latitude\":37.419734,\n \"longitude\":-122.0827784\n },\n}\n\"sideOfRoad\": true\n```"]]