এই পণ্য বা বৈশিষ্ট্য উত্তরাধিকার স্থিতি আছে. লিগ্যাসি স্ট্যাটাস এবং কীভাবে লিগ্যাসি থেকে নতুন পরিষেবাগুলিতে স্থানান্তর করা যায় সে সম্পর্কে আরও তথ্যের জন্য,
লিগ্যাসি পণ্য এবং বৈশিষ্ট্যগুলি দেখুন৷
দিকনির্দেশ API (উত্তরাধিকার) ওভারভিউ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ইউরোপিয়ান ইকোনমিক এরিয়া (EEA) ডেভেলপার 
দিকনির্দেশ API (উত্তরাধিকার) হল এমন একটি পরিষেবা যা একটি HTTP অনুরোধ গ্রহণ করে এবং অবস্থানগুলির মধ্যে JSON বা XML- ফর্ম্যাট করা দিকনির্দেশ প্রদান করে৷
কেন নির্দেশাবলী API ব্যবহার করুন
দিকনির্দেশ API এর সাহায্যে, আপনি পরিবহনের বিভিন্ন মোডের জন্য দিকনির্দেশ পেতে পারেন, যেমন ট্রানজিট, ড্রাইভিং, হাঁটা বা সাইকেল চালানো।
আপনি দিকনির্দেশ API দিয়ে কি করতে পারেন?
দিকনির্দেশ API এর সাহায্যে, আপনি নিম্নলিখিত বিবরণ সহ অবস্থানগুলির মধ্যে দিকনির্দেশ গণনা করতে পারেন:
- ট্রানজিট, ড্রাইভিং, হাঁটা বা সাইকেল চালানো সহ বিভিন্ন ধরণের পরিবহনের জন্য দিকনির্দেশ।
- ওয়েপয়েন্টের একটি সিরিজ ব্যবহার করে মাল্টিপার্ট দিকনির্দেশ।
- টেক্সট স্ট্রিং (উদাহরণস্বরূপ, "শিকাগো, আইএল" বা "ডারউইন, এনটি, অস্ট্রেলিয়া"), আইডি, বা অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কগুলি সহ একাধিক উপায়ে উত্স, গন্তব্য এবং ওয়েপয়েন্টগুলি নির্দিষ্ট করুন৷
দিকনির্দেশ API কিভাবে কাজ করে
দিকনির্দেশ গণনা করার সময় দিকনির্দেশ API সবচেয়ে কার্যকর রুটগুলি প্রদান করে। সবচেয়ে কার্যকর রুট নির্ধারণ করার সময় নিম্নলিখিত ভ্রমণ উপাদানগুলিতে পণ্যের কারণগুলি:
- ভ্রমণের সময় (প্রাথমিক)
- দূরত্ব
- বাঁক সংখ্যা
নিম্নলিখিত উদাহরণের অনুরোধটি JSON ফর্ম্যাটে টরন্টো, অন্টারিও থেকে মন্ট্রিল, কুইবেক পর্যন্ত ড্রাইভিং নির্দেশনা প্রদান করে:
https://maps.googleapis.com/maps/api/directions/json
?destination=Montreal
&origin=Toronto
&key=YOUR_API_KEY
সম্পদ
নিম্নলিখিত সারণীটি নির্দেশাবলী API-এর মাধ্যমে উপলব্ধ সংস্থানগুলির সংক্ষিপ্ত বিবরণ দেয় এবং এটি যে ডেটা প্রদান করে।
ডেটা সম্পদ | ডেটা ফিরে এসেছে | রিটার্ন ফরম্যাট |
---|
দিকনির্দেশ স্থানের আইডি, ঠিকানা, বা অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কের আকারে উত্স এবং গন্তব্য সরবরাহ করুন। বিস্তারিত জানার জন্য প্রয়োজনীয় পরামিতি দেখুন। | বিস্তারিত দিকনির্দেশ, রুট, পা এবং ধাপে বিভক্ত। বিস্তারিত জানার জন্য দিকনির্দেশের প্রতিক্রিয়া দেখুন। | |
কিভাবে দিকনির্দেশ API ব্যবহার করবেন
1 | সেট আপ করুন। | আপনার Google ক্লাউড প্রকল্প সেট আপ দিয়ে শুরু করুন এবং অনুসরণ করা সেটআপ নির্দেশাবলী সম্পূর্ণ করুন৷ |
2 | ডেমো চেষ্টা করুন | একবার আপনার কাছে একটি API কী এবং একটি ক্লাউড প্রজেক্ট থাকলে আপনি কোনো চার্জ ছাড়াই দিকনির্দেশের ডেমো ব্যবহার করে দেখুন। দিকনির্দেশ API ডেমো দেখুন। |
3 | একটি অনুরোধ তৈরি করুন | উদাহরণের অনুরোধগুলি দেখুন এবং উপলব্ধ বিকল্পগুলি সম্পর্কে জানুন যা আপনি সরবরাহ করতে পারেন, যেমন ভ্রমণের মোড, ওয়েপয়েন্ট এবং রুট সীমাবদ্ধতা। দিকনির্দেশের উদাহরণ দেখুন। |
4 | প্রতিক্রিয়া বুঝুন | আপনার অ্যাপের জন্য দিকনির্দেশ ডেটা ব্যবহার করার জন্য প্রস্তুত করতে ডেটা প্রতিক্রিয়াগুলি অন্বেষণ করুন৷ বিস্তারিত জানার জন্য দিকনির্দেশের প্রতিক্রিয়া দেখুন। |
5 | আপনার নিজের অ্যাপে দিকনির্দেশের ডেটা অন্তর্ভুক্ত করুন! | আপনি ভ্রমণের দূরত্ব এবং সময় গণনা করতে এই ডেটা ব্যবহার করতে পারেন। |
উপলব্ধ ক্লায়েন্ট লাইব্রেরি
নিম্নলিখিত ক্লায়েন্ট লাইব্রেরির মাধ্যমে আপনার পছন্দের ভাষায় এই API-কে কল করুন:
জাভা ক্লায়েন্ট, পাইথন ক্লায়েন্ট, গো ক্লায়েন্ট এবং Google মানচিত্র পরিষেবাগুলির জন্য Node.js ক্লায়েন্ট হল সম্প্রদায়-সমর্থিত ক্লায়েন্ট লাইব্রেরি, Apache 2.0 লাইসেন্সের অধীনে ওপেন সোর্স। এগুলি GitHub থেকে ডাউনলোড করুন, যেখানে আপনি ইনস্টলেশন নির্দেশাবলী এবং নমুনা কোডও পেতে পারেন।
এরপর কি
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Directions API provides route information between locations using various transportation modes like driving, walking, transit, or bicycling.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize your requests by specifying origins, destinations, waypoints, and travel preferences.\u003c/p\u003e\n"],["\u003cp\u003eThe API calculates the most efficient routes based on travel time, distance, and the number of turns.\u003c/p\u003e\n"],["\u003cp\u003eResults are available in JSON or XML format and include detailed directions, routes, legs, and steps.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are available in Java, Python, Go, and Node.js for easy integration into your applications.\u003c/p\u003e\n"]]],[],null,["# Directions API (Legacy) overview\n\n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nThe Directions API (Legacy) is a service that accepts an HTTP request and returns JSON or XML-formatted directions between locations.\n\nWhy use the Directions API\n--------------------------\n\nWith the Directions API, you can get directions for several modes of\ntransportation, such as transit, driving, walking, or bicycling.\n\nWhat you can do with the Directions API?\n----------------------------------------\n\nWith the Directions API, you can calculate directions between locations,\nincluding the following details:\n\n- Directions for several modes of transportation, including transit, driving, walking or bicycling.\n- Multipart directions using a series of waypoints.\n- Specify origins, destinations, and waypoints in multiple ways, including as text strings (for example, \"Chicago, IL\" or \"Darwin, NT, Australia\"), place IDs, or latitude/longitude coordinates.\n\nHow the Directions API works\n----------------------------\n\nThe Directions API returns the most efficient routes when\ncalculating directions. The product factors in the following travel elements\nwhen determining the most efficient route:\n\n- Travel time (primary)\n- Distance\n- Number of turns\n\nThe following example request returns driving directions from Toronto, Ontario to Montreal, Quebec in JSON format: \n\n```scdoc\nhttps://maps.googleapis.com/maps/api/directions/json\n ?destination=Montreal\n &origin=Toronto\n &key=YOUR_API_KEY\n```\n\n### Resources\n\nThe following table summarizes the resources available through the\nDirections API along with the data it returns.\n\n\u003cbr /\u003e\n\n| Data resources | Data returned | Return format |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [Directions](/maps/documentation/directions/get-directions#DirectionsRequests) Supply origins and destinations in the form of place IDs, addresses, or latitude/longitude coordinates. See [required parameters](/maps/documentation/directions/get-directions#required-parameters) for details. | Detailed directions, broken into routes, legs, and steps. See [Directions responses](/maps/documentation/directions/get-directions#DirectionsResponses) for details. | - JSON - XML |\n\n\u003cbr /\u003e\n\nHow to use the Directions API\n-----------------------------\n\n|---|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up.** | Start with [Set up your Google Cloud project](/maps/documentation/directions/cloud-setup) and complete the setup instructions that follow. |\n| 2 | **Try the demo** | Once you have an API key and a cloud project you try out the directions demo at no charge. See [The Directions API demo](/maps/documentation/directions/start). |\n| 3 | **Build a request** | See the example requests and learn about the available options you can supply, such as travel modes, waypoints, and route restrictions. See [Directions examples](/maps/documentation/directions/get-directions#ExampleRequests). |\n| 4 | **Understand response basics** | Explore the data responses to prepare to use directions data for your app. See [Directions responses](/maps/documentation/directions/get-directions#DirectionsResponses) for details. |\n| 5 | **Incorporate direction data into your own app!** | You can use this data to calculate travel distance and time. |\n\n#### Available client libraries\n\nCall this API in the language of\nyour choice through one of the following client libraries:\n\n- [Java\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-java)\n- [Python\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-python)\n- [Go Client\n for Google Maps Services](https://github.com/googlemaps/google-maps-services-go)\n- [Node.js\n Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-js)\n\nThe Java Client, Python Client, Go Client and Node.js Client for Google Maps\nServices are community-supported client libraries, open sourced under the\n[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).\nDownload them from GitHub, where you can also find installation instructions and sample code.\n\nWhat's next\n-----------\n\n- **Start using the Directions API** : Go to [Get started](/maps/documentation/directions/start).\n- **Start making Directions requests** : Go to [Get\n directions](/maps/documentation/directions/get-directions).\n- **Follow best practices** : Go to [Web service best\n practices](/maps/documentation/directions/web-service-best-practices)."]]