Usage

0 requests this month

Your Geocoding API Token

Getting Started

Prepare a POST request for https://geo-api.heuerlabs.com/v0/geocoding/reverse

Set the Authentication header parameter to your API token

Set the latitude and longitude parameter

Send and get location details in milliseconds

curl

curl https://geo-api.heuerlabs.com/v0/geocoding/reverse \ --header "Authentication: undefined" \ -d "latitude=38.292987&longitude=-122.457724"

JavaScript

var data = new FormData(); data.append('latitude', 38.292987); data.append('longitude', -122.457724); fetch('https://geo-api.heuerlabs.com/v0/geocoding/reverse', { method: 'POST', body: data, headers:{ 'Authentication': 'undefined', } }).then(r => { return r.json(); }).then(r => { console.log(r.city, r.region); }).catch(error => { if (error.name === 'AbortError') return; throw error; });

Response

{ "city": "Sonoma", "region": "California", "region_code": "CA", "country": "United States", "country_code": "US", "time_zone": "America/Los_Angeles", "continent_name": "North America", "continent_code": "NA" }