Индекс
-
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 Places. Примечание: для каждого запроса (кроме запросов Autocomplete и GetPhotoMedia) требуется маска поля, заданная вне протокола запроса ( all/*
не предполагается). Маску поля можно задать через HTTP-заголовок X-Goog-FieldMask
. См.: https://developers.google.com/maps/documentation/places/web-service/choose-fields
Автозаполнение мест |
---|
Возвращает прогнозы для заданных входных данных.
|
GetPhotoMedia |
---|
Получите фотоноситель со строкой ссылки на фотографию.
|
GetPlace |
---|
Получите подробную информацию о месте на основе названия его ресурса, которое представляет собой строку в формате
|
Поиск рядом |
---|
Поиск мест вблизи локаций.
|
SearchText |
---|
Поиск мест на основе текстового запроса.
|
АдресДескриптор
Относительное описание местоположения. Включает в себя ранжированный набор близлежащих ориентиров и точные области, а также их связь с целевым местоположением.
Поля | |
---|---|
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 | Рядом с строением достопримечательности, но дальше от ее уличных входов. |
Авторство
Информация об авторе данных пользовательского контента. Используется в разделе Photo
и Review
.
Поля | |
---|---|
display_name | |
uri | |
photo_uri | |
AutocompletePlacesRequest
Запросить прототип для AutocompletePlaces.
Поля | |
---|---|
input | Обязательно. Текстовая строка для поиска. |
location_bias | Необязательно. Смещение результатов в указанное место. Следует задать максимум один из параметров |
location_restriction | Необязательно. Ограничьте результаты указанным местоположением. Следует задать максимум один из параметров |
included_primary_types[] | Необязательно. Включен основной тип места (например, «ресторан» или «заправочная станция») в типы мест ( https://developers.google.com/maps/documentation/places/web-service/place-types) или только |
included_region_codes[] | Необязательно. Включать результаты только в указанных регионах, заданных как до 15 двухсимвольных кодов регионов CLDR. Пустой набор не ограничивает результаты. Если заданы оба |
language_code | Необязательно. Язык, на котором возвращаются результаты. По умолчанию — en-US. Результаты могут быть на смешанных языках, если язык, используемый во |
region_code | Необязательный параметр. Код региона, указанный как двухсимвольный код региона CLDR. Он влияет на форматирование адреса, ранжирование результатов и может влиять на возвращаемые результаты. Это не ограничивает результаты указанным регионом. Чтобы ограничить результаты регионом, используйте |
origin | Необязательно. Начальная точка, от которой рассчитывается геодезическое расстояние до пункта назначения (возвращается как |
input_offset | Необязательно. Смещение символа Unicode, начинающееся с нуля, указывает позицию курсора в Если пусто, по умолчанию используется длина |
include_query_predictions | Необязательно. Если true, ответ будет включать как прогнозы по месту, так и по запросу. В противном случае ответ будет содержать только прогнозы по месту. |
session_token | Необязательная строка. Строка, идентифицирующая сеанс автозаполнения для выставления счетов. Должна представлять собой строку в формате base64, безопасную для URL и имени файла, длиной не более 36 символов ASCII. В противном случае возвращается ошибка INVALID_ARGUMENT. Сеанс начинается с того, что пользователь начинает вводить запрос, и завершается выбором места и вызовом функции проверки сведений о месте или адреса. В каждом сеансе может быть несколько запросов, за которыми следует один запрос на проверку сведений о месте или адреса. Учётные данные, используемые для каждого запроса в рамках сеанса, должны принадлежать одному проекту Google Cloud Console. После завершения сеанса токен становится недействительным; ваше приложение должно генерировать новый токен для каждого сеанса. Если параметр Мы рекомендуем следующие рекомендации:
|
include_pure_service_area_businesses | Необязательно. Включайте компании, работающие исключительно в зоне обслуживания, если поле установлено как true. Компании, работающие исключительно в зоне обслуживания, — это компании, которые посещают клиентов или доставляют им товары напрямую, но не обслуживают их по адресу. Например, компании, предоставляющие услуги по уборке или сантехнике. У таких компаний нет физического адреса или местоположения на Google Картах. Функция Places не будет возвращать поля, включая |
МестоположениеBias
Регион поиска. Результаты могут быть смещены относительно указанного региона.
Поля | |
---|---|
| |
rectangle | Область просмотра, определяемая северо-восточным и юго-западным углом. |
circle | Окружность, определяемая центральной точкой и радиусом. |
МестоположениеОграничение
Регион поиска. Результаты будут ограничены указанным регионом.
Поля | |
---|---|
| |
rectangle | Область просмотра, определяемая северо-восточным и юго-западным углом. |
circle | Окружность, определяемая центральной точкой и радиусом. |
AutocompletePlacesResponse
Прототип ответа для AutocompletePlaces.
Поля | |
---|---|
suggestions[] | Содержит список предложений, упорядоченных в порядке убывания релевантности. |
Предположение
Результат предложения автозаполнения.
Поля | |
---|---|
| |
place_prediction | Прогноз для Места. |
query_prediction | Прогноз для запроса. |
ФорматируемыйТекст
Текст, представляющий место или подсказку по запросу. Текст можно использовать как есть или отформатировать.
Поля | |
---|---|
text | Текст, который можно использовать как есть или отформатировать с помощью |
matches[] | Список диапазонов строк, указывающих, где запрос ввода совпал с Эти значения представляют собой смещения символов Unicode в |
PlacePrediction
Результаты прогнозирования для функции автозаполнения места.
Поля | |
---|---|
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 | Разбивка прогноза запроса на основной текст, содержащий запрос, и вторичный текст, содержащий дополнительные неоднозначные признаки (например, город или регион). |
StringRange
Определяет подстроку в заданном тексте.
Поля | |
---|---|
start_offset | Смещение от нуля первого символа Unicode в строке (включительно). |
end_offset | Смещение от нуля последнего символа Unicode (исключая его). |
СтруктурированныйФормат
Содержит разбивку места или прогнозируемого запроса на основной текст и вторичный текст.
Для прогнозов по месту основной текст содержит конкретное название места. Для прогнозов по запросу основной текст содержит сам запрос.
Вторичный текст содержит дополнительные неоднозначные признаки (например, город или регион), позволяющие более точно определить место или уточнить запрос.
Поля | |
---|---|
main_text | Представляет название места или запроса. |
secondary_text | Представляет дополнительные неоднозначные признаки (например, город или регион) для дальнейшей идентификации места или уточнения запроса. |
Круг
Окружность с центром в координатах LatLng и радиусом.
Поля | |
---|---|
center | Обязательно. Центральная широта и долгота. Диапазон широты должен быть в пределах [-90,0, 90,0]. Диапазон долготы должен быть в пределах [-180,0, 180,0]. |
radius | Обязательно. Радиус измеряется в метрах. Радиус должен быть в диапазоне [0,0, 50000,0]. |
ContentBlock
Блок контента, который может подаваться индивидуально.
Поля | |
---|---|
content | Контент, соответствующий теме. |
referenced_places[] | Список имён ресурсов указанных мест. Это имя может использоваться в других API, принимающих имена ресурсов мест. |
ContextualContent
Экспериментальный: более подробную информацию см. на странице 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 для получения более подробной информации. Обоснование BusinessAvailabilityAttributes. Здесь показаны некоторые характеристики компании, которые могут быть интересны конечному пользователю.
Поля | |
---|---|
takeout | Если в заведении можно заказать еду на вынос. |
delivery | Если место обеспечивает доставку. |
dine_in | Если в заведении есть возможность пообедать. |
ОбзорОбоснование
Экспериментальный: более подробную информацию см. на странице https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative .
Обоснование отзывов пользователей. Выделяет раздел отзыва, который может быть интересен конечному пользователю. Например, если поисковый запрос — «пицца на дровах», в обосновании отзыва выделяется текст, релевантный поисковому запросу.
Поля | |
---|---|
highlighted_text | |
review | Обзор, на основе которого создан выделенный текст. |
Выделенный текст
Текст, выделенный в обосновании. Это подмножество самого обзора. Точное слово, которое нужно выделить, отмечено в HighlightedTextRange. В выделенном тексте может быть несколько слов.
Поля | |
---|---|
text | |
highlighted_text_ranges[] | Список диапазонов выделенного текста. |
HighlightedTextRange
Диапазон выделенного текста.
Поля | |
---|---|
start_index | |
end_index | |
EVChargeOptions
Информация о станции зарядки электромобилей, размещённой на сайте Place. Терминология: https://afdc.energy.gov/fuels/electricity_infrastructure.html . Один порт может одновременно заряжать только один автомобиль. Каждый порт имеет один или несколько разъёмов. Одна станция имеет один или несколько разъёмов.
Поля | |
---|---|
connector_count | Количество разъёмов на этой станции. Однако, поскольку некоторые порты могут иметь несколько разъёмов, но при этом заряжать только один автомобиль одновременно (например), количество разъёмов может превышать общее количество автомобилей, которые могут заряжаться одновременно. |
connector_aggregation[] | Список агрегатов разъемов для зарядки электромобилей, содержащих разъемы одного типа и с одинаковой скоростью зарядки. |
Агрегация коннекторов
Информация о зарядке электромобиля, сгруппированная по [тип, максимальная_скорость_заряда_кВт]. Показывает агрегацию заряда электромобиля через разъёмы одного типа и максимальной скорости зарядки в кВт.
Поля | |
---|---|
type | Тип соединителя данной агрегации. |
max_charge_rate_kw | Максимальная статическая скорость зарядки в кВт каждого разъема в агрегации. |
count | Количество коннекторов в этой агрегации. |
availability_last_update_time | Метка времени последнего обновления информации о доступности коннектора в этом агрегировании. |
available_count | Количество коннекторов в этой агрегации, которые в данный момент доступны. |
out_of_service_count | Количество коннекторов в этом агрегировании, которые в настоящее время не обслуживаются. |
EVConnectorType
Дополнительную информацию/контекст о типах разъемов для зарядки электромобилей см. по адресу http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6872107 .
Перечисления | |
---|---|
EV_CONNECTOR_TYPE_UNSPECIFIED | Неуказанный соединитель. |
EV_CONNECTOR_TYPE_OTHER | Другие типы разъемов. |
EV_CONNECTOR_TYPE_J1772 | Разъем J1772 типа 1. |
EV_CONNECTOR_TYPE_TYPE_2 | Разъём IEC 62196 типа 2. Часто называется MENNEKES. |
EV_CONNECTOR_TYPE_CHADEMO | Разъем типа CHAdeMO. |
EV_CONNECTOR_TYPE_CCS_COMBO_1 | Комбинированная система зарядки (переменный и постоянный ток). Основана на стандарте SAE. Разъём J-1772 Тип 1. |
EV_CONNECTOR_TYPE_CCS_COMBO_2 | Комбинированная система зарядки (переменный и постоянный ток). На основе разъёма Mennekes Type-2. |
EV_CONNECTOR_TYPE_TESLA | Стандартный разъём TESLA. В Северной Америке он имеет сертификат NACS, но в других частях мира может иметь сертификат, отличный от NACS (например, CCS Combo 2 (CCS2) или GB/T). Это значение не столько отражает реальный тип разъёма, сколько отражает возможность зарядки автомобилей Tesla на зарядной станции Tesla. |
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. |
FuelOptions
Актуальная информация о видах топлива на АЗС. Эта информация регулярно обновляется.
Поля | |
---|---|
fuel_prices[] | Последняя известная цена на топливо каждого типа, доступного на этой заправке. Для каждого типа топлива, доступного на этой заправке, существует одна запись. Порядок не важен. |
FuelPrice
Информация о ценах на топливо определенного типа.
Поля | |
---|---|
type | Тип топлива. |
price | Цена на топливо. |
update_time | Время последнего обновления цены на топливо. |
Тип топлива
Виды топлива.
Перечисления | |
---|---|
FUEL_TYPE_UNSPECIFIED | Тип топлива не указан. |
DIESEL | Дизельное топливо. |
DIESEL_PLUS | Дизельное топливо плюс топливо. |
REGULAR_UNLEADED | Обычный неэтилированный. |
MIDGRADE | Средний уровень. |
PREMIUM | Премиум. |
SP91 | СП 91. |
SP91_E10 | СП 91 Е10. |
SP92 | СП 92. |
SP95 | СП 95. |
SP95_E10 | СП95 Е10. |
SP98 | СП 98. |
SP99 | СП 99. |
SP100 | СП 100. |
LPG | Сжиженный нефтяной газ. |
E80 | Е 80. |
E85 | Е 85. |
E100 | Е 100. |
METHANE | Метан. |
BIO_DIESEL | Биодизель. |
TRUCK_DIESEL | Грузовой дизель. |
GetPhotoMediaRequest
Запрос на получение фотографии места с использованием названия фоторесурса.
Поля | |
---|---|
name | Обязательно. Имя ресурса фотоносителя в формате: Имя ресурса фотографии, возвращаемое в поле |
max_width_px | Необязательно. Указывает максимальную желаемую ширину изображения в пикселях. Если изображение меньше указанных значений, будет возвращено исходное изображение. Если изображение больше по одному из двух измерений, оно будет масштабировано до меньшего из двух измерений с сохранением исходного соотношения сторон. Свойства max_height_px и max_width_px принимают целые числа от 1 до 4800 включительно. Если значение выходит за пределы допустимого диапазона, будет возвращена ошибка 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 принимают целые числа от 1 до 4800 включительно. Если значение выходит за пределы допустимого диапазона, будет возвращена ошибка INVALID_ARGUMENT. Необходимо указать хотя бы один из параметров: max_height_px или max_width_px. Если не указаны ни max_height_px, ни max_width_px, будет возвращена ошибка INVALID_ARGUMENT. |
skip_http_redirect | Необязательно. Если установлено, пропускается HTTP-перенаправление по умолчанию и формируется ответ в текстовом формате (например, в формате JSON для HTTP-запроса). Если не установлено, будет выполнено HTTP-перенаправление для перенаправления вызова к медиафайлу с изображением. Этот параметр игнорируется для запросов, отличных от HTTP. |
GetPlaceRequest
Запрос на выборку места на основе имени его ресурса, которое представляет собой строку в формате places/{place_id}
.
Поля | |
---|---|
name | Обязательно. Имя ресурса места в формате |
language_code | Необязательно. Информация о месте будет отображаться на выбранном вами языке (если он доступен). Текущий список поддерживаемых языков: https://developers.google.com/maps/faq#languagesupport . |
region_code | Необязательный. Код страны/региона в формате Unicode (CLDR) местоположения, откуда поступил запрос. Этот параметр используется для отображения информации о месте, например, названия региона, если оно доступно. Этот параметр может влиять на результаты в зависимости от действующего законодательства. Подробнее см. https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html . Обратите внимание, что трехзначные коды регионов в настоящее время не поддерживаются. |
session_token | Необязательная строка. Строка, идентифицирующая сеанс автозаполнения для выставления счетов. Должна представлять собой строку в формате base64, безопасную для URL и имени файла, длиной не более 36 символов ASCII. В противном случае возвращается ошибка INVALID_ARGUMENT. Сеанс начинается с того, что пользователь начинает вводить запрос, и завершается выбором места и вызовом функции проверки сведений о месте или адреса. В каждом сеансе может быть несколько запросов, за которыми следует один запрос на проверку сведений о месте или адреса. Учётные данные, используемые для каждого запроса в рамках сеанса, должны принадлежать одному проекту Google Cloud Console. После завершения сеанса токен становится недействительным; ваше приложение должно генерировать новый токен для каждого сеанса. Если параметр Мы рекомендуем следующие рекомендации:
|
Фото
Информация о фотографии места.
Поля | |
---|---|
name | Идентификатор. Ссылка, представляющая фотографию этого места, которую можно использовать для повторного поиска этой фотографии (также называется именем «ресурса» API: |
width_px | Максимально доступная ширина в пикселях. |
height_px | Максимально доступная высота в пикселях. |
author_attributions[] | Авторы этой фотографии. |
flag_content_uri | Ссылка, по которой пользователи могут сообщить о проблеме с фотографией. |
google_maps_uri | Ссылка для показа фотографии на Google Maps. |
ФотоМедиа
Фотоматериалы из Places API.
Поля | |
---|---|
name | Имя ресурса фотоносителя в формате: |
photo_uri | Краткосрочный URI, который можно использовать для рендеринга фотографии. |
Место
Вся информация, представляющая место.
Поля | |
---|---|
name | Название ресурса этого места в формате |
id | Уникальный идентификатор места. |
display_name | Локализованное название места, подходящее для краткого и понятного описания. Например, «Google Сидней», «Starbucks», «Pyrmont» и т. д. |
types[] | Набор тегов типа для этого результата. Например, «политический» и «местность». Полный список возможных значений см. в таблицах 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 . Основной тип может отсутствовать, если основной тип места не поддерживается. |
national_phone_number | Удобный для восприятия номер телефона места в национальном формате. |
international_phone_number | Удобный для восприятия номер телефона этого места в международном формате. |
formatted_address | Полный, понятный человеку адрес этого места. |
short_formatted_address | Короткий, понятный человеку адрес этого места. |
postal_address | Адрес в формате почтового адреса. |
address_components[] | Повторяющиеся компоненты для каждого уровня населённого пункта. Обратите внимание на следующие факты о массиве address_components[]: - Массив компонентов адреса может содержать больше компонентов, чем formatted_address. - Массив не обязательно включает все политические единицы, содержащие адрес, помимо тех, которые включены в formatted_address. Чтобы получить все политические единицы, содержащие определённый адрес, следует использовать обратное геокодирование, передавая широту/долготу адреса в качестве параметра запроса. - Формат ответа не гарантируется одинаковым между запросами. В частности, количество address_components зависит от запрошенного адреса и может меняться со временем для одного и того же адреса. Компонент может изменить положение в массиве. Тип компонента может измениться. В последующем ответе может отсутствовать определённый компонент. |
plus_code | Плюс код местоположения места широта/долгота. |
location | Положение этого места. |
viewport | Область просмотра, подходящая для отображения места на карте среднего размера. Эта область просмотра не должна использоваться в качестве физической границы или зоны обслуживания компании. |
rating | Рейтинг от 1,0 до 5,0, основанный на отзывах пользователей об этом месте. |
google_maps_uri | URL-адрес, предоставляющий более подробную информацию об этом месте. |
website_uri | Официальный веб-сайт данного места, например, домашняя страница компании. Обратите внимание, что для мест, входящих в сеть (например, магазина IKEA), это обычно веб-сайт отдельного магазина, а не всей сети. |
reviews[] | Список отзывов об этом месте, отсортированный по релевантности. Можно добавить не более 5 отзывов. |
regular_opening_hours | Обычные часы работы. Обратите внимание: если место открыто круглосуточно, поле |
time_zone | Часовой пояс базы данных часовых поясов IANA. Например, «America/New_York». |
photos[] | Информация (включая ссылки) о фотографиях этого места. Можно вернуть не более 10 фотографий. |
adr_format_address | Адрес места в микроформате adr: http://microformats.org/wiki/adr . |
business_status | Бизнес-статус места. |
price_level | Уровень цен в данном месте. |
attributions[] | Набор поставщиков данных, которые должны быть показаны вместе с этим результатом. |
icon_mask_base_uri | Укороченный URL-адрес маски значка. Пользователь может получить доступ к значкам разных типов, добавив суффикс типа в конец имени (например, «.svg» или «.png»). |
icon_background_color | Цвет фона для icon_mask в шестнадцатеричном формате, например #909CE1. |
current_opening_hours | Часы работы на следующие семь дней (включая сегодняшний). Период начинается в полночь в день запроса и заканчивается в 23:59 через шесть дней. Это поле включает подполе special_days для всех часов, заданных для дат с особыми часами работы. |
current_secondary_opening_hours[] | Contains an array of entries for the next seven days including information about 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. This field includes the special_days subfield of all hours, set for dates that have exceptional hours. |
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.
Enums | |
---|---|
BUSINESS_STATUS_UNSPECIFIED | Значение по умолчанию. Это значение не используется. |
OPERATIONAL | The establishment is operational, not necessarily open now. |
CLOSED_TEMPORARILY | The establishment is temporarily closed. |
CLOSED_PERMANENTLY | The establishment is permanently closed. |
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.
Enums | |
---|---|
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. |
PaymentOptions
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. |
PlusCode
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. |
Полилиния
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.
Enums | |
---|---|
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. |
Диапазон цен
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. |
RouteModifiers
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.
Enums | |
---|---|
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. |
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.
Enums | |
---|---|
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 |
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.
Enums | |
---|---|
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 .
Enums | |
---|---|
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 . |