فهرست
-
Places(رابط کاربری) -
AddressDescriptor(پیام) -
AddressDescriptor.Area(پیام) -
AddressDescriptor.Area.Containmentمحدودسازی (شمارشی) -
AddressDescriptor.Landmark(پیام) -
AddressDescriptor.Landmark.SpatialRelationship(شمارشی) -
AuthorAttribution(پیام) -
AutocompletePlacesRequest(پیام) -
AutocompletePlacesRequest.LocationBias(پیام) -
AutocompletePlacesRequest.LocationRestriction(پیام) -
AutocompletePlacesResponse(پیام) -
AutocompletePlacesResponse.Suggestion(پیام) -
AutocompletePlacesResponse.Suggestion.FormattableTextقالببندیشده (پیام) -
AutocompletePlacesResponse.Suggestion.PlacePrediction(پیام) -
AutocompletePlacesResponse.Suggestion.QueryPredictionپاسخ (پیام) -
AutocompletePlacesResponse.Suggestion.StringRange(پیام) -
AutocompletePlacesResponse.Suggestion.StructuredFormatساختاریافته (پیام) -
Circle(پیام) -
ContentBlock(پیام) -
ContextualContent(پیام) -
ContextualContent.Justification(پیام) -
ContextualContent.Justification.BusinessAvailabilityAttributesJustificationویژگیهای دسترسیپذیری کسبوکار. توجیه (پیام) -
ContextualContent.Justification.ReviewJustificationتوجیه (پیام) -
ContextualContent.Justification.ReviewJustification.HighlightedTextبرجسته شده (پیام) -
ContextualContent.Justification.ReviewJustification.HighlightedText.HighlightedTextRangeبرجسته.محدوده متن برجسته (پیام) -
EVChargeOptions(پیام) -
EVChargeOptions.ConnectorAggregation(پیام) -
EVConnectorType(شمارشی) -
FuelOptions(پیام) -
FuelOptions.FuelPrice(پیام) -
FuelOptions.FuelPrice.FuelType(شمارشی) -
GetPhotoMediaRequest(پیام) -
GetPlaceRequest(پیام) -
Photo(پیام) -
PhotoMedia(پیام) -
Place(پیام) -
Place.AccessibilityOptions(پیام) -
Place.AddressComponent(پیام) -
Place.Attribution(پیام) -
Place.BusinessStatus(شمارشی) -
Place.ConsumerAlert(پیام) -
Place.ConsumerAlert.Details(پیام) -
Place.ConsumerAlert.Details.Link(پیام) -
Place.ContainingPlace(پیام) - خلاصه پیام
Place.EvChargeAmenitySummary -
Place.GenerativeSummary(پیام) -
Place.GoogleMapsLinksگوگلمپ (پیام) -
Place.NeighborhoodSummary(پیام) -
Place.OpeningHoursکاری (پیام) -
Place.OpeningHours.Period(پیام) -
Place.OpeningHours.Period.Point(پیام) -
Place.OpeningHours.SecondaryHoursTypeثانویه (شمارشی) -
Place.OpeningHours.SpecialDayکاری.روز خاص (پیام) -
Place.ParkingOptions(پیام) -
Place.PaymentOptions(پیام) -
Place.PlusCode(پیام) -
Place.ReviewSummary(پیام) -
Place.SubDestination(پیام) -
Polyline(پیام) -
PriceLevel(شمارشی) -
PriceRange(پیام) -
Review(پیام) -
RouteModifiers(پیام) -
RoutingParameters(پیام) -
RoutingPreference(شمارشی) -
RoutingSummary(پیام) -
RoutingSummary.Leg(پیام) -
SearchNearbyRequest(پیام) - محدودیت
SearchNearbyRequest.LocationRestriction(پیام) -
SearchNearbyRequest.RankPreference(شمارشی) -
SearchNearbyResponse(پیام) -
SearchTextRequest(پیام) -
SearchTextRequest.EVOptions(پیام) -
SearchTextRequest.LocationBias(پیام) - محدودیت
SearchTextRequest.LocationRestriction(پیام) -
SearchTextRequest.RankPreference(شمارشی) -
SearchTextRequest.SearchAlongRouteParameters(پیام) -
SearchTextResponse(پیام) -
TravelMode(شمارشی)
مکانها
تعریف سرویس برای API مکانها. توجه: هر درخواستی (به جز درخواستهای تکمیل خودکار و GetPhotoMedia) نیاز به یک ماسک فیلد دارد که خارج از پروتوی درخواست تنظیم شده باشد ( all/* ، فرض نمیشود). ماسک فیلد را میتوان از طریق هدر HTTP X-Goog-FieldMask تنظیم کرد. به این لینک مراجعه کنید: https://developers.google.com/maps/documentation/places/web-service/choose-fields
| مکانهای تکمیل خودکار |
|---|
پیشبینیها را برای ورودی داده شده برمیگرداند.
|
| GetPhotoMedia |
|---|
یک رسانه عکس با رشته مرجع عکس تهیه کنید.
|
| دریافت مکان |
|---|
جزئیات یک مکان را بر اساس نام منبع آن، که رشتهای با فرمت
|
| جستجودر نزدیکی |
|---|
جستجوی مکانهای نزدیک به مکانهای مورد نظر.
|
| متن جستجو |
|---|
جستجوی مکان مبتنی بر جستجوی متنی
|
توصیفگر آدرس
توصیف رابطهای از یک مکان. شامل مجموعهای رتبهبندیشده از نشانههای نزدیک و مناطق دقیق شامل و ارتباط آنها با مکان هدف.
| فیلدها | |
|---|---|
landmarks[] | فهرستی رتبهبندیشده از مکانهای دیدنی نزدیک. شناختهشدهترین و نزدیکترین مکانها در رتبه اول قرار دارند. |
areas[] | فهرستی رتبهبندیشده از مناطق شامل یا مجاور. قابل تشخیصترین و دقیقترین مناطق در ابتدا رتبهبندی میشوند. |
مساحت
اطلاعات منطقه و ارتباط منطقه با مکان هدف.
مناطق شامل زیرمحلیتهای دقیق، همسایگیها و ترکیبات بزرگی است که برای توصیف یک مکان مفید هستند.
| فیلدها | |
|---|---|
name | نام منبع منطقه. |
place_id | شناسه مکان منطقه. |
display_name | نام نمایشی منطقه. |
containment | رابطه مکانی بین مکان هدف و منطقه را تعریف میکند. |
مهار
رابطه مکانی بین مکان هدف و منطقه را تعریف میکند.
| انومها | |
|---|---|
CONTAINMENT_UNSPECIFIED | مهار نامشخص است. |
WITHIN | مکان هدف در محدودهی منطقه، نزدیک به مرکز است. |
OUTSKIRTS | مکان هدف در محدودهی ناحیه، نزدیک به لبه است. |
NEAR | مکان مورد نظر خارج از منطقه مورد نظر است، اما نزدیک به آن است. |
نقطه عطف
اطلاعات اولیهی مکان دیدنی و ارتباط آن مکان دیدنی با موقعیت هدف.
نشانههای جغرافیایی، مکانهای برجستهای هستند که میتوان از آنها برای توصیف یک مکان استفاده کرد.
| فیلدها | |
|---|---|
name | نام منبعِ آن مکان دیدنی. |
place_id | شناسه مکانِ مورد نظر. |
display_name | نام نمایشی بنای تاریخی. |
types[] | مجموعهای از تگهای نوع برای این نشانه. برای فهرست کاملی از مقادیر ممکن، به https://developers.google.com/maps/documentation/places/web-service/place-types مراجعه کنید. |
spatial_relationship | رابطه مکانی بین مکان هدف و نقطه عطف را تعریف میکند. |
straight_line_distance_meters | فاصله مستقیم، بر حسب متر، بین نقطه مرکزی هدف و نقطه مرکزی نقطه عطف. در برخی شرایط، این مقدار میتواند بیشتر از |
travel_distance_meters | مسافت طی شده، بر حسب متر، در امتداد شبکه جادهای از هدف تا نقطه عطف، در صورت مشخص بودن. این مقدار، روش حمل و نقل مانند پیادهروی، رانندگی یا دوچرخهسواری را در نظر نمیگیرد. |
روابط فضایی
رابطه مکانی بین مکان هدف و نقطه عطف را تعریف میکند.
| انومها | |
|---|---|
NEAR | این رابطه پیشفرض است، زمانی که هیچ مورد خاص دیگری در زیر اعمال نمیشود. |
WITHIN | این نقطه عطف دارای هندسه فضایی است و هدف در محدوده آن قرار دارد. |
BESIDE | هدف مستقیماً در مجاورت نقطه عطف قرار دارد. |
ACROSS_THE_ROAD | هدف مستقیماً روبروی نقطه عطف در طرف دیگر جاده است. |
DOWN_THE_ROAD | در همان مسیرِ نشانِ راهنما اما نه در کنار یا در عرض آن. |
AROUND_THE_CORNER | نه در همان مسیرِ نشانِ تاریخی، بلکه فقط یک پیچ با آن فاصله دارد. |
BEHIND | نزدیک به سازهی این بنای تاریخی اما دورتر از ورودیهای خیابان آن. |
انتساب نویسنده
اطلاعات مربوط به نویسندهی دادههای UGC. مورد استفاده در Photo و Review .
| فیلدها | |
|---|---|
display_name | |
uri | |
photo_uri | |
تکمیل خودکاردرخواست مکانها
درخواست نمونه اولیه برای AutocompletePlaces.
| فیلدها | |
|---|---|
input | الزامی. رشته متنی که جستجو روی آن انجام میشود. |
location_bias | اختیاری. بایاس نتایج را به یک مکان مشخص شده هدایت میکند. حداکثر یکی از |
location_restriction | اختیاری. نتایج را به یک مکان مشخص محدود کنید. حداکثر یکی از |
included_primary_types[] | اختیاری. نوع مکان اصلی (مثلاً "رستوران" یا "پمپ بنزین") در انواع مکان ( https://developers.google.com/maps/documentation/places/web-service/place-types ) ، یا فقط |
included_region_codes[] | اختیاری. فقط نتایج را در مناطق مشخص شده، که به عنوان حداکثر ۱۵ کد منطقه دو کاراکتری CLDR مشخص شدهاند، لحاظ کنید. یک مجموعه خالی نتایج را محدود نمیکند. اگر هر دو |
language_code | اختیاری. زبانی که نتایج به آن برگردانده میشود. پیشفرض en-US است. اگر زبان مورد استفاده در |
region_code | اختیاری. کد منطقه، که به عنوان کد منطقه دو کاراکتری CLDR مشخص شده است. این بر قالببندی آدرس، رتبهبندی نتایج تأثیر میگذارد و ممکن است بر نتایج بازگردانده شده تأثیر بگذارد. این امر نتایج را به منطقه مشخص شده محدود نمیکند. برای محدود کردن نتایج به یک منطقه، |
origin | اختیاری. نقطه مبدا که از آن فاصله ژئودزیک تا مقصد محاسبه میشود (به صورت |
input_offset | اختیاری. یک آفست کاراکتر یونیکد مبتنی بر صفر از اگر خالی باشد، به طور پیشفرض طول |
include_query_predictions | اختیاری. اگر درست باشد، پاسخ شامل پیشبینیهای مکان و پرسوجو خواهد بود. در غیر این صورت، پاسخ فقط پیشبینیهای مکان را برمیگرداند. |
session_token | اختیاری. رشتهای که یک جلسه تکمیل خودکار را برای اهداف صورتحساب مشخص میکند. باید یک رشته base64 ایمن برای URL و نام فایل با حداکثر ۳۶ کاراکتر ASCII باشد. در غیر این صورت خطای INVALID_ARGUMENT بازگردانده میشود. جلسه زمانی شروع میشود که کاربر شروع به تایپ یک پرسوجو میکند و زمانی که مکانی را انتخاب میکند و درخواست Place Details یا Address Validation انجام میشود، پایان مییابد. هر جلسه میتواند چندین پرسوجو داشته باشد و به دنبال آن یک درخواست Place Details یا Address Validation قرار گیرد. اعتبارنامههای استفاده شده برای هر درخواست در یک جلسه باید متعلق به همان پروژه Google Cloud Console باشد. پس از پایان یک جلسه، توکن دیگر معتبر نیست؛ برنامه شما باید برای هر جلسه یک توکن جدید تولید کند. اگر پارامتر ما دستورالعملهای زیر را توصیه میکنیم:
|
include_pure_service_area_businesses | اختیاری. اگر فیلد روی true تنظیم شده باشد، کسبوکارهای صرفاً خدماتی را نیز اضافه کنید. کسبوکار صرفاً خدماتی، کسبوکاری است که مستقیماً از مشتریان بازدید میکند یا به آنها کالا تحویل میدهد، اما به آدرس کسبوکار آنها خدمات ارائه نمیدهد. برای مثال، کسبوکارهایی مانند خدمات نظافت یا لولهکشی. این کسبوکارها آدرس فیزیکی یا مکانی در نقشههای گوگل ندارند. Places فیلدهایی از جمله |
include_future_opening_businesses | اختیاری. در صورت صحیح بودن، کسبوکارهایی را که هنوز باز نشدهاند اما در آینده باز خواهند شد، لحاظ کنید. |
موقعیت مکانی
منطقه مورد جستجو. نتایج ممکن است حول منطقه مشخص شده جانبدارانه باشند.
| فیلدها | |
|---|---|
| |
rectangle | دریچه دیدی که توسط یک گوشه شمال شرقی و یک گوشه جنوب غربی تعریف شده است. |
circle | دایرهای که با یک نقطه مرکزی و شعاع مشخص میشود. |
محدودیت مکانی
منطقه مورد جستجو. نتایج به منطقه مشخص شده محدود خواهد شد.
| فیلدها | |
|---|---|
| |
rectangle | دریچه دیدی که توسط یک گوشه شمال شرقی و یک گوشه جنوب غربی تعریف شده است. |
circle | دایرهای که با یک نقطه مرکزی و شعاع مشخص میشود. |
تکمیل خودکارپاسخ مکانها
نمونه اولیه پاسخ برای AutocompletePlaces.
| فیلدها | |
|---|---|
suggestions[] | شامل فهرستی از پیشنهادها است که به ترتیب نزولی اهمیت مرتب شدهاند. |
پیشنهاد
نتیجه پیشنهاد تکمیل خودکار.
| فیلدها | |
|---|---|
| |
place_prediction | پیشگویی برای یک مکان. |
query_prediction | پیشبینی برای یک پرسوجو. |
متن قابل قالببندی
متنی که نشاندهندهی پیشبینی مکان یا پرسوجو است. این متن میتواند به همین صورت یا با فرمت دلخواه استفاده شود.
| فیلدها | |
|---|---|
text | متنی که میتواند به همین صورت استفاده شود یا با |
matches[] | فهرستی از محدودههای رشتهای که مشخص میکند درخواست ورودی در کجای این مقادیر، فاصلههای کاراکتری |
پیشبینی مکان
نتایج پیشبینی برای پیشبینی تکمیل خودکار مکان.
| فیلدها | |
|---|---|
place | نام منبع مکان پیشنهادی. این نام میتواند در سایر APIهایی که نام مکان را میپذیرند، استفاده شود. |
place_id | شناسه منحصر به فرد مکان پیشنهادی. این شناسه میتواند در سایر APIهایی که شناسه مکان را میپذیرند، استفاده شود. |
text | شامل نام قابل خواندن توسط انسان برای نتیجهی برگردانده شده است. برای نتایج مربوط به تأسیس، این نام معمولاً نام و آدرس کسب و کار است. این متن ممکن است با اگر |
structured_format | تجزیه پیشبینی مکان به متن اصلی شامل نام مکان و متن ثانویه شامل ویژگیهای ابهامزدایی اضافی (مانند شهر یا منطقه). |
types[] | فهرست انواعی که برای این مکان از جدول A یا جدول B در https://developers.google.com/maps/documentation/places/web-service/place-types اعمال میشوند. یک نوع، دستهبندی یک مکان است. مکانهایی که انواع مشترکی دارند، ویژگیهای مشابهی نیز خواهند داشت. |
distance_meters | طول ژئودزیک بر حسب متر از |
پیشبینی پرسوجو
نتایج پیشبینی برای پیشبینی تکمیل خودکار پرسوجو.
| فیلدها | |
|---|---|
text | متن پیشبینیشده. این متن نشاندهندهی یک مکان نیست، بلکه یک عبارت متنی است که میتواند در یک نقطهی پایانی جستجو (مثلاً جستجوی متن) استفاده شود. اگر |
structured_format | تجزیه پیشبینی پرسوجو به متن اصلی حاوی پرسوجو و متن ثانویه حاوی ویژگیهای ابهامزدایی اضافی (مانند شهر یا منطقه). |
محدوده رشته
یک زیررشته را در متن داده شده شناسایی میکند.
| فیلدها | |
|---|---|
start_offset | آفست مبتنی بر صفر اولین کاراکتر یونیکد رشته (شامل). |
end_offset | آفست آخرین کاراکتر یونیکد مبتنی بر صفر (منحصراً). |
قالببندی ساختاریافته
شامل تجزیه پیشبینی مکان یا پرسوجو به متن اصلی و متن ثانویه است.
برای پیشبینیهای مکان، متن اصلی شامل نام خاص مکان است. برای پیشبینیهای جستجو، متن اصلی شامل جستجو است.
متن ثانویه شامل ویژگیهای ابهامزدایی اضافی (مانند شهر یا منطقه) برای شناسایی بیشتر مکان یا اصلاح عبارت جستجو است.
| فیلدها | |
|---|---|
main_text | نام مکان یا عبارت جستجو را نشان میدهد. |
secondary_text | ویژگیهای ابهامزدایی اضافی (مانند یک شهر یا منطقه) را برای شناسایی بیشتر مکان یا اصلاح پرسوجو نشان میدهد. |
دایره
دایرهای با مرکز و شعاع LatLng رسم کنید.
| فیلدها | |
|---|---|
center | الزامی. طول و عرض جغرافیایی مرکز. محدوده عرض جغرافیایی باید بین [-90.0، 90.0] و محدوده طول جغرافیایی باید بین [-180.0، 180.0] باشد. |
radius | الزامی. شعاع بر حسب متر اندازهگیری شده است. شعاع باید در محدوده [0.0، 50000.0] باشد. |
بلوک محتوا
بلوکی از محتوا که میتواند به صورت جداگانه ارائه شود.
| فیلدها | |
|---|---|
content | مطالب مرتبط با موضوع. |
referenced_places[] | فهرست نامهای منابع مکانهای ارجاعشده. این نام میتواند در سایر APIهایی که نامهای منابع Place را میپذیرند، استفاده شود. |
محتوای زمینهای
آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید.
محتوایی که با عبارت جستجو شده در مورد مکان مرتبط باشد.
| فیلدها | |
|---|---|
reviews[] | فهرست نظرات درباره این مکان، متناسب با عبارت جستجو شده. |
photos[] | اطلاعات (شامل منابع) درباره عکسهای این مکان، متناسب با عبارت جستجو شده. |
justifications[] | آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید. توجیهاتی برای مکان. |
توجیه
آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید.
توجیهات برای مکان. توجیهات به این سوال پاسخ میدهند که چرا یک مکان میتواند برای کاربر نهایی جذاب باشد.
| فیلدها | |
|---|---|
| |
review_justification | آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید. |
business_availability_attributes_justification | آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید. |
توجیه ویژگیهای در دسترس بودن کسب و کار
تجربی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید. توجیهات ویژگیهای در دسترس بودن کسب و کار. این بخش برخی از ویژگیهای یک کسب و کار را نشان میدهد که میتواند برای کاربر نهایی جذاب باشد.
| فیلدها | |
|---|---|
takeout | اگر جایی غذای بیرونبر ارائه میدهد. |
delivery | اگر مکانی خدمات تحویل ارائه میدهد. |
dine_in | اگر مکانی امکان صرف غذا در محل را فراهم میکند. |
بررسی توجیه
آزمایشی: برای جزئیات بیشتر به https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative مراجعه کنید.
توجیهات نقد کاربر. این بخش از نقد کاربر را که برای کاربر نهایی جالب است، برجسته میکند. برای مثال، اگر عبارت جستجو "پیتزای هیزمی" باشد، توجیه نقد، متن مرتبط با عبارت جستجو را برجسته میکند.
| فیلدها | |
|---|---|
highlighted_text | |
review | مروری که متن هایلایت شده از آن تولید شده است. |
متن برجسته
متن هایلایت شده توسط توجیه. این زیرمجموعهای از خودِ نقد است. کلمهی دقیقی که باید هایلایت شود با HighlightedTextRange مشخص شده است. ممکن است چندین کلمه در متن هایلایت شده وجود داشته باشد.
| فیلدها | |
|---|---|
text | |
highlighted_text_ranges[] | فهرست محدودههای متن هایلایت شده. |
محدوده متن برجسته
محدوده متن هایلایت شده.
| فیلدها | |
|---|---|
start_index | |
end_index | |
گزینههای شارژ EV
اطلاعات مربوط به ایستگاه شارژ خودروهای برقی که در Place قرار دارد. اصطلاحات مربوطه در آدرس https://afdc.energy.gov/fuels/electricity_infrastructure.html آمده است. یک پورت میتواند همزمان یک خودرو را شارژ کند. هر پورت دارای یک یا چند کانکتور است. هر ایستگاه دارای یک یا چند پورت است.
| فیلدها | |
|---|---|
connector_count | تعداد کانکتورها در این ایستگاه. با این حال، از آنجا که برخی از پورتها میتوانند چندین کانکتور داشته باشند اما فقط میتوانند یک خودرو را در یک زمان شارژ کنند (مثلاً)، تعداد کانکتورها ممکن است بیشتر از تعداد کل خودروهایی باشد که میتوانند همزمان شارژ شوند. |
connector_aggregation[] | فهرستی از مجموعه کانکتورهای شارژ خودروهای برقی که شامل کانکتورهایی از نوع و نرخ شارژ یکسان هستند. |
تجمیع کانکتور
اطلاعات شارژ خودروهای برقی بر اساس [type, max_charge_rate_kw] گروهبندی شده است. تجمیع شارژ خودروهای برقی با کانکتورهایی که نوع و حداکثر نرخ شارژ یکسانی بر حسب کیلووات دارند را نشان میدهد.
| فیلدها | |
|---|---|
type | نوع کانکتور این تجمیع. |
max_charge_rate_kw | حداکثر نرخ شارژ استاتیک بر حسب کیلووات برای هر کانکتور در تجمیع. |
count | تعداد کانکتورها در این تجمیع. |
availability_last_update_time | مهر زمانی که آخرین بار اطلاعات مربوط به در دسترس بودن کانکتور در این مجموعه بهروزرسانی شده است. |
available_count | تعداد کانکتورهای موجود در این مجموعه در حال حاضر. |
out_of_service_count | تعداد کانکتورهای موجود در این تجمیع که در حال حاضر از سرویس خارج هستند. |
نوع کانکتور EV
برای اطلاعات/زمینه بیشتر در مورد انواع کانکتور شارژ خودروهای برقی، به آدرس http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6872107 مراجعه کنید.
| انومها | |
|---|---|
EV_CONNECTOR_TYPE_UNSPECIFIED | کانکتور نامشخص. |
EV_CONNECTOR_TYPE_OTHER | انواع دیگر کانکتور |
EV_CONNECTOR_TYPE_J1772 | کانکتور نوع ۱ J1772. |
EV_CONNECTOR_TYPE_TYPE_2 | کانکتور IEC 62196 نوع 2. اغلب به عنوان MENNEKES شناخته میشود. |
EV_CONNECTOR_TYPE_CHADEMO | کانکتور نوع CHAdeMO. |
EV_CONNECTOR_TYPE_CCS_COMBO_1 | سیستم شارژ ترکیبی (AC و DC). بر اساس SAE. کانکتور نوع 1 J-1772 |
EV_CONNECTOR_TYPE_CCS_COMBO_2 | سیستم شارژ ترکیبی (AC و DC). مبتنی بر کانکتور نوع ۲ منکس |
EV_CONNECTOR_TYPE_TESLA | کانکتور عمومی TESLA. این کانکتور در آمریکای شمالی NACS است، اما در سایر نقاط جهان میتواند غیر NACS باشد (مثلاً CCS Combo 2 (CCS2) یا GB/T). این مقدار کمتر نشاندهندهی نوع کانکتور واقعی است و بیشتر نشاندهندهی قابلیت شارژ یک وسیله نقلیه با برند تسلا در یک ایستگاه شارژ متعلق به تسلا است. |
EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T | نوع GB/T مطابق با استاندارد GB/T در چین است. این نوع، تمام انواع GB_T را پوشش میدهد. |
EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET | پریز دیواری نامشخص. |
EV_CONNECTOR_TYPE_NACS | سیستم شارژ آمریکای شمالی (NACS)، که با استاندارد SAE J3400 شناخته میشود. |
گزینههای سوخت
جدیدترین اطلاعات در مورد گزینههای سوخت در پمپ بنزین. این اطلاعات مرتباً بهروزرسانی میشود.
| فیلدها | |
|---|---|
fuel_prices[] | آخرین قیمت سوخت شناخته شده برای هر نوع سوختی که این جایگاه دارد. برای هر نوع سوختی که این جایگاه دارد، یک ورودی وجود دارد. ترتیب مهم نیست. |
قیمت سوخت
اطلاعات قیمت سوخت برای یک نوع معین.
| فیلدها | |
|---|---|
type | نوع سوخت. |
price | قیمت سوخت. |
update_time | آخرین باری که قیمت سوخت بهروزرسانی شده است. |
نوع سوخت
انواع سوخت.
| انومها | |
|---|---|
FUEL_TYPE_UNSPECIFIED | نوع سوخت نامشخص |
DIESEL | سوخت دیزل. |
DIESEL_PLUS | دیزل به علاوه سوخت. |
REGULAR_UNLEADED | معمولی بدون سرب. |
MIDGRADE | میانرده. |
PREMIUM | پریمیوم. |
SP91 | اس پی ۹۱. |
SP91_E10 | اس پی ۹۱ ای۱۰. |
SP92 | اس پی ۹۲. |
SP95 | اس پی ۹۵. |
SP95_E10 | SP95 E10. |
SP98 | اس پی ۹۸. |
SP99 | اس پی ۹۹. |
SP100 | اس پی ۱۰۰. |
LPG | گاز مایع نفتی. |
E80 | ای ۸۰. |
E85 | ای ۸۵. |
E100 | ای ۱۰۰. |
METHANE | متان |
BIO_DIESEL | بیودیزل. |
TRUCK_DIESEL | دیزل کامیون. |
درخواست دریافت عکس از رسانه
درخواست دریافت عکس از یک مکان با استفاده از نام منبع عکس.
| فیلدها | |
|---|---|
name | الزامی. نام منبع یک رسانه تصویری با فرمت: نام منبع یک عکس که در فیلد |
max_width_px | اختیاری. حداکثر عرض دلخواه تصویر را بر حسب پیکسل مشخص میکند. اگر تصویر از مقادیر مشخص شده کوچکتر باشد، تصویر اصلی برگردانده میشود. اگر تصویر در هر دو بُعد بزرگتر باشد، مقیاس آن به گونهای تنظیم میشود که با کوچکترین بُعد از دو بُعد مطابقت داشته باشد و به نسبت ابعاد اصلی خود محدود شود. هر دو ویژگی max_height_px و max_width_px یک عدد صحیح بین ۱ تا ۴۸۰۰ را میپذیرند. اگر مقدار در محدوده مجاز نباشد، خطای INVALID_ARGUMENT برگردانده میشود. حداقل یکی از max_height_px یا max_width_px باید مشخص شود. اگر هیچ کدام از max_height_px یا max_width_px مشخص نشده باشند، خطای INVALID_ARGUMENT برگردانده میشود. |
max_height_px | اختیاری. حداکثر ارتفاع دلخواه تصویر را بر حسب پیکسل مشخص میکند. اگر تصویر از مقادیر مشخص شده کوچکتر باشد، تصویر اصلی برگردانده میشود. اگر تصویر در هر دو بُعد بزرگتر باشد، مقیاس آن به گونهای تنظیم میشود که با کوچکترین بُعد از دو بُعد مطابقت داشته باشد و به نسبت ابعاد اصلی خود محدود شود. هر دو ویژگی max_height_px و max_width_px یک عدد صحیح بین ۱ تا ۴۸۰۰ را میپذیرند. اگر مقدار در محدوده مجاز نباشد، خطای INVALID_ARGUMENT برگردانده میشود. حداقل یکی از max_height_px یا max_width_px باید مشخص شود. اگر هیچ کدام از max_height_px یا max_width_px مشخص نشده باشند، خطای INVALID_ARGUMENT برگردانده میشود. |
skip_http_redirect | اختیاری. در صورت تنظیم، از رفتار پیشفرض تغییر مسیر HTTP صرف نظر کرده و پاسخی با فرمت متنی (مثلاً در قالب JSON برای مورد استفاده HTTP) ارائه میدهد. در صورت تنظیم نشدن، یک تغییر مسیر HTTP برای هدایت فراخوانی به رسانه تصویر صادر میشود. این گزینه برای درخواستهای غیر HTTP نادیده گرفته میشود. |
درخواست دریافت مکان
درخواست برای دریافت یک مکان بر اساس نام منبع آن، که رشتهای با فرمت places/{place_id} است.
| فیلدها | |
|---|---|
name | الزامی. نام منبع یک مکان، با فرمت |
language_code | اختیاری. جزئیات مکان در صورت وجود با زبان دلخواه نمایش داده خواهد شد. فهرست فعلی زبانهای پشتیبانیشده: https://developers.google.com/maps/faq#languagesupport . |
region_code | اختیاری. کد یونیکد کشور/منطقه (CLDR) مکانی که درخواست از آنجا میآید. این پارامتر برای نمایش جزئیات مکان، مانند نام مکان خاص منطقه، در صورت وجود، استفاده میشود. این پارامتر میتواند بر اساس قانون مربوطه بر نتایج تأثیر بگذارد. برای اطلاعات بیشتر، به https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html مراجعه کنید. توجه داشته باشید که کدهای منطقه ای سه رقمی در حال حاضر پشتیبانی نمی شوند. |
session_token | اختیاری. رشتهای که یک جلسه تکمیل خودکار را برای اهداف صورتحساب مشخص میکند. باید یک رشته base64 ایمن برای URL و نام فایل با حداکثر ۳۶ کاراکتر ASCII باشد. در غیر این صورت خطای INVALID_ARGUMENT بازگردانده میشود. جلسه زمانی شروع میشود که کاربر شروع به تایپ یک پرسوجو میکند و زمانی که مکانی را انتخاب میکند و درخواست Place Details یا Address Validation انجام میشود، پایان مییابد. هر جلسه میتواند چندین پرسوجو داشته باشد و به دنبال آن یک درخواست Place Details یا Address Validation قرار گیرد. اعتبارنامههای استفاده شده برای هر درخواست در یک جلسه باید متعلق به همان پروژه Google Cloud Console باشد. پس از پایان یک جلسه، توکن دیگر معتبر نیست؛ برنامه شما باید برای هر جلسه یک توکن جدید تولید کند. اگر پارامتر ما دستورالعملهای زیر را توصیه میکنیم:
|
عکس
اطلاعات مربوط به عکس یک مکان.
| فیلدها | |
|---|---|
name | شناسه. مرجعی که نشاندهنده عکس این مکان است و میتوان از آن برای جستجوی مجدد عکس این مکان استفاده کرد (همچنین به آن نام "منبع" API نیز گفته میشود: |
width_px | حداکثر عرض موجود، بر حسب پیکسل. |
height_px | حداکثر ارتفاع قابل دسترس، بر حسب پیکسل. |
author_attributions[] | نویسندگان این عکس. |
flag_content_uri | پیوندی که کاربران میتوانند در آن مشکل عکس را گزارش دهند. |
google_maps_uri | لینکی برای نمایش عکس روی نقشه گوگل. |
فوتومدیا
یک رسانه تصویری از Places API.
| فیلدها | |
|---|---|
name | نام منبع یک رسانه تصویری با فرمت: |
photo_uri | یک uri کوتاه مدت که میتواند برای رندر کردن عکس استفاده شود. |
مکان
تمام اطلاعات مربوط به یک مکان.
| فیلدها | |
|---|---|
name | نام منبع این مکان، با فرمت |
id | شناسه منحصر به فرد یک مکان. |
display_name | نام محلی مکان، مناسب برای توضیح کوتاه و خوانا برای انسان. برای مثال، «گوگل سیدنی»، «استارباکس»، «پیرمونت» و غیره. |
types[] | مجموعهای از برچسبهای نوع برای این نتیجه. به عنوان مثال، "political" و "locality". برای لیست کامل مقادیر ممکن، به جدول A و جدول B در https://developers.google.com/maps/documentation/places/web-service/place-types مراجعه کنید. |
primary_type | نوع اصلی نتیجه داده شده. این نوع باید یکی از انواع پشتیبانی شده توسط Places API باشد. به عنوان مثال، "رستوران"، "کافه"، "فرودگاه" و غیره. یک مکان فقط میتواند یک نوع اصلی داشته باشد. برای لیست کامل مقادیر ممکن، به جدول A و جدول B در https://developers.google.com/maps/documentation/places/web-service/place-types مراجعه کنید. اگر نوع اصلی مکان از نوع پشتیبانی شده نباشد، ممکن است نوع اصلی وجود نداشته باشد. وقتی یک نوع اصلی وجود دارد، همیشه یکی از انواع موجود در فیلد |
primary_type_display_name | نام نمایشی نوع اصلی، که در صورت لزوم به زبان درخواست بومیسازی شده است. برای لیست کامل مقادیر ممکن، به جدول A و جدول B در https://developers.google.com/maps/documentation/places/web-service/place-types مراجعه کنید. اگر نوع اصلی مکان از نوع پشتیبانی شده نباشد، ممکن است نوع اصلی وجود نداشته باشد. |
google_maps_type_label | برچسب نوع مکان در نقشههای گوگل، که در صورت لزوم به زبان درخواست بومیسازی شده است، برای مثال، "رستوران"، "کافه"، "فرودگاه" و غیره. برچسب نوع ممکن است با نام نمایشی نوع اصلی متفاوت باشد و ممکن است نوع پشتیبانی شده در جدول انواع مکان API Places نباشد. |
national_phone_number | یک شماره تلفن قابل خواندن توسط انسان برای آن مکان، در قالب ملی. |
international_phone_number | یک شماره تلفن قابل خواندن توسط انسان برای آن مکان، در قالب بینالمللی. |
formatted_address | یک آدرس کامل و قابل خواندن توسط انسان برای این مکان. |
short_formatted_address | یک آدرس کوتاه و خوانا برای این مکان. |
postal_address | آدرس در قالب آدرس پستی. |
address_components[] | اجزای تکراری برای هر سطح محلی. به حقایق زیر در مورد آرایه address_components[] توجه کنید: - آرایه اجزای آدرس ممکن است شامل اجزای بیشتری نسبت به formatted_address باشد. - این آرایه لزوماً شامل تمام موجودیتهای سیاسی که حاوی یک آدرس هستند، جدا از آنهایی که در formatted_address قرار دارند، نمیشود. برای بازیابی تمام موجودیتهای سیاسی که حاوی یک آدرس خاص هستند، باید از geocoding معکوس استفاده کنید و طول/عرض جغرافیایی آدرس را به عنوان پارامتر به درخواست ارسال کنید. - تضمین نمیشود که قالب پاسخ بین درخواستها یکسان باقی بماند. به طور خاص، تعداد address_components بر اساس آدرس درخواستی متفاوت است و میتواند در طول زمان برای همان آدرس تغییر کند. یک جزء میتواند موقعیت خود را در آرایه تغییر دهد. نوع جزء میتواند تغییر کند. یک جزء خاص ممکن است در پاسخ بعدی از دست رفته باشد. |
plus_code | کد بعلاوه موقعیت مکانی (طول/عرض). |
location | موقعیت این مکان. |
viewport | یک نمای مناسب برای نمایش مکان روی نقشهای با اندازه متوسط. این نمای نباید به عنوان مرز فیزیکی یا منطقه خدماتی کسب و کار استفاده شود. |
rating | امتیازی بین ۱.۰ تا ۵.۰، بر اساس نظرات کاربران در مورد این مکان. |
google_maps_uri | یک URL که اطلاعات بیشتری در مورد این مکان ارائه میدهد. |
website_uri | وبسایت معتبر برای این مکان، مثلاً صفحه اصلی یک کسبوکار. توجه داشته باشید که برای مکانهایی که بخشی از یک زنجیره هستند (مثلاً یک فروشگاه IKEA)، این معمولاً وبسایت فروشگاه مربوطه خواهد بود، نه کل زنجیره. |
reviews[] | فهرست نظرات درباره این مکان، مرتب شده بر اساس میزان اهمیت. حداکثر ۵ نظر قابل ارسال است. |
regular_opening_hours | ساعات کاری معمول. توجه داشته باشید که اگر مکانی همیشه باز باشد (24 ساعت)، فیلد |
time_zone | پایگاه داده منطقه زمانی IANA، منطقه زمانی. برای مثال "America/New_York". |
photos[] | اطلاعات (شامل منابع) در مورد عکسهای این مکان. حداکثر ۱۰ عکس قابل بازگشت است. |
adr_format_address | آدرس مکان در ریزفرمت adr: http://microformats.org/wiki/adr . |
business_status | وضعیت تجاری آن مکان. |
opening_date | تاریخی که این مکان در آینده افتتاح خواهد شد. این فیلد فقط در صورتی پر میشود که وضعیت کسبوکار FUTURE_OPENING باشد. |
price_level | سطح قیمت مکان. |
attributions[] | مجموعهای از ارائهدهندگان داده که باید با این نتیجه نشان داده شوند. |
icon_mask_base_uri | یک URL کوتاه شده به یک ماسک آیکون. کاربر میتواند با اضافه کردن پسوند نوع به انتهای آن (مثلاً ".svg" یا ".png") به نوع آیکونهای مختلف دسترسی پیدا کند. |
icon_background_color | رنگ پسزمینه برای icon_mask با فرمت هگز، مثلاً #909CE1. |
current_opening_hours | ساعات کاری برای هفت روز آینده (شامل امروز). این بازه زمانی از نیمهشب تاریخ درخواست شروع میشود و شش روز بعد ساعت ۱۱:۵۹ شب به پایان میرسد. این فیلد شامل زیرفیلد special_days مربوط به همه ساعات است که برای تاریخهایی با ساعات کاری استثنایی تنظیم شده است. |
current_secondary_opening_hours[] | شامل آرایهای از ورودیها برای هفت روز آینده، شامل اطلاعات مربوط به ساعات کاری فرعی یک کسبوکار است. ساعات کاری فرعی با ساعات کاری اصلی یک کسبوکار متفاوت است. برای مثال، یک رستوران میتواند ساعات کاری درایو تو یا ساعات کاری تحویل را به عنوان ساعات کاری فرعی خود مشخص کند. این فیلد، زیرفیلد type را پر میکند که از یک لیست از پیش تعریفشده از انواع ساعات کاری (مانند DRIVE_THROUGH، PICKUP یا TAKEOUT) بر اساس انواع مکان استخراج میشود. این فیلد شامل زیرفیلد special_days مربوط به همه ساعات کاری است که برای تاریخهایی با ساعات کاری استثنایی تنظیم شده است. |
regular_secondary_opening_hours[] | Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. |
editorial_summary | Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code for these if applicable. Summary text must be presented as-is and can not be modified or altered. |
payment_options | Payment options the place accepts. If a payment option data is not available, the payment option field will be unset. |
parking_options | Options of parking provided by the place. |
sub_destinations[] | A list of sub-destinations related to the place. |
fuel_options | The most recent information about fuel options in a gas station. This information is updated regularly. |
ev_charge_options | Information of ev charging options. |
generative_summary | AI-generated summary of the place. |
containing_places[] | List of places in which the current place is located. |
address_descriptor | The address descriptor of the place. Address descriptors include additional information that help describe a location using landmarks and areas. See address descriptor regional coverage in https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage . |
google_maps_links | Links to trigger different Google Maps actions. |
price_range | The price range associated with a Place. |
review_summary | AI-generated summary of the place using user reviews. |
ev_charge_amenity_summary | The summary of amenities near the EV charging station. |
neighborhood_summary | A summary of points of interest near the place. |
consumer_alert | The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies. |
moved_place | If this Place is permanently closed and has moved to a new Place, this field contains the new Place's resource name, in |
moved_place_id | If this Place is permanently closed and has moved to a new Place, this field contains the new Place's place ID. If this Place moved multiple times, this field will represent the first moved Place. This field will not be populated if this Place has not moved. |
utc_offset_minutes | Number of minutes this place's timezone is currently offset from UTC. This is expressed in minutes to support timezones that are offset by fractions of an hour, eg X hours and 15 minutes. |
user_rating_count | The total number of reviews (with or without text) for this place. |
takeout | Specifies if the business supports takeout. |
delivery | Specifies if the business supports delivery. |
dine_in | Specifies if the business supports indoor or outdoor seating options. |
curbside_pickup | Specifies if the business supports curbside pickup. |
reservable | Specifies if the place supports reservations. |
serves_breakfast | Specifies if the place serves breakfast. |
serves_lunch | Specifies if the place serves lunch. |
serves_dinner | Specifies if the place serves dinner. |
serves_beer | Specifies if the place serves beer. |
serves_wine | Specifies if the place serves wine. |
serves_brunch | Specifies if the place serves brunch. |
serves_vegetarian_food | Specifies if the place serves vegetarian food. |
outdoor_seating | Place provides outdoor seating. |
live_music | Place provides live music. |
menu_for_children | Place has a children's menu. |
serves_cocktails | Place serves cocktails. |
serves_dessert | Place serves dessert. |
serves_coffee | Place serves coffee. |
good_for_children | Place is good for children. |
allows_dogs | Place allows dogs. |
restroom | Place has restroom. |
good_for_groups | Place accommodates groups. |
good_for_watching_sports | Place is suitable for watching sports. |
accessibility_options | Information about the accessibility options a place offers. |
pure_service_area_business | Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps. |
AccessibilityOptions
Information about the accessibility options a place offers.
| فیلدها | |
|---|---|
wheelchair_accessible_parking | Place offers wheelchair accessible parking. |
wheelchair_accessible_entrance | Places has wheelchair accessible entrance. |
wheelchair_accessible_restroom | Place has wheelchair accessible restroom. |
wheelchair_accessible_seating | Place has wheelchair accessible seating. |
کامپوننت آدرس
The structured components that form the formatted address, if this information is available.
| فیلدها | |
|---|---|
long_text | The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia". |
short_text | An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU". |
types[] | An array indicating the type(s) of the address component. |
language_code | The language used to format this components, in CLDR notation. |
انتساب
Information about data providers of this place.
| فیلدها | |
|---|---|
provider | Name of the Place's data provider. |
provider_uri | URI to the Place's data provider. |
BusinessStatus
Business status for the place.
| انومها | |
|---|---|
BUSINESS_STATUS_UNSPECIFIED | Default value. This value is unused. |
OPERATIONAL | The establishment is operational, not necessarily open now. |
CLOSED_TEMPORARILY | The establishment is temporarily closed. |
CLOSED_PERMANENTLY | The establishment is permanently closed. |
FUTURE_OPENING | The establishment will open in the future. |
ConsumerAlert
The consumer alert message for the place when we detect suspicious review activity on a business or a business violates our policies.
| فیلدها | |
|---|---|
overview | The overview of the consumer alert message. |
details | The details of the consumer alert message. |
language_code | The language code of the consumer alert message. This is a BCP 47 language code. |
جزئیات
The details of the consumer alert message.
| فیلدها | |
|---|---|
title | The title to show together with the description. |
description | The description of the consumer alert message. |
about_link | The link to show together with the description to provide more information. |
پیوند
The link to show together with the description to provide more information.
| فیلدها | |
|---|---|
title | The title to show for the link. |
uri | The uri of the link. |
ContainingPlace
Info about the place in which this place is located.
| فیلدها | |
|---|---|
name | The resource name of the place in which this place is located. |
id | The place id of the place in which this place is located. |
EvChargeAmenitySummary
The summary of amenities near the EV charging station. This only applies to places with type electric_vehicle_charging_station . The overview field is guaranteed to be provided while the other fields are optional.
| فیلدها | |
|---|---|
overview | An overview of the available amenities. This is guaranteed to be provided. |
coffee | A summary of the nearby coffee options. |
restaurant | A summary of the nearby restaurants. |
store | A summary of the nearby stores. |
flag_content_uri | A link where users can flag a problem with the summary. |
disclosure_text | The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available. |
GenerativeSummary
AI-generated summary of the place.
| فیلدها | |
|---|---|
overview | The overview of the place. |
overview_flag_content_uri | A link where users can flag a problem with the overview summary. |
disclosure_text | The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available. |
GoogleMapsLinks
Links to trigger different Google Maps actions.
| فیلدها | |
|---|---|
directions_uri | A link to show the directions to the place. The link only populates the destination location and uses the default travel mode |
place_uri | A link to show this place. |
write_a_review_uri | A link to write a review for this place on Google Maps. |
reviews_uri | A link to show reviews of this place on Google Maps. |
photos_uri | A link to show photos of this place on Google Maps. |
NeighborhoodSummary
A summary of points of interest near the place.
| فیلدها | |
|---|---|
overview | An overview summary of the neighborhood. |
description | A detailed description of the neighborhood. |
flag_content_uri | A link where users can flag a problem with the summary. |
disclosure_text | The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available. |
OpeningHours
Information about business hour of the place.
| فیلدها | |
|---|---|
periods[] | The periods that this place is open during the week. The periods are in chronological order, in the place-local timezone. An empty (but not absent) value indicates a place that is never open, eg because it is closed temporarily for renovations. The starting day of NOTE: The ordering of the |
weekday_descriptions[] | Localized strings describing the opening hours of this place, one string for each day of the week. NOTE: The order of the days and the start of the week is determined by the locale (language and region). The ordering of the Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00" |
secondary_hours_type | A type string used to identify the type of secondary hours. |
special_days[] | Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, eg Christmas day. Set for current_opening_hours and current_secondary_opening_hours if there are exceptional hours. |
next_open_time | The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request. |
next_close_time | The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request. |
open_now | Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active. |
دوره
A period the place remains in open_now status.
| فیلدها | |
|---|---|
open | The time that the place starts to be open. |
close | The time that the place starts to be closed. |
نقطه
Status changing points.
| فیلدها | |
|---|---|
date | Date in the local timezone for the place. |
truncated | Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned. |
day | A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc. |
hour | The hour in 24 hour format. Ranges from 0 to 23. |
minute | The minute. Ranges from 0 to 59. |
SecondaryHoursType
A type used to identify the type of secondary hours.
| انومها | |
|---|---|
SECONDARY_HOURS_TYPE_UNSPECIFIED | Default value when secondary hour type is not specified. |
DRIVE_THROUGH | The drive-through hour for banks, restaurants, or pharmacies. |
HAPPY_HOUR | The happy hour. |
DELIVERY | The delivery hour. |
TAKEOUT | The takeout hour. |
KITCHEN | The kitchen hour. |
BREAKFAST | The breakfast hour. |
LUNCH | The lunch hour. |
DINNER | The dinner hour. |
BRUNCH | The brunch hour. |
PICKUP | The pickup hour. |
ACCESS | The access hours for storage places. |
SENIOR_HOURS | The special hours for seniors. |
ONLINE_SERVICE_HOURS | The online service hours. |
SpecialDay
Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, eg Christmas day.
| فیلدها | |
|---|---|
date | The date of this special day. |
ParkingOptions
Information about parking options for the place. A parking lot could support more than one option at the same time.
| فیلدها | |
|---|---|
free_parking_lot | Place offers free parking lots. |
paid_parking_lot | Place offers paid parking lots. |
free_street_parking | Place offers free street parking. |
paid_street_parking | Place offers paid street parking. |
valet_parking | Place offers valet parking. |
free_garage_parking | Place offers free garage parking. |
paid_garage_parking | Place offers paid garage parking. |
گزینههای پرداخت
Payment options the place accepts.
| فیلدها | |
|---|---|
accepts_credit_cards | Place accepts credit cards as payment. |
accepts_debit_cards | Place accepts debit cards as payment. |
accepts_cash_only | Place accepts cash only as payment. Places with this attribute may still accept other payment methods. |
accepts_nfc | Place accepts NFC payments. |
پلاسکد
Plus code ( http://plus.codes ) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.
| فیلدها | |
|---|---|
global_code | Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters). |
compound_code | Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity. |
ReviewSummary
AI-generated summary of the place using user reviews.
| فیلدها | |
|---|---|
text | The summary of user reviews. |
flag_content_uri | A link where users can flag a problem with the summary. |
disclosure_text | The AI disclosure message "Summarized with Gemini" (and its localized variants). This will be in the language specified in the request if available. |
reviews_uri | A link to show reviews of this place on Google Maps. |
SubDestination
Sub-destinations are specific places associated with a main place. These provide more specific destinations for users who are searching within a large or complex place, like an airport, national park, university, or stadium. For example, sub-destinations at an airport might include associated terminals and parking lots. Sub-destinations return the place ID and place resource name, which can be used in subsequent Place Details (New) requests to fetch richer details, including the sub-destination's display name and location.
| فیلدها | |
|---|---|
name | The resource name of the sub-destination. |
id | The place id of the sub-destination. |
Polyline
A route polyline. Only supports an encoded polyline , which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output.
| فیلدها | |
|---|---|
Union field polyline_type . Encapsulates the type of polyline. Routes API output defaults to encoded_polyline . polyline_type can be only one of the following: | |
encoded_polyline | An encoded polyline , as returned by the Routes API by default . See the encoder and decoder tools. |
PriceLevel
Price level of the place.
| انومها | |
|---|---|
PRICE_LEVEL_UNSPECIFIED | Place price level is unspecified or unknown. |
PRICE_LEVEL_FREE | Place provides free services. |
PRICE_LEVEL_INEXPENSIVE | Place provides inexpensive services. |
PRICE_LEVEL_MODERATE | Place provides moderately priced services. |
PRICE_LEVEL_EXPENSIVE | Place provides expensive services. |
PRICE_LEVEL_VERY_EXPENSIVE | Place provides very expensive services. |
PriceRange
The price range associated with a Place. end_price could be unset, which indicates a range without upper bound (eg "More than $100").
| فیلدها | |
|---|---|
start_price | The low end of the price range (inclusive). Price should be at or above this amount. |
end_price | The high end of the price range (exclusive). Price should be lower than this amount. |
نقد و بررسی
Information about a review of a place.
| فیلدها | |
|---|---|
name | A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: |
relative_publish_time_description | A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. |
text | The localized text of the review. |
original_text | The review text in its original language. |
rating | A number between 1.0 and 5.0, also called the number of stars. |
author_attribution | This review's author. |
publish_time | Timestamp for the review. |
flag_content_uri | A link where users can flag a problem with the review. |
google_maps_uri | A link to show the review on Google Maps. |
visit_date | The date when the author visited the place. This is truncated to the year and month of the visit. |
اصلاحکنندههای مسیر
Encapsulates a set of optional conditions to satisfy when calculating the routes.
| فیلدها | |
|---|---|
avoid_tolls | Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the |
avoid_highways | Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the |
avoid_ferries | Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the |
avoid_indoor | Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the |
RoutingParameters
Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.
| فیلدها | |
|---|---|
origin | Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used. |
travel_mode | Optional. The travel mode. |
route_modifiers | Optional. The route modifiers. |
routing_preference | Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the |
RoutingPreference
A set of values that specify factors to take into consideration when calculating the route.
| انومها | |
|---|---|
ROUTING_PREFERENCE_UNSPECIFIED | No routing preference specified. Default to TRAFFIC_UNAWARE . |
TRAFFIC_UNAWARE | Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For DRIVE and TWO_WHEELER , the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency. |
TRAFFIC_AWARE | Calculates routes taking live traffic conditions into consideration. In contrast to TRAFFIC_AWARE_OPTIMAL , some optimizations are applied to significantly reduce latency. |
TRAFFIC_AWARE_OPTIMAL | Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency. |
RoutingSummary
The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. Note: Adding routingSummaries in the field mask without also including either the routingParameters.origin parameter or the searchAlongRouteParameters.polyline.encodedPolyline parameter in the request causes an error.
| فیلدها | |
|---|---|
legs[] | The legs of the trip. When you calculate travel duration and distance from a set origin, |
directions_uri | A link to show directions on Google Maps using the waypoints from the given routing summary. The route generated by this link is not guaranteed to be the same as the route used to generate the routing summary. The link uses information provided in the request, from fields including |
ساق پا
A leg is a single portion of a journey from one location to another.
| فیلدها | |
|---|---|
duration | The time it takes to complete this leg of the trip. |
distance_meters | The distance of this leg of the trip. |
SearchNearbyRequest
Request proto for Search Nearby.
| فیلدها | |
|---|---|
language_code | Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport . |
region_code | The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html . Note that 3-digit region codes are not currently supported. |
included_types[] | Included Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types . Up to 50 types from Table A may be specified. If there are any conflicting types, ie a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants". |
excluded_types[] | Excluded Place type (eg, "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types . Up to 50 types from Table A may be specified. If the client provides both included_types (eg restaurant) and excluded_types (eg cafe), then the response should include places that are restaurant but not cafe. The response includes places that match at least one of the included_types and none of the excluded_types. If there are any conflicting types, ie a type appears in both included_types and excluded_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants". |
included_primary_types[] | Included primary Place type (eg "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types . A place can only have a single primary type from the supported types table associated with it. Up to 50 types from Table A may be specified. If there are any conflicting primary types, ie a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants". |
excluded_primary_types[] | Excluded primary Place type (eg "restaurant" or "gas_station") from https://developers.google.com/maps/documentation/places/web-service/place-types . Up to 50 types from Table A may be specified. If there are any conflicting primary types, ie a type appears in both included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. If a Place type is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if we have {included_types = ["restaurant"], excluded_primary_types = ["restaurant"]}, the returned places provide "restaurant" related services but do not operate primarily as "restaurants". |
max_result_count | Maximum number of results to return. It must be between 1 and 20 (default), inclusively. If the number is unset, it falls back to the upper limit. If the number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned. |
location_restriction | Required. The region to search. |
rank_preference | How results will be ranked in the response. |
routing_parameters | Optional. Parameters that affect the routing to the search results. |
include_future_opening_businesses | Optional. If true, include businesses that are not yet open but will open in the future. |
LocationRestriction
The region to search.
| فیلدها | |
|---|---|
Union field | |
circle | A circle defined by center point and radius. |
RankPreference
How results will be ranked in the response.
| انومها | |
|---|---|
RANK_PREFERENCE_UNSPECIFIED | RankPreference value not set. Will use rank by POPULARITY by default. |
DISTANCE | Ranks results by distance. |
POPULARITY | Ranks results by popularity. |
SearchNearbyResponse
Response proto for Search Nearby.
| فیلدها | |
|---|---|
places[] | A list of places that meets user's requirements like places types, number of places and specific location restriction. |
routing_summaries[] | A list of routing summaries where each entry associates to the corresponding place in the same index in the |
SearchTextRequest
Request proto for SearchText.
| فیلدها | |
|---|---|
text_query | Required. The text query for textual search. |
language_code | Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport . |
region_code | The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html . Note that 3-digit region codes are not currently supported. |
rank_preference | How results will be ranked in the response. |
included_type | The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types . Only support one included type. |
open_now | Used to restrict the search to places that are currently open. The default is false. |
min_rating | Filter out results whose average user rating is strictly less than this limit. A valid value must be a float between 0 and 5 (inclusively) at a 0.5 cadence ie [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating will round up to the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all results with a less than 1.0 rating. |
max_result_count | Deprecated: Use The maximum number of results per page that can be returned. If the number of available results is larger than If both |
page_size | Optional. The maximum number of results per page that can be returned. If the number of available results is larger than If both |
page_token | Optional. A page token, received from a previous TextSearch call. Provide this to retrieve the subsequent page. When paginating, all parameters other than |
price_levels[] | Used to restrict the search to places that are marked as certain price levels. Users can choose any combinations of price levels. Default to select all price levels. |
strict_type_filtering | Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false. |
location_bias | The region to search. This location serves as a bias which means results around given location might be returned. Cannot be set along with location_restriction. |
location_restriction | The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with location_bias. |
ev_options | Optional. Set the searchable EV options of a place search request. |
routing_parameters | Optional. Additional parameters for routing to results. |
search_along_route_parameters | Optional. Additional parameters proto for searching along a route. |
include_pure_service_area_businesses | Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including |
include_future_opening_businesses | Optional. If true, include businesses that are not yet open but will open in the future. |
EVOptions
Searchable EV options of a place search request.
| فیلدها | |
|---|---|
minimum_charging_rate_kw | Optional. Minimum required charging rate in kilowatts. A place with a charging rate less than the specified rate is filtered out. |
connector_types[] | Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types is filtered out. |
LocationBias
The region to search. This location serves as a bias which means results around given location might be returned.
| فیلدها | |
|---|---|
Union field | |
rectangle | A rectangle box defined by northeast and southwest corner. |
circle | A circle defined by center point and radius. |
LocationRestriction
The region to search. This location serves as a restriction which means results outside given location will not be returned.
| فیلدها | |
|---|---|
Union field | |
rectangle | A rectangle box defined by northeast and southwest corner. |
RankPreference
How results will be ranked in the response.
| انومها | |
|---|---|
RANK_PREFERENCE_UNSPECIFIED | For a categorical query such as "Restaurants in New York City", RELEVANCE is the default. For non-categorical queries such as "Mountain View, CA" we recommend that you leave rankPreference unset. |
DISTANCE | Ranks results by distance. |
RELEVANCE | Ranks results by relevance. Sort order determined by normal ranking stack. |
SearchAlongRouteParameters
Specifies a precalculated polyline from the Routes API defining the route to search. Searching along a route is similar to using the locationBias or locationRestriction request option to bias the search results. However, while the locationBias and locationRestriction options let you specify a region to bias the search results, this option lets you bias the results along a trip route.
Results are not guaranteed to be along the route provided, but rather are ranked within the search area defined by the polyline and, optionally, by the locationBias or locationRestriction based on minimal detour times from origin to destination. The results might be along an alternate route, especially if the provided polyline does not define an optimal route from origin to destination.
| فیلدها | |
|---|---|
polyline | Required. The route polyline. |
SearchTextResponse
Response proto for SearchText.
| فیلدها | |
|---|---|
places[] | A list of places that meet the user's text search criteria. |
routing_summaries[] | A list of routing summaries where each entry associates to the corresponding place in the same index in the |
contextual_contents[] | Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. A list of contextual contents where each entry associates to the corresponding place in the same index in the places field. The contents that are relevant to the |
next_page_token | A token that can be sent as |
search_uri | A link allows the user to search with the same text query as specified in the request on Google Maps. |
TravelMode
Travel mode options. These options map to what Routes API offers .
| انومها | |
|---|---|
TRAVEL_MODE_UNSPECIFIED | No travel mode specified. Defaults to DRIVE . |
DRIVE | Travel by passenger car. |
BICYCLE | Travel by bicycle. Not supported with search_along_route_parameters . |
WALK | Travel by walking. Not supported with search_along_route_parameters . |
TWO_WHEELER | Motorized two wheeled vehicles of all kinds such as scooters and motorcycles. Note that this is distinct from the BICYCLE travel mode which covers human-powered transport. Not supported with search_along_route_parameters . Only supported in those countries listed at Countries and regions supported for two-wheeled vehicles . |