Options
All
  • Public
  • Public/Protected
  • All
Menu

A text search request to be sent to the PlacesService.

Hierarchy

  • TextSearchRequest

Index

Properties

Optional bounds

Bounds used to bias results when searching for Places (optional). Both location and radius will be ignored if bounds is set. Results will not be restricted to those inside these bounds; but, results inside it will rank higher.

Optional location

location?: LatLng | LatLngLiteral

The center of the area used to bias results when searching for Places.

Optional query

query?: string

The request's query term. For example, the name of a place ('Eiffel Tower'), a category followed by the name of a location ('pizza in New York'), or the name of a place followed by a location disambiguator ('Starbucks in Sydney').

Optional radius

radius?: number

The radius of the area used to bias results when searching for Places, in meters.

Optional type

type?: string

Searches for places of the given type. The type is translated to the local language of the request's target location and used as a query string. If a query is also provided, it is concatenated to the localized type string. Results of a different type are dropped from the response. Use this field to perform language and region independent categorical searches. Valid types are given here.

Generated using TypeDoc