Options
All
  • Public
  • Public/Protected
  • All
Menu

An Autocompletion request to be sent to google.maps.places.AutocompleteService.getPlacePredictions.

Hierarchy

  • AutocompletionRequest

Index

Properties

Bounds for prediction biasing. Predictions will be biased towards, but not restricted to, the given bounds. Both location and radius will be ignored if bounds is set.

deprecated

bounds is deprecated as of May 2023. Use google.maps.places.AutocompletionRequest.locationBias and google.maps.places.AutocompletionRequest.locationRestriction instead.

componentRestrictions?: ComponentRestrictions

The component restrictions. Component restrictions are used to restrict predictions to only those within the parent component. For example, the country.

input: string

The user entered input string.

language?: null | string

A language identifier for the language in which the results should be returned, if possible. Results in the selected language may be given a higher ranking, but suggestions are not restricted to this language. See the list of supported languages.

location?: LatLng

Location for prediction biasing. Predictions will be biased towards the given location and radius. Alternatively, bounds can be used.

deprecated

location is deprecated as of May 2023. Use google.maps.places.AutocompletionRequest.locationBias and google.maps.places.AutocompletionRequest.locationRestriction instead.

locationBias?: null | string | Circle | LatLngBounds | LatLngBoundsLiteral | LatLng | LatLngLiteral | CircleLiteral

A soft boundary or hint to use when searching for places.

locationRestriction?: null | LatLngBounds | LatLngBoundsLiteral

Bounds to constrain search results.

offset?: number

The character position in the input term at which the service uses text for predictions (the position of the cursor in the input field).

The location where google.maps.places.AutocompletePrediction.distance_meters is calculated from.

radius?: number

The radius of the area used for prediction biasing. The radius is specified in meters, and must always be accompanied by a location property. Alternatively, bounds can be used.

deprecated

radius is deprecated as of May 2023. Use google.maps.places.AutocompletionRequest.locationBias and google.maps.places.AutocompletionRequest.locationRestriction instead.

region?: null | string

A region code which is used for result formatting and for result filtering. It does not restrict the suggestions to this country. The region code accepts a ccTLD ("top-level domain") two-character value. Most ccTLD codes are identical to ISO 3166-1 codes, with some notable exceptions. For example, the United Kingdom's ccTLD is "uk" (.co.uk) while its ISO 3166-1 code is "gb" (technically for the entity of "The United Kingdom of Great Britain and Northern Ireland").

Unique reference used to bundle individual requests into sessions.

types?: string[]

The types of predictions to be returned. For supported types, see the developer's guide. If no types are specified, all types will be returned.

Generated using TypeDoc