AddressAutocompleteParameters
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?β
optionalcomponents?: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?β
optionallanguage?: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?β
optionallocation?: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?β
optionallocationbias?: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?β
optionallocationrestriction?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:38
Restricts results to a specified location and radius.
Seeβ
radius?β
optionalradius?: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?β
optionalkey?:string
Defined in: packages/stentor-models/src/Form/FormField.ts:48
The API key, only required when using the official Google Maps API.