Place Autocomplete
Provides a searchable input field that queries the Photon geocoding API to find places, addresses, and points of interest.
Props
| Prop | Type | Description |
|---|---|---|
onPlaceSelect | (feature: PlaceFeature) => void | Optional. Callback fired when a place is selected from the results. |
onResultsChange | (results: PlaceFeature[]) => void | Optional. Callback fired when search results change. |
debounceMs | number | Optional. Debounce delay in milliseconds before triggering a search. Defaults to 300. |
lang | string | Optional. Preferred language for results (e.g., "en", "de", "fr"). |
limit | number | Optional. Maximum number of results to return. Defaults to 5. |
bbox | [number, number, number, number] | Optional. Bounding box to restrict results: [minLongitude, minLatitude, maxLongitude, maxLatitude]. |
lat | number | Optional. Latitude used to bias results toward a specific location. |
lon | number | Optional. Longitude used to bias results toward a specific location. |
zoom | number | Optional. Zoom level used for location biasing. Higher values increase locality. |
locationBiasScale | number | Optional. Strength of the location bias. |
...props | Omit<React.ComponentProps<"input">, "value" | "onChange"> | All other standard input element props. |