প্রিভিউ রিলিজ থেকে মাইগ্রেট করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ইউরোপিয়ান ইকোনমিক এরিয়া (EEA) ডেভেলপার Routes API 2022 সালের সেপ্টেম্বরে একটি সর্বজনীন প্রিভিউ (প্রি-GA) হিসাবে প্রকাশ করা হয়েছিল। প্রাক-GA অফারগুলি Google মানচিত্র প্ল্যাটফর্ম পরিষেবার নির্দিষ্ট শর্তাবলী দ্বারা আচ্ছাদিত। আরও তথ্যের জন্য, লঞ্চ পর্যায়ের বিবরণ দেখুন।
এই বিভাগে প্রিভিউ রিলিজ থেকে GA রিলিজে কীভাবে একটি অ্যাপ স্থানান্তর করা যায় তা বর্ণনা করে।
GA রিলিজে নতুন বৈশিষ্ট্য যোগ করা হয়েছে
GA রিলিজ নিম্নলিখিত নতুন বৈশিষ্ট্যগুলিকে যুক্ত করে যা পূর্বরূপে অন্তর্ভুক্ত ছিল না:
স্থান আইডি এবং অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কের সাথে, আপনি এখন ব্যবহার করে GA রিলিজে একটি অবস্থান নির্দিষ্ট করতে পারেন:
ঠিকানার স্ট্রিং ("শিকাগো, আইএল" বা "ডারউইন, এনটি, অস্ট্রেলিয়া")
ঠিকানার স্ট্রিংগুলি প্রায়শই একজন ব্যবহারকারী কীভাবে একটি ঠিকানা ইনপুট করে। যাইহোক, {product_name} একটি রুট গণনা করার আগে এটিকে অক্ষাংশ/দ্রাঘিমাংশ স্থানাঙ্কে রূপান্তর করতে প্রথমে ঠিকানা স্ট্রিংটিকে অভ্যন্তরীণভাবে জিওকোড করতে হবে।
উপরন্তু, regionCode
অনুরোধ প্যারামিটারের জন্য সমর্থন যোগ করা হয়েছে, যা আপনাকে একটি নির্দিষ্ট ভৌগলিক অঞ্চলের জন্য জিওকোড করা ফলাফলগুলিকে নির্দিষ্ট করতে দেয়৷
প্লাস কোড
প্লাস কোডগুলি হল রাস্তার ঠিকানার মতো লোকেদের বা জায়গাগুলির জন্য যেগুলির প্রকৃত ঠিকানা নেই৷ রাস্তার নাম এবং সংখ্যা সহ ঠিকানাগুলির পরিবর্তে, প্লাস কোডগুলি অক্ষাংশ এবং দ্রাঘিমাংশের উপর ভিত্তি করে এবং সংখ্যা এবং অক্ষর হিসাবে প্রদর্শিত হয়৷
কম্পিউট রুট প্রতিক্রিয়াতে এখন geocodingResults
অ্যারে রয়েছে। অনুরোধের প্রতিটি অবস্থানের জন্য (উৎপত্তি, গন্তব্য, বা মধ্যবর্তী পথপয়েন্ট) যা ঠিকানা স্ট্রিং বা প্লাস কোড হিসাবে নির্দিষ্ট করা হয়েছিল, API একটি স্থান আইডি সন্ধান করে। এই অ্যারের প্রতিটি উপাদানে অবস্থান সম্পর্কে অতিরিক্ত মেটাডেটা সহ একটি অবস্থানের সাথে সংশ্লিষ্ট স্থান আইডি রয়েছে। অনুরোধে স্থান আইডি বা অক্ষাংশ/লংগিচার স্থানাঙ্ক হিসাবে নির্দিষ্ট করা অবস্থানগুলি উপেক্ষা করা হয়৷
বিদ্যমান পূর্বরূপ বৈশিষ্ট্যে পরিবর্তন
আপনাকে এখন অনুরোধে নতুন অ্যারে extraComputations
ফিল্ড যোগ করে GA-তে নিম্নলিখিত বৈশিষ্ট্যগুলিকে স্পষ্টভাবে সক্রিয় করতে হবে:
প্রিভিউ রিলিজে, আপনি প্রতিক্রিয়াতে এই বৈশিষ্ট্যগুলির জন্য তথ্য ফেরত দেওয়ার জন্য নির্দিষ্ট করার জন্য একটি ফিল্ড মাস্ক ব্যবহার করেছেন। এখন, আপনাকে উভয়ই করতে হবে:
- এই বৈশিষ্ট্যগুলি সক্ষম করতে নতুন
extraComputations
অ্যারে অনুরোধ প্যারামিটার সেট করুন৷ - প্রতিক্রিয়াতে তথ্য ফেরত দেওয়ার জন্য নির্দিষ্ট করার জন্য একটি ফিল্ড মাস্ক সেট করুন।
আমার কি জানা দরকার?
নিম্নোক্ত ক্ষেত্রগুলিকে আর computeRouteMatrix প্রতিক্রিয়াগুলিতে অন্তর্ভুক্ত করা হবে না যদি না extraComputations
সেট করে স্পষ্টভাবে সক্রিয় করা হয়:
-
travelAdvisory.tollInfo
(টোল তথ্য)
নিম্নোক্ত ক্ষেত্রগুলিকে আর computeRoutes প্রতিক্রিয়াগুলিতে অন্তর্ভুক্ত করা হবে না যদি না extraComputations
সেট করে স্পষ্টভাবে সক্রিয় করা হয়:
-
routes.legs.travelAdvisory.tollInfo
(টোল তথ্য) -
routes.travelAdvisory.tollInfo
(টোল তথ্য) -
routes.travelAdvisory.fuelConsumptionMicroliters
(জ্বালানি খরচ) -
routes.travelAdvisory.speedReadingIntervals
(একটি পলিলাইনে ট্রাফিক) -
routes.legs.travelAdvisory.speedReadingIntervals
(একটি পলিলাইনে ট্রাফিক)
আমাকে কি করতে হবে?
পলিলাইনে টোল তথ্য, জ্বালানি খরচ বা ট্র্যাফিকের জন্য প্রতিক্রিয়া ক্ষেত্রগুলি পেতে, আপনাকে অবশ্যই নতুন অনুরোধ অ্যারে ক্ষেত্র, extraComputations
, নিম্নলিখিত মানগুলির মধ্যে এক বা একাধিক অন্তর্ভুক্ত করতে হবে:
টোল তথ্য পেতে, নতুন extraComputations
অ্যারে ক্ষেত্রটিকে "TOLLS"
এ সেট করুন।
জ্বালানী খরচ পেতে, নতুন extraComputations
অ্যারে ক্ষেত্রটিকে "FUEL_CONSUMPTION"
এ সেট করুন।
পলিলাইনে ট্র্যাফিক তথ্য পেতে, নতুন extraComputations
অ্যারে ক্ষেত্রটিকে "TRAFFIC_ON_POLYLINE"
এ সেট করুন৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-22 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Routes API has transitioned from Preview to General Availability (GA), introducing new features and changes to existing ones.\u003c/p\u003e\n"],["\u003cp\u003eYou can now specify locations using address strings and Plus Codes in addition to place IDs and coordinates.\u003c/p\u003e\n"],["\u003cp\u003eToll info, fuel consumption, and traffic on a polyline now require explicit enablement using the \u003ccode\u003eextraComputations\u003c/code\u003e field in requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egeocodingResults\u003c/code\u003e array has been added to the response, providing place IDs and metadata for locations specified as address strings or Plus Codes.\u003c/p\u003e\n"],["\u003cp\u003eExisting implementations relying on implicit inclusion of toll info, fuel consumption, or traffic on a polyline data need to be updated to utilize the \u003ccode\u003eextraComputations\u003c/code\u003e field.\u003c/p\u003e\n"]]],["The Routes API's GA release introduces new location specification options, including address strings and Plus Codes, and includes a `geocodingResults` array in the response. To enable toll info, fuel consumption, and traffic on a polyline, users must now set the `extraComputations` array in their requests. `extraComputations` values are \"TOLLS\", \"FUEL_CONSUMPTION\", and \"TRAFFIC_ON_POLYLINE\". The field mask must still be used. Certain fields will be omitted in the response unless enabled by `extraComputations`.\n"],null,["# Migrate from the Preview release\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 Routes API was released as a public Preview (pre-GA) in September of\n2022. Pre-GA Offerings are covered by the [Google Maps Platform Service Specific\nTerms](https://cloud.google.com/maps-platform/terms/maps-service-terms).\nFor more information, see the [launch stage descriptions](/maps/launch-stages).\n\nThis section describes how to migrate an app from the Preview release to the GA\nrelease.\n\nNew features added to the GA release\n------------------------------------\n\nThe GA release adds the following new features that were not included in the\nPreview:\n\n- Along with place IDs and latitude/longitude coordinates, you can now\n [specify a location](/maps/documentation/routes/specify_location) in the GA release by using:\n\n - [Address strings](/maps/documentation/routes/specify_location#text_string) (\"Chicago, IL\" or\n \"Darwin, NT, Australia\")\n\n Address strings are often how a user inputs an address. However,\n {product_name} must first geocode the address string internally to convert\n it to latitude/longitude coordinates before it can calculate a route.\n\n In addition, support for the `regionCode` request parameter has been\n added, which lets you specify to return geocoded results for a specific\n geographic region.\n - [Plus Codes](/maps/documentation/routes/specify_location#plus_code)\n\n Plus Codes are like street addresses for people or places that don't\n have an actual address. Instead of addresses with street names and\n numbers, Plus Codes are based on latitude and longitude, and are\n displayed as numbers and letters.\n- The [compute routes response](/maps/documentation/routes/understand-route-response) now contains the\n `geocodingResults` array. For every location in the request (origin,\n destination, or intermediate waypoint) that was specified as an **address\n string** or as a **Plus code**, the API performs a place ID lookup. Each\n element of this array contains the place ID corresponding to a location\n along with additional metadata about the location. Locations in the request\n specified as a place ID or as latitude/longiiture coordinates are ignored.\n\nChanges to existing Preview features\n------------------------------------\n\nYou must now explicitly enable the following features in the GA by\nadding the new array `extraComputations` field to the request:\n\n- [Toll info](/maps/documentation/routes/calculate_toll_fees)\n\n- [Fuel consumption](/maps/documentation/routes/eco-routes)\n\n- [Traffic on a polyline](/maps/documentation/routes/traffic_on_polylines)\n\nIn the Preview release, you used a [field mask](/maps/documentation/routes/choose_fields) to specify to\nreturn information for these features in the response. Now, you must both:\n\n- Set the new `extraComputations` array request parameter to enable these features.\n- Set a field mask to specify to return the information in the response.\n\n### What do I need to know?\n\nThe following fields will no longer be included in\n[computeRouteMatrix responses](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRouteMatrix#response-body)\nunless explicitly enabled by setting `extraComputations`:\n\n- `travelAdvisory.tollInfo` (Toll info)\n\nThe following fields will no longer be included in\n[computeRoutes responses](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#response-body)\nunless explicitly enabled by setting `extraComputations`:\n\n- `routes.legs.travelAdvisory.tollInfo`(Toll info)\n- `routes.travelAdvisory.tollInfo`(Toll info)\n- `routes.travelAdvisory.fuelConsumptionMicroliters`(Fuel consumption)\n- `routes.travelAdvisory.speedReadingIntervals`(Traffic on a polyline)\n- `routes.legs.travelAdvisory.speedReadingIntervals`(Traffic on a polyline)\n\n### What do I need to do?\n\nTo receive the response fields for toll info, fuel consumption, or traffic on a\npolyline, you must set the new request array field, `extraComputations`, to\ninclude one or more of the following values:\n\n- To receive [toll info](/maps/documentation/routes/calculate_toll_fees), set the new\n `extraComputations` array field to `\"TOLLS\"`.\n\n- To receive [fuel consumption](/maps/documentation/routes/eco-routes), set the new `extraComputations`\n array field to `\"FUEL_CONSUMPTION\"`.\n\n- To receive [traffic information on polylines](/maps/documentation/routes/traffic_on_polylines), set the\n new `extraComputations` array field to `\"TRAFFIC_ON_POLYLINE\"`."]]