স্বয়ংসম্পূর্ণ (নতুন) HTTP POST অনুরোধ ব্যবহার করে। একটি HTTP POST অনুরোধের অংশ হিসাবে অনুরোধের বডিতে বা হেডারে প্যারামিটারগুলি পাস করুন৷ বিপরীতে, লিগ্যাসি APIগুলির সাথে, আপনি একটি HTTP GET অনুরোধ ব্যবহার করে URL প্যারামিটার পাস করেন।
স্বয়ংসম্পূর্ণ (নতুন) প্রমাণীকরণ প্রক্রিয়া হিসাবে API কী এবং OAuth টোকেন উভয়কেই সমর্থন করে।
শুধুমাত্র JSON স্বয়ংসম্পূর্ণ (নতুন) এ একটি প্রতিক্রিয়া বিন্যাস হিসাবে সমর্থিত।
নিম্নোক্ত সারণী প্লেস স্বয়ংসম্পূর্ণ (উত্তরাধিকার) এবং ক্যোয়ারী স্বয়ংসম্পূর্ণ (উত্তরাধিকার) এর পরামিতিগুলি তালিকাভুক্ত করে যেগুলি স্বয়ংসম্পূর্ণ (নতুন) এর জন্য পুনঃনামকরণ বা পরিবর্তন করা হয়েছে, বা যে প্যারামিটারগুলি আর সমর্থিত নয়৷
বর্তমান পরামিতি
নতুন প্যারামিটার
নোট
components
includedRegionCodes
language
languageCode
location
locationBias
ipbias
আপনি যদি locationBias এবং locationRestriction উভয়ই বাদ দেন, তাহলে API ডিফল্টরূপে IP বায়াসিং ব্যবহার করে।
offset
inputOffset
radius
locationBias বা locationRestriction
region
regionCode
stricbounds
locationRestriction
sessiontoken
sessionToken
types
includedPrimaryTypes
উদাহরণ অনুরোধ
নিম্নলিখিত উদাহরণ GET অনুরোধ স্থান স্বয়ংসম্পূর্ণ (উত্তরাধিকার) ব্যবহার করে। এই উদাহরণে, আপনি "Amoeba" নামক স্থানগুলি সম্পর্কে তথ্য সম্বলিত একটি JSON প্রতিক্রিয়ার অনুরোধ করেন যেগুলি টাইপ establishment এবং URL প্যারামিটার হিসাবে সমস্ত প্যারামিটার পাস করে:
curl -L -X GET 'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=amoeba&types=establishment&location=37.76999%2C-122.44696&radius=500&key=YOUR_API_KEY'
স্বয়ংসম্পূর্ণ (নতুন), আপনি একটি POST অনুরোধ করেন এবং JSON অনুরোধের অংশে বা POST অনুরোধের অংশ হিসাবে শিরোনামে সমস্ত প্যারামিটার পাস করেন৷
স্বয়ংসম্পূর্ণ (নতুন) অনুরোধের জন্য ক্ষেত্রের মুখোশের প্রয়োজন নেই, তবে সেগুলি প্রতিক্রিয়ায় নির্দিষ্ট ফলাফলের জন্য ফিল্টার করতে ব্যবহার করা যেতে পারে। উদাহরণস্বরূপ, নিম্নলিখিত অনুরোধটি একটি ফিল্ড মাস্ক ব্যবহার করে তাই প্রতিক্রিয়াটিতে শুধুমাত্র পরামর্শের suggestions.placePrediction.text অন্তর্ভুক্ত থাকে:
[[["সহজে বোঝা যায়","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-09-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["**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\nIntroduction\n\nPlaces API supports the\n[Place Autocomplete (Legacy)](/maps/documentation/places/web-service/autocomplete)\nand [Query Autocomplete (Legacy)](/maps/documentation/places/web-service/query) APIs.\nIf you are familiar with these APIs, Autocomplete (New) makes the following changes:\n\n- Autocomplete (New) uses HTTP POST requests. Pass parameters in the request body or in headers as part of an HTTP POST request. In contrast, with the legacy APIs, you pass URL parameters using an HTTP GET request.\n- Autocomplete (New) supports both [API keys](/maps/documentation/places/web-service/get-api-key) and [OAuth](/maps/documentation/places/web-service/oauth-token) tokens as the authentication mechanism.\n- Only JSON is supported as a response format in Autocomplete (New).\n\nThe following table lists parameters in Place Autocomplete (Legacy) and Query Autocomplete (Legacy) that have been renamed or modified for Autocomplete (New), or parameters that are no longer supported.\n\n| Current parameter | New parameter | Notes |\n|-------------------|-----------------------------------------|-----------------------------------------------------------------------------------------------------|\n| `components` | `includedRegionCodes` | |\n| `language` | `languageCode` | |\n| `location` | `locationBias` | |\n| `ipbias` | | If you omit both `locationBias` and `locationRestriction`, then the API uses IP biasing by default. |\n| `offset` | `inputOffset` | |\n| `radius` | `locationBias` or `locationRestriction` | |\n| `region` | `regionCode` | |\n| `stricbounds` | `locationRestriction` | |\n| `sessiontoken` | `sessionToken` | |\n| `types` | `includedPrimaryTypes` | |\n\nExample request\n\nThe following example GET request uses Place Autocomplete (Legacy). In this\nexample, you request a JSON response containing information about places called\n\"Amoeba\" that are of type `establishment` and pass all parameters as URL\nparameters: \n\n```curl\ncurl -L -X GET 'https://maps.googleapis.com/maps/api/place/autocomplete/json?input=amoeba&types=establishment&location=37.76999%2C-122.44696&radius=500&key=YOUR_API_KEY'\n```\n\nWith Autocomplete (New), you make a POST request and pass all parameters\nin the JSON request body or in headers as part of the POST request.\n\nField masks are not required for Autocomplete (New) requests, but they can\nbe used to filter for specific results in the response. For example, the\nfollowing request uses a field mask so the response only includes the\n`suggestions.placePrediction.text` of the suggestion: \n\n```curl\ncurl -X POST -d '{\n \"input\": \"Amoeba\",\n \"locationBias\": {\n \"circle\": {\n \"center\": {\n \"latitude\": 37.76999,\n \"longitude\": -122.44696\n },\n \"radius\": 500.0\n }\n }\n}' \\\n-H 'Content-Type: application/json' -H 'X-Goog-Api-Key: API_KEY' \\\n-H 'X-Goog-FieldMask: suggestions.placePrediction.text' \\\nhttps://places.googleapis.com/v1/places:autocomplete\n```\n\nTo learn more about using field masks, see\n[Place Details (New)](/maps/documentation/places/web-service/place-details#fieldmask)."]]