## Forward geocode an address `geocode().forward(GeocodeForwardParamsparams, RequestOptionsrequestOptions = RequestOptions.none()) : GeocodeResult` **get** `/api/v1/geocode` Forward geocode an address ### Parameters - `params: GeocodeForwardParams` - `q: String` Address or place name - `bbox: Optional` Bounding box filter: south,west,north,east - `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 20, max 100) - `lng: Optional` Focus longitude ### Returns - `class GeocodeResult:` GeoJSON FeatureCollection of geocoding results - `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.GeocodeForwardParams import com.plazafyi.models.geocode.GeocodeResult fun main() { val client: PlazaClient = PlazaOkHttpClient.fromEnv() val params: GeocodeForwardParams = GeocodeForwardParams.builder() .q("q") .build() val geocodeResult: GeocodeResult = client.geocode().forward(params) } ```