কাছাকাছি অনুসন্ধান (নতুন) API এর মাধ্যমে স্থানীয় আবিষ্কার উন্নত করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই নথিতে, আপনি কীভাবে একটি সহজ এবং সাশ্রয়ী মূল্যের তৈরি করতে কাছাকাছি অনুসন্ধান (নতুন) API ব্যবহার করবেন তা দেখবেন৷
স্থানীয় আবিষ্কারের অভিজ্ঞতা।
একটি স্থানীয় আবিষ্কার অভিজ্ঞতা ব্যবহারকারীদের একটি হোটেল বা রিয়েল এস্টেট অনুসন্ধান করার সময় আপনার নির্দিষ্ট করা একটি অবস্থানের কাছাকাছি আগ্রহের মূল স্থানগুলি দেখায়৷ এটি প্রায়শই একটি ইন্টারেক্টিভ মানচিত্র নিয়ে থাকে, যেখানে একটি স্থান চয়নকারী এবং ফটোগুলির একটি গ্যালারি সহ একটি অতিরিক্ত প্যানেল থাকে৷ ইন্টারঅ্যাক্টিভিটির সাথে অভিজ্ঞতা বাড়াতে আপনাকে বিভিন্ন Google মানচিত্র প্ল্যাটফর্ম পণ্য এবং ক্ষমতা উপস্থাপন করা হবে।

কেস ব্যবহার করুন
এখন আসুন স্থানীয় আবিষ্কার ইন্টিগ্রেশন ড্রাইভ ব্যবহারকারীর মূল্যের উপাদানগুলি বুঝতে পারি:
আবিষ্কার - বিভিন্ন ধরণের প্রাসঙ্গিক স্থানগুলিকে সার্ফেস করে ব্যবহারকারীদের একটি একক অবস্থানের চারপাশে কী রয়েছে তার একটি ওভারভিউ দিন৷
ইন্টারঅ্যাকটিভিটি - ব্যবহারকারীদের একটি স্থান নির্বাচন করতে এবং গতিশীলভাবে ডেটা রিফ্রেশ করার ক্ষমতা দেয়৷
সেই জায়গার সাপেক্ষে।
ভিজ্যুয়ালাইজেশন - স্থান পর্যালোচনা, ফটো প্রদান
এবং ব্যবহারকারীদের জন্য হাঁটার সময় এবং দূরত্ব দ্রুত বুঝতে পারে যে এটি তাদের প্রয়োজনের সাথে খাপ খায় কিনা।
রেফারেন্স আর্কিটেকচার

স্থানীয় আবিষ্কার
একটি স্থানীয় আবিষ্কার অভিজ্ঞতা তৈরি করার অনেক উপায় আছে। নিম্নোক্ত ইন্টিগ্রেশন হল ব্যবহারকারীর অভিজ্ঞতার একটি কাস্টম উদাহরণ যা সুপরিচিত Google Maps Platform API-এর পাশাপাশি কিছু উত্তেজনাপূর্ণ নতুন বৈশিষ্ট্যগুলিকে কাজে লাগায়৷ আপনি যদি স্থানীয় আবিষ্কারের জন্য একটি টেমপ্লেটেড পন্থা পেতে চান তাহলে আপনি ওয়েব কম্পোনেন্ট ব্যবহার করতে পারেন।
নমুনা আবেদন
নমুনা ওয়াকথ্রু
আপনি Google মানচিত্র প্ল্যাটফর্ম API-এর সাথে প্রযুক্তিগত বাস্তবায়নের বিবরণ সহ ধাপে বিভক্ত নমুনা অ্যাপ্লিকেশনটির নীচের সারণীতে পাবেন।
1. স্বয়ংসম্পূর্ণ অনুসন্ধান অবস্থান সহ অবস্থান অনুসন্ধান
- মানচিত্র জাভাস্ক্রিপ্ট API লোড করুন।
- স্থান স্বয়ংসম্পূর্ণ ক্যোয়ারী বা মানচিত্রে অবস্থান চয়ন করুন.

2. কাছাকাছি অনুসন্ধান (নতুন) API ব্যবহার করে আগ্রহের স্থানীয় পয়েন্টগুলিকে সারফেস করুন৷
- জনপ্রিয়তা র্যাঙ্কিং (আরো প্রাসঙ্গিক ফলাফল) বা দূরত্ব র্যাঙ্কিং।
-
includedTypes
, excludedTypes
; আপনি যদি হোটেল হন তবে আপনি "লজিং" টাইপ বাদ দিতে পারেন এবং শুধুমাত্র উপযুক্ত প্রকারগুলি অন্তর্ভুক্ত করতে পারেন, যেমন: "রেস্তোরাঁ, ক্যাফে, পার্ক, ট্যুরিট_অ্যাট্রাকশন"। - ফলাফলের উপর আরও বেশি নিয়ন্ত্রণের জন্য প্রাইমারি টাইপস,
excludedPrimaryTypes
includedPrimaryTypes
। - অপর্যাপ্ত সংখ্যক ফলাফল বা খুব দূরে স্থান এড়াতে অবস্থান সীমাবদ্ধতা; শূন্য ফলাফলের ক্ষেত্রে, ফলাফল প্রদর্শনের আগে বৃত্ত/আয়তক্ষেত্রের আকার প্রশস্ত করুন।

অনুরোধ করা ডেটা ফিল্ড সহ হোটেল বুক করার সময় নমুনা জিজ্ঞাসা করুন:
- মৌলিক (
displayName
, types
, openingHours
, formattedAddress
) - যোগাযোগ (
websiteUri
, nationalPhoneNumber
, internationalPhoneNumber
) - পছন্দের (
reviews
, priceLevel
, userRatingCount
)
{ "includedTypes": ["restaurant","cafe","park"], "excludedTypes":
["lodging","convenience_store"], "includedPrimaryTypes":
["restaurant","tourist_attraction","airport"], "excludedPrimaryTypes":
["lodging"], "maxResultCount": 20, "locationRestriction": { "circle": {
"center": { "latitude": 37.7937, "longitude": -122.3965 }, "radius": 500.0 } } }
অনুরোধ করা ডেটা ফিল্ড সহ রিয়েল এস্টেট অনুসন্ধান করার সময় নমুনা জিজ্ঞাসা করুন:
- মৌলিক (
displayName
, types
, openingHours
, formattedAddress
)
{ "includedTypes": ["school","transport","bus","convenience_store"],
"excludedTypes": ["lodging"], "includedPrimaryTypes":
["restaurant","tourist_attraction","airport"], "excludedPrimaryTypes":
["lodging"], "maxResultCount": 20, "locationRestriction": { "circle": {
"center": { "latitude": 37.7937, "longitude": -122.3965 }, "radius": 500.0 } } }
3. ডায়নামিক মানচিত্র এবং দিকনির্দেশ API এর সাথে ইন্টারঅ্যাকটিভিটি যোগ করুন
- দিকনির্দেশ API জিজ্ঞাসা করে আপ টু ডেট লেগ এবং পদক্ষেপগুলি । * পরবর্তী বিভাগে সময় ব্যবহার করুন.

বর্ণনা : displayName
, types
, rating
, userRatingCount
, priceLevel
।
সময় : পূর্ববর্তী দিকনির্দেশ API ক্যোয়ারী থেকে আসছে।
পর্যালোচনা : reviews[i].author
, reviews[i].rating
, reviews[i].text
।
ছবি : কাছাকাছি অনুসন্ধান (নতুন) API-এর অনিয়ন্ত্রিত প্রিভিউ চলাকালীন, আপনাকে স্থানের বিশদ বিবরণকে place.id
দিয়ে জিজ্ঞাসা করতে হবে ফটো_রেফারেন্স পেতে তারপর আপনার অভিজ্ঞতায় একবারে একটি ক্যোয়ারী করতে হবে

ক্যোয়ারী গণনা এবং খরচ সংশ্লিষ্ট
উপসংহার
একটি স্থানীয় আবিষ্কার অভিজ্ঞতা ব্যবহারকারীর মূল্য প্রদান করার একটি শক্তিশালী উপায়। এই প্রদর্শনী বাস্তবায়নে এমন অনেক বৈশিষ্ট্য রয়েছে যা আপনি Google মানচিত্র প্ল্যাটফর্মে কাছাকাছি অনুসন্ধান (নতুন) API থেকে বিশেষ ক্ষমতা সহ এমন একটি অভিজ্ঞতা তৈরি করার সময় অন্তর্ভুক্ত করতে পারেন৷
পরবর্তী পদক্ষেপ
আরও পড়ার পরামর্শ দেওয়া হয়েছে:
অবদানকারী
প্রধান লেখক:
টমাস অ্যাংলারেট | গুগল ম্যাপ প্ল্যাটফর্ম সলিউশন ইঞ্জিনিয়ার
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-27 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-27 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis document demonstrates how to build a local discovery experience using the Nearby Search (New) API, enhancing user engagement with interactive maps and relevant place recommendations.\u003c/p\u003e\n"],["\u003cp\u003eLocal discovery experiences benefit users by offering discovery of nearby points of interest, interactive place selection and dynamic data refresh, and visualizations with reviews, photos, and travel times.\u003c/p\u003e\n"],["\u003cp\u003eThis guide presents a custom local discovery implementation leveraging Google Maps Platform APIs including Nearby Search (New) API, Places Autocomplete, Directions API, and Place Photo API for detailed place information.\u003c/p\u003e\n"],["\u003cp\u003eThe example application showcases the process of location search using Autocomplete, retrieving local points of interest with Nearby Search (New) API, adding interactivity with Dynamic Maps and Directions API, and displaying detailed place information upon interaction.\u003c/p\u003e\n"],["\u003cp\u003eCost considerations are outlined, highlighting API usage and billing based on the specific Google Maps Platform products involved in the local discovery experience.\u003c/p\u003e\n"]]],["This document details how to create a local discovery experience using Google Maps Platform APIs. Key actions include using the **Nearby Search (New) API** to surface relevant places near a specified location, filtering results with `includedTypes`, `excludedTypes`, `includedPrimaryTypes`, and `excludedPrimaryTypes`, and `locationRestriction`. The experience is enriched by using **Places Autocomplete**, **Directions API**, and **Places Details** for interactivity, detailed information, and visuals. Cost and billing considerations are also outlined for each API used.\n"],null,["In this document, you will look into how to use [Nearby Search (New) API](https://developers.google.com/maps/documentation/places/web-service/search-nearby-new)to\nbuild a simple and cost effective\n\nlocal discovery experience.\n\nA local discovery experience shows users key places of interest near a location\nyou specify when searching for a hotel or a real estate. It often consists of an\ninteractive map, with an additional panel containing a place chooser and a\ngallery of photos. You will be presented with different Google Maps Platform\nproducts and capabilities to enhance the experience with interactivity.\n\nUse Cases\n\nNow let's understand what elements of the local discovery integration drive user\nvalue:\n\n- **Discovery** - Give users an overview of what is around a single location\n by surfacing relevant places of various types.\n\n- **Interactivity** - Empower users to select a place and dynamically refresh the data\n\n relative to that place.\n- **Visualization** - Provide places reviews, photos\n\n and walking time and distance for the users to quickly understand if it fits\n their needs.\n\nReference Architecture\n\nLocal Discovery\n\nThere are many ways to create a local discovery experience. The following\nintegration is a **custom example** of a user experience that leverages well\nknown Google Maps Platform APIs as well as some exciting new features. If you\nwish to have a templated approach to local discovery you can use [Web\nComponents](https://github.com/googlemaps/extended-component-library/tree/main/place_overview).\n\nSample Application\n\nSample Walkthrough\n\nYou will find in the table below the sample application broken into steps\ntogether with a description of the technical implementation with Google Maps\nPlatform APIs.\n\n1. Location Search with AutocompleteSearch location\n\n- Load **Maps Javascript API**.\n- **Places Autocomplete** query or pick location on the map.\n\n2. Surface local points of interest using **[Nearby Search (New) API](https://developers.google.com/maps/documentation/places/web-service/search-nearby-new)**\n\n- Popularity ranking (more relevant results) or Distance ranking.\n- `includedTypes`, `excludedTypes` ; if you are a hotel you can exclude \"lodging\" type, and include only suited types, ie: \"restaurant, cafe, park, tourit_attraction\".\n- Leverage `includedPrimaryTypes`, `excludedPrimaryTypes` for even more control over results.\n- \\`locationRestriction to avoid insufficient number of results or too far away places ; in case of ZERO results, broaden the circle / rectangle size prior to display results.\n\nQuery sample when **booking a hotel** with Data fields requested:\n\n- Basic (`displayName`, `types`, `openingHours`, `formattedAddress`)\n- Contact (`websiteUri`, `nationalPhoneNumber`, `internationalPhoneNumber`)\n- Preferred (`reviews`, `priceLevel`, `userRatingCount`)\n\n```scdoc\n { \"includedTypes\": [\"restaurant\",\"cafe\",\"park\"], \"excludedTypes\":\n[\"lodging\",\"convenience_store\"], \"includedPrimaryTypes\":\n[\"restaurant\",\"tourist_attraction\",\"airport\"], \"excludedPrimaryTypes\":\n[\"lodging\"], \"maxResultCount\": 20, \"locationRestriction\": { \"circle\": {\n\"center\": { \"latitude\": 37.7937, \"longitude\": -122.3965 }, \"radius\": 500.0 } } }\n```\n\nQuery sample when **searching a real estate** with Data fields requested:\n\n- Basic (`displayName`, `types`, `openingHours`, `formattedAddress`)\n\n```scdoc\n { \"includedTypes\": [\"school\",\"transport\",\"bus\",\"convenience_store\"],\n\"excludedTypes\": [\"lodging\"], \"includedPrimaryTypes\":\n[\"restaurant\",\"tourist_attraction\",\"airport\"], \"excludedPrimaryTypes\":\n[\"lodging\"], \"maxResultCount\": 20, \"locationRestriction\": { \"circle\": {\n\"center\": { \"latitude\": 37.7937, \"longitude\": -122.3965 }, \"radius\": 500.0 } } }\n```\n\n3. Add **interactivity** with Dynamic Maps and Directions API\n\n- Up to date **leg and steps** by querying **[Directions\n API](https://developers.google.com/maps/documentation/directions/overview)**. \\* Use time in the next section.\n\n4. Display detailed information of the place upon interaction\n\n1. **Description** : `displayName`, `types`, `rating`, `userRatingCount`,\n `priceLevel`.\n\n **Time**: coming from the previous Directions API query.\n2. **Reviews** : `reviews[i].author`, `reviews[i].rating`,`reviews[i].text`.\n\n3. **Images** : during *Unrestricted Preview of Nearby Search (New) API* , you\n will have to query [Places\n Details](https://developers.google.com/maps/documentation/places/web-service/details)\n with [place.id](http://place.id) to get\n [photo_reference](https://developers.google.com/maps/documentation/places/web-service/details#Place-photos)\n to then query one at a time in your experience\n\nQueries count and cost associated\n\n- [Maps JavaScript\n API](https://developers.google.com/maps/documentation/javascript/usage-and-billing#pricing-for-product): 1 map at load of the experience.\n- Places Autocomplete API: 1 query every character typed (if using the [Autocomplete\n Widget](https://developers.google.com/maps/documentation/javascript/place-autocomplete)), it can be customised.\n- [Nearby Search (New)\n API](https://developers.google.com/maps/documentation/places/web-service/search-nearby-new): 1 query every 20 places displayed. Different billing according to [Place\n data](https://developers.google.com/maps/documentation/places/web-service/usage-and-billing#data-skus) that are part of the query response.\n- [Directions\n API](https://developers.google.com/maps/documentation/directions/usage-and-billing#pricing-for-product): 1 query every place selected by the user.\n- [Place Photo\n API](https://developers.google.com/maps/documentation/places/web-service/usage-and-billing#places-photo-new-ent-sku): 1 query every photo displayed.\n\nConclusion\n\nA local discovery experience is a powerful way to deliver user value. This\ndemonstration implementation has many features you are likely to include when\ncreating such an experience on Google Maps Platform with special capabilities\nfrom the [Nearby Search (New) API](https://developers.google.com/maps/documentation/places/web-service/search-nearby-new).\n\nNext Steps\n\nSuggested further reading:\n\n- [Web Components in the Maps JavaScript API](https://developers.google.com/maps/documentation/web-components/overview)\n- [Places Autocomplete Optimization](https://developers.google.com/maps/documentation/places/web-service/autocomplete#best-practices)\n- Other [Places Services](https://developers.google.com/maps/documentation/places/web-service/overview)\n- Leave feedback below.\n\nContributors\n\nPrincipal authors:\n\n[Thomas Anglaret](https://www.linkedin.com/in/thomas-anglaret/) \\| Google Maps\nPlatform Solutions Engineer"]]