Skip to main content
POST
/
api
/
location
/
geoCode
Geocode address
curl --request POST \
  --url https://api2.rhombussystems.com/api/location/geoCode \
  --header 'Content-Type: application/json' \
  --header 'x-auth-apikey: <api-key>' \
  --header 'x-auth-scheme: <x-auth-scheme>' \
  --data '
{
  "address": "1600 Pennsylvania Avenue NW, Washington, DC"
}
'
{
  "error": true,
  "errorMsg": "<string>",
  "latitude": 38.8977,
  "longitude": -77.0365,
  "warningMsg": "<string>"
}

Authorizations

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request object for getting the latitude and longitude of an address.

address
string | null

Address to geocode

Example:

"1600 Pennsylvania Avenue NW, Washington, DC"

Response

200 - application/json

OK

Response object containing the latitude and longitude of an address.

error
boolean | null
errorMsg
string | null
latitude
number<double> | null

Latitude coordinate of the address

Example:

38.8977

longitude
number<double> | null

Longitude coordinate of the address

Example:

-77.0365

warningMsg
string | null