# location2geocode: Location to Geocode

> location2geocode (Location to Geocode) is a 1001fx API function in the group Geo: POST https://api.1001fx.com/geo/location2geocode, 1 credit per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

Looks up a provided location and returns geo informations.

- This service is provided by an external service provider: OpenStreetMap. The data of the call is sent to the provider. [More about service providers](https://1001fx.com/functions#serviceproviders)

- Group: Geo
- Endpoint: `POST https://api.1001fx.com/geo/location2geocode`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 1 credit per call
- Ready-made in: Make and n8n
- Service provider: OpenStreetMap
- Docs: https://1001fx.com/functions/location2geocode

## Parameters

- `location` (string, required) – Location: Location to look up.

## Example: Location to Geocode

```bash
curl -X POST 'https://api.1001fx.com/geo/location2geocode' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"location":"Römer Frankfurt"}'
```

Answer (HTTP 200):

```json
{
  "result": [
    {
      "latitude": 50.1104684,
      "longitude": 8.6816587,
      "country": "Deutschland",
      "countryCode": "DE",
      "city": "Frankfurt am Main"
    }
  ]
}
```
