রাস্তার API ওভারভিউ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Roads API এমন একটি পরিষেবা যা মানচিত্রের এক বা একাধিক পয়েন্টের জন্য অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্ক সহ HTTPS অনুরোধগুলি গ্রহণ করে। এটি কাছাকাছি রাস্তার অংশগুলি খুঁজে পেতে এই পয়েন্টগুলি ব্যবহার করে এবং মেটাডেটা সহ একটি স্থান আইডি প্রদান করে যেমন নিকটতম রাস্তার অংশ এবং গতি সীমা।
কেন Roads API ব্যবহার করুন
Roads API এর মাধ্যমে, আপনি গতির সীমা, আনুমানিক আগমনের সময় বা অন্যান্য রাস্তার মেটাডেটা পেতে পারেন। এই রাস্তার মেটাডেটা দিয়ে, আপনি নিম্নলিখিত ক্ষমতাগুলির সাথে আপনার ড্রাইভিং অ্যাপগুলিকে উন্নত করতে পারেন:
- একটি রাস্তা বা রাস্তার সাথে অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্ক সংযুক্ত করুন।
- স্থানাঙ্কের একটি সেটের জন্য নিকটতম রাস্তা খুঁজুন
- রাস্তার অংশগুলির জন্য গতি সীমা পান
আপনি Roads API দিয়ে কি করতে পারেন
Roads API সাহায্যে, আপনি রাস্তার জ্যামিতিতে GPS স্থানাঙ্ক ম্যাপ করতে পারেন এবং রাস্তার অংশগুলির সাথে গতিসীমা নির্ধারণ করতে পারেন৷
- Snap to Roads এই পরিষেবাটি GPS স্থানাঙ্কের প্রদত্ত সেটের উপর ভিত্তি করে ভ্রমণ করা সম্ভাব্য রাস্তাগুলি ফেরত দেয়৷ আপনি একটি রুট বরাবর সংগৃহীত 100টি পর্যন্ত জিপিএস পয়েন্ট নির্দিষ্ট করতে পারেন। ঐচ্ছিকভাবে, আপনি অনুরোধ করতে পারেন যে পরিষেবাটি অতিরিক্ত পয়েন্টগুলিকে ইন্টারপোলেট করে, যার ফলে রাস্তার জ্যামিতিকে মসৃণভাবে অনুসরণ করে এমন একটি পথ তৈরি হয়।
- নিকটতম রাস্তাগুলি এই পরিষেবাটি একটি GPS পয়েন্টের জন্য নিকটতম রাস্তার অংশ প্রদান করে৷ আপনি 100 জিপিএস পয়েন্ট পর্যন্ত নির্দিষ্ট করতে পারেন। আপনার নির্দিষ্ট করা পয়েন্টগুলির একটি অবিচ্ছিন্ন পথের অংশ হতে হবে না।
- গতি সীমা এই পরিষেবাটি একটি রাস্তার অংশের জন্য পোস্ট করা গতি সীমা ফেরত দেয়৷ সম্পদ ট্র্যাকিং লাইসেন্স সহ সমস্ত গ্রাহকদের জন্য গতি সীমা পরিষেবা উপলব্ধ। Google Maps প্ল্যাটফর্ম প্রিমিয়াম প্ল্যানের গ্রাহকদের জন্য যারা মূল্য পরিশোধ করার জন্য পরিবর্তন করেছেন, বৈশিষ্ট্যটি সক্রিয় থাকবে।
Roads API কিভাবে কাজ করে
Roads API তিনটি এন্ডপয়েন্ট ব্যবহার করে যা অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্ক গ্রহণ করে বা রাস্তার পাথ, সেগমেন্ট বা গতি সীমা ডেটা প্রদানের জন্য আইডি স্থাপন করে। নিম্নলিখিত উদাহরণটি অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কের একটি সেটের উপর ভিত্তি করে নিকটতম রাস্তাগুলির জন্য একটি অনুরোধ দেখায়:
https://roads.googleapis.com/v1/nearestRoads
?points=60.170880%2C24.942795%7C60.170879%2C24.942796%7C60.170877%2C24.942796
&key=YOUR_API_KEY
সম্পদ
নিম্নলিখিত সারণীতে Roads API মাধ্যমে উপলব্ধ সংস্থানগুলির সংক্ষিপ্ত বিবরণ দেওয়া হয়েছে এবং এটি যে ডেটা ফেরত দেয়।
তথ্য সম্পদ | ডেটা ফিরে এসেছে | রিটার্ন ফরম্যাট |
---|
রাস্তায় স্ন্যাপ করুন | একটি রুট থেকে 100টি পর্যন্ত GPS পয়েন্টের একটি অ্যারে প্রদান করে। স্থানের আইডি সহ রাস্তা-ছাড়া দ্রাঘিমাংশ/অক্ষাংশ স্থানাঙ্ক অন্তর্ভুক্ত করে। রাস্তার নির্দেশিকা স্ন্যাপ- এ প্রতিক্রিয়াগুলিতে বিশদ বিবরণ দেখুন। | |
কাছের রাস্তা | প্রতিটি নির্দিষ্ট বিন্দুর জন্য নিকটতম রাস্তার জন্য স্থান আইডি সহ 100টি পর্যন্ত স্বাধীন অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কের একটি অ্যারে। পয়েন্ট ক্রমাগত হতে হবে না. নিকটবর্তী রাস্তা নির্দেশিকায় প্রতিক্রিয়াগুলিতে বিশদ বিবরণ দেখুন। |
গতি সীমা | 100টি পর্যন্ত রাস্তার মেটাডেটা উপাদানগুলির একটি অ্যারে৷ এর মধ্যে গতি সীমা এবং স্থানের আইডি রয়েছে, যার ইউনিট হয় KPH বা MPH-এ। গতি সীমা নির্দেশিকাতে প্রতিক্রিয়াগুলিতে বিশদ বিবরণ দেখুন। |
Roads API কীভাবে ব্যবহার করবেন
1 | স্ন্যাপ টু রোড ডেমো চেষ্টা করুন | একটি ট্র্যাক তৈরি করতে ডেমোতে ক্লিক করুন এবং দেখুন কিভাবে স্ন্যাপ টু রোডস এন্ডপয়েন্ট মসৃণ ডেটা প্রদান করে। স্ন্যাপ টু রোড গাইডে ডেমো দেখুন। আপনি একটি API কী প্রয়োজন নেই. |
2 | সেট আপ করুন | আপনার Google ক্লাউড প্রকল্প সেট আপ দিয়ে শুরু করুন এবং অনুসরণ করা সেটআপ নির্দেশাবলী সম্পূর্ণ করুন এবং তারপর আপনার API কী কীভাবে ব্যবহার করবেন তা শিখুন। |
3 | রাস্তার অনুরোধে স্ন্যাপ করার চেষ্টা করুন | রাস্তার উদাহরণগুলির একটি ব্যবহার করুন এবং আপনার ব্যবহারের ক্ষেত্রে প্রাসঙ্গিক একটি চেষ্টা করুন। |
4 | আপনার রাস্তার জন্য গতি সীমা পান | আপনার স্ন্যাপ টু রোড অনুরোধের জন্য আপনি যে পাথ ডেটা প্রদান করেছেন সেটি ব্যবহার করে, একটি গতি সীমা প্রশ্ন জারি করুন। একটি পাথ ব্যবহার করে উদাহরণ অনুরোধ দেখুন। |
5 | দীর্ঘ পথ প্রক্রিয়া কিভাবে শিখুন | উন্নত ধারণা নির্দেশিকাতে দীর্ঘ পথ প্রক্রিয়াকরণের বিভাগগুলি অনুসরণ করুন। |
6 | আপনার নিজের অ্যাপে রাস্তার ডেটা একত্রিত করুন! | আপনার নিজের অ্যাপে রোড ডেটা কার্যকারিতা তৈরি করা শুরু করতে রোড স্ন্যাপড ডেমো থেকে বিশদ কোডের উদাহরণ দেখুন। |
উপলব্ধ ক্লায়েন্ট লাইব্রেরি
নিম্নলিখিত ক্লায়েন্ট লাইব্রেরির মাধ্যমে আপনার পছন্দের ভাষায় এই API-কে কল করুন:
জাভা ক্লায়েন্ট, পাইথন ক্লায়েন্ট, গো ক্লায়েন্ট এবং Google মানচিত্র পরিষেবাগুলির জন্য Node.js ক্লায়েন্ট হল সম্প্রদায়-সমর্থিত ক্লায়েন্ট লাইব্রেরি, Apache 2.0 লাইসেন্সের অধীনে ওপেন সোর্স। এগুলি GitHub থেকে ডাউনলোড করুন, যেখানে আপনি ইনস্টলেশন নির্দেশাবলী এবং নমুনা কোডও পেতে পারেন।
এরপর কি
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Roads API enhances maps applications by connecting coordinates with roads, finding nearby roads, and providing speed limit data.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three core functionalities: snapping GPS points to roads, identifying nearest roads, and retrieving speed limits.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage client libraries for Java, Python, Go, and Node.js to integrate the Roads API.\u003c/p\u003e\n"],["\u003cp\u003eThe API accepts latitude/longitude coordinates and returns data like Place IDs, road segments, and speed limits in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eYou can get started by exploring the documentation, trying the demo, setting up a Google Cloud project, and experimenting with code examples.\u003c/p\u003e\n"]]],["The Roads API processes HTTPS requests with latitude/longitude coordinates to identify nearby road segments. It offers three main services: Snap to Roads, which maps up to 100 GPS points to road geometry; Nearest Roads, which identifies the closest road segment for up to 100 independent GPS points; and Speed Limits, which returns posted speed limits and place IDs for road segments. Users can integrate these functionalities using client libraries or by making direct requests with an API key.\n"],null,["# Roads API overview\n\nThe Roads API is a service that accepts HTTPS requests with latitude/longitude coordinates for one or more points on a map. It uses these points to find nearby road segments and returns a Place ID along with metadata such as the nearest road segment and speed limits.\n\nWhy use the Roads API\n---------------------\n\nWith the Roads API, you can get speed limits, estimated\narrival times, or other road metadata. With this road\nmetadata, you can enhance your driving apps with the follow capabilities:\n\n- Connect latitude/longitude coordinates with a road or roads.\n- Find the nearest road for a set of coordinates\n- Get speed limits for road segments\n\nWhat you can do with the Roads API\n----------------------------------\n\nWith the Roads API, you can map GPS coordinates to the\ngeometry of the road, and determine the speed limit along road\nsegments.\n\n- **[Snap to Roads](/maps/documentation/roads/snap)** This service returns the most likely roads traveled based on the provided set of GPS coordinates. You can specify up to 100 GPS points collected along a route. Optionally, you can also request that the service interpolates additional points, resulting in a path that smoothly follows the geometry of the road.\n- **[Nearest Roads](/maps/documentation/roads/nearest)** This service returns the nearest road segment for a GPS point. You can specify up to 100 GPS points. The points you specify don't need to be part of a continuous path.\n- **[Speed limits](/maps/documentation/roads/speed-limits)** This service returns the posted speed limit for a road segment. The Speed Limit service is available to all customers with an Asset Tracking license. For [Google Maps Platform Premium Plan](/maps/premium) customers who transitioned to pay-as-you-go pricing, the feature remains active.\n\nHow the Roads API works\n-----------------------\n\nThe Roads API uses three endpoints which accept latitude/longitude\ncoordinates or place IDs to provide road paths, segments, or speed limit data.\nThe following example shows a request for nearest roads based on a set\nof latitude/longitude coordinates: \n\n```scdoc\nhttps://roads.googleapis.com/v1/nearestRoads\n ?points=60.170880%2C24.942795%7C60.170879%2C24.942796%7C60.170877%2C24.942796\n &key=YOUR_API_KEY\n```\n\n### Resources\n\nThe following table summarizes the resources available through the\nRoads API along with the data it returns.\n\n\u003cbr /\u003e\n\n| Data resources | Data returned | Return format |\n|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| **[Snap to roads](/maps/documentation/roads/snap)** | Returns an array of up to 100 GPS points from a route. Includes road-snapped longitude/latitude coordinates along with place IDs. See details in [Responses](/maps/documentation/roads/snap#responses) in the Snap to roads guide. | - JSON |\n| **[Nearest roads](/maps/documentation/roads/nearest)** | An array of up to 100 independent latitude/longitude coordinates along with place IDs for the nearest road for each specified point. Points do not need to be continuous. See details in [Responses](/maps/documentation/roads/nearest#responses) in the Nearest roads guide. | - JSON |\n| **[Speed limits](/maps/documentation/roads/speed-limits)** | An array of up to 100 road metadata elements. These contain speed limits and place IDs, with units either in KPH or MPH. See details in [Responses](/maps/documentation/roads/nearest#responses) in the Speed limits guide. | - JSON |\n\n\u003cbr /\u003e\n\nHow to use the Roads API\n------------------------\n\n|---|----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Try the snap to roads demo** | Click the demo to create a track and see how the snap to roads endpoint provides smooth data. See [Demo](/maps/documentation/roads/snap#demo) in the **Snap to roads** guide. You don't need an API key. |\n| 2 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/roads/cloud-setup) and complete the setup instructions that follow and then learn [how to use your API key](/maps/documentation/roads/get-api-key). |\n| 3 | **Try a snap to roads request** | [Use one of the snap to roads examples](/maps/documentation/roads/snap#examples) and try one relevant to your use case. |\n| 4 | **Get speed limits for your road path** | Using the same path data you provided for your snap to roads request, issue a speed limit query. See the [Example request using a path](/maps/documentation/roads/speed-limits#example_request_using_a_path). |\n| 5 | **Learn how to process long paths** | Follow the sections on [Processing long paths](/maps/documentation/roads/advanced#processing_long_paths) in the **Advanced concepts** guide. |\n| 6 | **Incorporate road data into your own app!** | See the [detailed code example](/maps/documentation/roads/snap#javascript-+-html) from the road snapped demo to start building road data functionality into your own app. |\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- **Try out the Roads API** : Go to [Roads Inspector](/maps/documentation/roads/inspector)\n- **Learn how to make Roads API requests** : Go to the service you're interested in:\n - [Snap to roads](/maps/documentation/roads/snap)\n - [Nearest roads](/maps/documentation/roads/nearest)\n - [Speed limits](/maps/documentation/roads/speed-limits)\n- **Understand Advanced Concepts** : Go to [Advanced Concepts](/maps/documentation/roads/advanced)\n- **Follow best practices** : Go to [Web Services Best Practices](/maps/documentation/roads/web-service-best-practices)"]]