/geocode namespace · APlicious

Free Geocoding API — forward/reverse geocoding, distance, and elevation

The /geocode namespace covers forward and reverse geocoding, great-circle and driving distance, elevation, bounding boxes, and a full country/city reference database — 19 endpoints behind one key.

19geocode endpoints
Get free API key View docs
GET /api/v1/geocode/distance
const res = await fetch(
  'https://aplicious.com/api/v1/geocode/distance?lat1=19.07&lon1=72.87&lat2=28.61&lon2=77.20',
  { headers: { 'X-API-Key': 'lapi_live_••••' } }
);
const { data } = await res.json();
// { distance_km: 1162.3, distance_miles: 722.0 }

No credit card · Free tier forever · X-API-Key header auth

What's included in /geocode

Forward and reverse geocoding

Convert an address to coordinates or coordinates back to an address via OSM Nominatim.

Distance calculations

Both great-circle (Haversine) and real driving-distance calculations, depending on what your use case needs.

Elevation and bounding box

Get elevation for a coordinate, or the bounding box for a region — useful for map-rendering logic.

Country and city reference data

Structured country/city search and reference info, not just raw coordinate lookups.

Batch geocoding

Geocode multiple addresses in a single call instead of one request per address.

Start using the geocoding API free today

Free tier — 500 calls/month, no credit card. Upgrade when you need more.

Get free API keyExplore /geocode docs

Frequently asked questions

What's the difference between distance and driving-distance?

/distance computes the great-circle (straight-line) distance via the Haversine formula. /driving-distance accounts for actual road routing.

Can I geocode multiple addresses at once?

Yes — /batch accepts multiple addresses in a single request.

Is reverse geocoding included?

Yes — /reverse converts coordinates back into a human-readable address.

Related API guides

Timezone API — Current Time, Business Hours Overlap, IANA Zones

Get current time for any IANA timezone, convert between zones, and find business

Read guide

IP Geolocation API — Free, Fast, Country/City/Timezone

Free IP geolocation API returning country, city, region, timezone, ISP, and coor

Read guide

Free Weather API — Current, Forecast & Historical Data

Get live weather data, 7-day forecasts, historical records and severe weather al

Read guide

One key unlocks all 34 namespaces — weather, finance, fitness, astrology, and more.

View all plans and pricing →