Skip to content
Browse all functions

Geocode to Location

geo/geocode2location

Looks up a provided longitude and latitude values and returns location informations.

Endpoint

POSThttps://api.1001fx.com/geo/geocode2location
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • latitudenumberrequired

    Latitude value to look up.

    Min:
    -90
    Max:
    90
    Example:
    8.6816587
  • longitudenumberrequired

    Longitude value to look up.

    Min:
    -180
    Max:
    180
    Example:
    8.6816587

Examples

Geocode to Location

Returns informations

Input

Expects a json body
{
  "latitude": 50.1104684,
  "longitude": 8.6816587
}

Output · HTTP 200

Response
{
  "result": [
    {
      "latitude": 50.1104684,
      "longitude": 8.6816587,
      "formattedAddress": "Römer, 21, Römerberg, Altstadt, Innenstadt 1, Frankfurt am Main, Hessen, 60311, Deutschland",
      "country": "Deutschland",
      "city": "Frankfurt am Main",
      "state": "Hessen",
      "zipcode": "60311",
      "streetNumber": "21",
      "countryCode": "DE"
    }
  ]
}
Show curl command
curl -X POST 'https://api.1001fx.com/geo/geocode2location' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"latitude":50.1104684,"longitude":8.6816587}'

Try geocode2location now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.019.04.2023created