Skip to main content

AddressAutocompleteParameters

Stentor API Reference


Stentor API Reference / stentor-models/src / AddressAutocompleteParameters

Interface: AddressAutocompleteParameters

Defined in: packages/stentor-models/src/Form/FormField.ts:10

Parameters for Google Maps Places Autocomplete API

See​

https://developers.google.com/maps/documentation/places/web-service/autocomplete

Properties​

components?​

optional components?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:16

This will look like components=country:us or components=country:us|country:ca

See​

https://developers.google.com/maps/documentation/places/web-service/autocomplete#components


language?​

optional language?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:20

The text string on which to search. The Places service will return candidate matches based on this string and order results based on their perceived relevance.


location?​

optional location?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:26

A text that is the lat & long of the location to use as the center of the search.

For example, location=37.76999,-122.44696


locationbias?​

optional locationbias?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:32

Biases results to a specified location and radius.

See​

https://developers.google.com/maps/documentation/places/web-service/autocomplete#location_biasing


locationrestriction?​

optional locationrestriction?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:38

Restricts results to a specified location and radius.

See​

https://developers.google.com/maps/documentation/places/web-service/autocomplete#location_restriction


radius?​

optional radius?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:44

When using location with a specific lat & long, this must be provided.

This is in meters


key?​

optional key?: string

Defined in: packages/stentor-models/src/Form/FormField.ts:48

The API key, only required when using the official Google Maps API.