Skip to main content

Address Gouv Autocomplete Field

An autocomplete field which is a FetchAutocompleteField Props component configured for the api-Adresse.data.gouv.

Storybook Docs

Props

NameTypeDefaultDescription
latstring''To be filled in to prioritize these latitude coordinates in the search results.
lonstring''To be filled in to prioritize these longitude coordinates in the search results.
typestring''To be filled in to reduce to specific type of results of the search.
onFetchData(value: string) => Promise<IValue<IAddressGouvData>[]>A default function getDataAddressGouv that makes a call to the api-adresse.gouv.fr API.This callback function return field value to the parameters and to be return Promise<IValue<IAddressGouvData>[]> value. By default this props is defined.
...--extends FetchAutocompleteField Props

IAddressGouvData

nametypeDescription
citystringName of the city
housenumberstringNumber of the house
labelstringResume label
postcodestringNumber of the postcode
streetstringName of the street