## Autocomplete a partial address `geocode().autocomplete(GeocodeAutocompleteParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : AutocompleteResult` **get** `/api/v1/geocode/autocomplete` Autocomplete a partial address ### Parameters - `params: GeocodeAutocompleteParams` - `q: String` Partial address query - `countryCode: Optional` ISO 3166-1 alpha-2 country code filter - `lang: Optional` Language code for localized names (e.g. en, de, fr) - `lat: Optional` Focus latitude - `layer: Optional` Filter by layer: address, poi, or admin - `limit: Optional` Maximum results (default 10, max 20) - `lng: Optional` Focus longitude ### Returns - `class AutocompleteResult:` GeoJSON FeatureCollection of autocomplete suggestions - `features: List` - `geometry: GeoJsonGeometry` - `coordinates: Coordinates` GeoJSON coordinates array (nesting depth varies by geometry type) - `List` - `List>` - `List>>` - `List>>>` - `type: Type` - `POINT("Point")` - `LINE_STRING("LineString")` - `POLYGON("Polygon")` - `MULTI_POINT("MultiPoint")` - `MULTI_LINE_STRING("MultiLineString")` - `MULTI_POLYGON("MultiPolygon")` - `properties: Properties` - `countryCode: Optional` ISO 3166-1 alpha-2 country code - `displayName: Optional` Formatted address or place name - `distanceM: Optional` Distance in meters - `osmId: Optional` OpenStreetMap ID - `osmType: Optional` OSM element type - `score: Optional` Match confidence score - `source: Optional` Result source (address, place, interpolation) - `type: Type` - `FEATURE("Feature")` - `type: Type` - `FEATURE_COLLECTION("FeatureCollection")` ### Example ```kotlin package com.plazafyi.example import com.plazafyi.client.PlazaClient import com.plazafyi.client.okhttp.PlazaOkHttpClient import com.plazafyi.models.geocode.AutocompleteResult import com.plazafyi.models.geocode.GeocodeAutocompleteParams fun main() { val client: PlazaClient = PlazaOkHttpClient.fromEnv() val params: GeocodeAutocompleteParams = GeocodeAutocompleteParams.builder() .q("q") .build() val autocompleteResult: AutocompleteResult = client.geocode().autocomplete(params) } ```