> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Geocode

Geocodes an address string into a structured result containing the location geometry, a confidence score, and the scoring algorithm used. This function performs forward geocoding, converting a textual address or place name into geographic coordinates.

## Signatures

```sql theme={"system"}
ST_Geocode(location: String)
```

## Parameters

<ParamField body="location" type="String" required>
  The address or place name to geocode.
</ParamField>

## Return type

<ResponseField type="Struct<location: String, geometry: Geometry, score: Long, score_algorithm: String>">
  A struct containing:

  * `location`: The matched location string.
  * `geometry`: The point geometry of the geocoded location.
  * `score`: A confidence score for the match.
  * `score_algorithm`: The algorithm used to compute the score.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT ST_Geocode('1600 Pennsylvania Avenue NW, Washington, DC')
```

```sql theme={"system"}
SELECT result.geometry, result.score
FROM (SELECT ST_Geocode('San Francisco, CA') AS result)
```
