Enriching a coordinate
Sign-ups, devices and deliveries arrive as coordinates. The people analysing them want words and codes: the country, the ISO region code, the municipality, the local time of the event, the height of the ground, and whether the point is on a road. That is one request per point, and a few thousand points is a loop you should pace rather than hammer.
The approach
- One
/v1/hereper point. It answers everything the service holds at a point in one request: the administrative chain, the time zone, every raster including elevation, the nearest road, the nearest places, nearby weather readings and transit stops. - Pick out the fields you want, and work out the local time from the time zone.
- Pace the loop to your plan's rate, with a few requests in flight.
- Or, for one field, ask the endpoint that holds it:
/v1/timezone,/v1/adminor/v1/elevation.
/v1/here, /v1/admin and /v1/elevation are the platform product;/v1/timezone is address, so a key on the Address plan can fill the time zone column and nothing else here. See products and plans.
Every column is only as wide as its layer: around Mexico City all of them fill; elsewhere some come back empty, asbelow. Each layer's area is on coverage.
curl -G "https://api.oslew.com/v1/here" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'at=19.4326,-99.1332' \
--data-urlencode 'limit=3' \
--data-urlencode 'time=1795132800'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.here("19.4326,-99.1332", limit=3, time=1795132800)import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.here("19.4326,-99.1332", { limit: 3, time: 1795132800 });HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 299
ratelimit-reset: 1
{
"at": [
19.4326,
-99.1332
],
"admin": [
{
"doc": 2174,
"id": "7f1f3634-1218-43e7-9538-ac3d1f43fc1c",
"name": "México",
"subtype": "country",
"country": "MX",
"region": null,
"admin_level": null,
"via": "interior",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 61,
"id": "0831989a-c65b-47db-802e-f930af64b9e4",
"name": "México",
"subtype": "country",
"country": "MX",
"region": null,
"admin_level": null,
"via": "interior",
"provenance": {
"name": "overture-divisions-maritime",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1560,
"id": "bc8dbc34-544b-47c4-bdb1-d3f5ecfc6af7",
"name": "Ciudad de México",
"subtype": "region",
"country": "MX",
"region": "MX-CMX",
"admin_level": 1,
"via": "boundary",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1380,
"id": "b468c7e5-eb6f-44c8-bfeb-c60bce169f25",
"name": "Cuauhtémoc",
"subtype": "county",
"country": "MX",
"region": "MX-CMX",
"admin_level": 2,
"via": "boundary",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1522,
"id": "2b1d49e2-98ef-4665-b9f6-1ce96c9f015b",
"name": "Ciudad de México",
"subtype": "locality",
"country": "MX",
"region": "MX-CMX",
"admin_level": null,
"via": "interior",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1423,
"id": "96d18adf-e0bb-473c-affc-758969b272e1",
"name": "Centro",
"subtype": "neighborhood",
"country": "MX",
"region": "MX-CMX",
"admin_level": null,
"via": "boundary",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
},
{
"doc": 1417,
"id": "7fc4847d-082f-4b20-9b65-930f09f6eac3",
"name": "Plaza de la Constitución",
"subtype": "microhood",
"country": "MX",
"region": "MX-CMX",
"admin_level": null,
"via": "boundary",
"provenance": {
"name": "overture-divisions",
"release": "2026-08-19.0",
"license": "ODbL-1.0"
}
}
],
"timezone": "America/Mexico_City",
"places": [
{
"doc": 1573423,
"name": "CALLE PLAZA DE LA CONSTITUCIÓN",
"lat": 19.432082003066732,
"lon": -99.13329281916349,
"distance_m": 58.41527737409471,
"precision": "street",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Ciudad de México",
"region": null,
"country": "MX",
"category": null,
"postcode": "06060",
"street": "CALLE PLAZA DE LA CONSTITUCIÓN"
},
"normalized": {
"street": "CALLE PLAZA DE LA CONSTITUCIÓN",
"locality": "Ciudad de México",
"postcode": "06060",
"country": "MX",
"formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
},
"provenance": {
"name": "overture-addresses",
"release": "2026-08-19.0",
"license": "permissive (per-source, see record)"
},
"attributes": null
},
{
"doc": 1573424,
"name": "CALLE PLAZA DE LA CONSTITUCIÓN",
"lat": 19.43319132854372,
"lon": -99.13320635260472,
"distance_m": 65.75619907210411,
"precision": "street",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Ciudad de México",
"region": null,
"country": "MX",
"category": null,
"postcode": "06060",
"street": "CALLE PLAZA DE LA CONSTITUCIÓN"
},
"normalized": {
"street": "CALLE PLAZA DE LA CONSTITUCIÓN",
"locality": "Ciudad de México",
"postcode": "06060",
"country": "MX",
"formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
},
"provenance": {
"name": "overture-addresses",
"release": "2026-08-19.0",
"license": "permissive (per-source, see record)"
},
"attributes": null
},
{
"doc": 1573420,
"name": "CALLE PLAZA DE LA CONSTITUCIÓN",
"lat": 19.432586016471184,
"lon": -99.13242815778341,
"distance_m": 80.95084328467438,
"precision": "street",
"precision_m": 6.756173533775122,
"hierarchy": {
"locality": "Ciudad de México",
"region": null,
"country": "MX",
"category": null,
"postcode": "06060",
"street": "CALLE PLAZA DE LA CONSTITUCIÓN"
},
"normalized": {
"street": "CALLE PLAZA DE LA CONSTITUCIÓN",
"locality": "Ciudad de México",
"postcode": "06060",
"country": "MX",
"formatted": "CALLE PLAZA DE LA CONSTITUCIÓN, Ciudad de México, 06060, MX"
},
"provenance": {
"name": "overture-addresses",
"release": "2026-08-19.0",
"license": "permissive (per-source, see record)"
},
"attributes": null
}
],
"road": {
"lat": 19.43200133133587,
"lon": -99.13329035902773,
"distance_m": 67.23995201279342,
"class": "living_street",
"speed_limit_kmh": 30
},
"elevation_m": 2228.8455999999974,
"rasters": [
{
"layer": "elevation",
"units": "m",
"value": 2228.8455999999974,
"time": null
},
{
"layer": "ecmwf_10u",
"units": "m/s",
"value": 0.3563390080000036,
"time": 1795132800
},
{
"layer": "ecmwf_10v",
"units": "m/s",
"value": -1.2219307520000178,
"time": 1795132800
},
{
"layer": "ecmwf_2t",
"units": "K",
"value": 289.96362847999995,
"time": 1795132800
},
{
"layer": "ecmwf_msl",
"units": "Pa",
"value": 101588.55451904,
"time": 1795132800
},
{
"layer": "ecmwf_tp",
"units": "m",
"value": 0,
"time": 1795132800
}
],
"conditions": [
{
"parameter": "altim_inhg",
"value": 30.4,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "co",
"value": 0.96,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "dewpoint_c",
"value": 7,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "no2",
"value": 35,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "o3",
"value": 1,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "pm10",
"value": 47,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "pm25",
"value": 25,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "so2",
"value": 52,
"time": 1795086000,
"station": "sedema-MER",
"distance_m": 1689.7380487595012,
"provenance": {
"name": "sedema",
"release": "2026-11-19T11:00Z",
"license": "SEDEMA Ciudad de México (SIMAT, RAMA), CC BY 4.0"
}
},
{
"parameter": "temp_c",
"value": 15,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "vis_mi",
"value": 6,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "wind_dir",
"value": 0,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
},
{
"parameter": "wind_kt",
"value": 0,
"time": 1795103100,
"station": "MMMX",
"distance_m": 6428.533455622266,
"provenance": {
"name": "metar",
"release": "2026-11-19T16:30Z",
"license": "US NWS / aviationweather.gov, public domain"
}
}
],
"stops": [],
"epoch": 30,
"release": "2026-08-19.0",
"took_us": 25638
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
What the program takes from that answer, at the Zócalo:
- Country and region code from the
countryandregiondivisions:MXandMX-CMX, the ISO 3166-2 code. The country appears twice, once from the land divisions and once from the maritime ones; the first is enough. - Municipality: here the
county, Cuauhtémoc — the borough. After it in the list come thelocality, aneighborhoodand amicrohood. - Time zone:
America/Mexico_City, an IANA id. - Elevation: the
rastersentry whose layer iselevation, 2,228.8 m. - Road: a
living_streetposted at 30 km/h, 67 m away.
via on each division says how it was decided: interior when the point's cell is provably inside, with no geometry read; boundary when the polygon was consulted. Seeeverything at a point and administrative areas.
The program
It reads signups.csv — id, lat, lon, and time in unix seconds — and writes enriched.csv. Run the TypeScript withnpx tsx enrich.ts signups.csv; see clients.
"""Enrich coordinates: country, region code and municipality, time zone and
local time, elevation, and the nearest road, from one /v1/here per point.
python enrich.py signups.csv # columns: id, lat, lon, time
time is unix seconds. Writes enriched.csv.
"""
import csv
import sys
import threading
import time
from concurrent.futures import ThreadPoolExecutor
from datetime import datetime
from zoneinfo import ZoneInfo, ZoneInfoNotFoundError
from oslew import BadRequest, Client, PlanError, retry_on_rate_limit
client = Client(base_url="https://api.oslew.com") # the key is read from GEO_API_KEY
WORKERS = 4 # enough requests in flight to keep up with the rate
class Pacer:
"""Evenly spaced start times at a sustained rate, shared by every thread."""
def __init__(self, rate):
self.interval, self.next, self.lock = 1 / rate, time.monotonic(), threading.Lock()
def wait(self):
with self.lock:
now = time.monotonic()
at = max(self.next, now)
self.next = at + self.interval
time.sleep(at - now)
def first(admin, subtype):
return next((d for d in admin if d["subtype"] == subtype), None)
def local_time(unix, tzid):
try:
return datetime.fromtimestamp(unix, ZoneInfo(tzid)).isoformat()
except ZoneInfoNotFoundError:
return None # a zone newer than this machine's tz database
def enrich(row):
try:
here = retry_on_rate_limit(client.here, f"{row['lat']},{row['lon']}", limit=1, attempts=5)
except BadRequest as e:
return {**row, "error": e.message} # a coordinate that does not parse, say
admin = here["admin"]
country, region = first(admin, "country"), first(admin, "region")
# Which subtype is "the municipality" depends on the country's scheme.
municipality = first(admin, "county") or first(admin, "localadmin") or first(admin, "locality")
elevation = next((r["value"] for r in here["rasters"] if r["layer"] == "elevation"), None)
road, tzid = here["road"], here["timezone"]
return {
**row,
"country": country and country["country"],
"region_code": region and region.get("region"),
"municipality": municipality and municipality["name"],
"tzid": tzid,
"local_time": tzid and local_time(int(row["time"]), tzid),
"elevation_m": None if elevation is None else round(elevation),
"road_class": road and road["class"],
"road_m": road and round(road["distance_m"]),
}
with open(sys.argv[1], newline="") as f:
rows = list(csv.DictReader(f))
# The first point alone: a plan without the platform product is refused
# once, here, and the answer's headers carry the rate to pace the rest at.
try:
out = [enrich(rows[0])]
except PlanError as e:
sys.exit(e.message)
pace = Pacer((client.rate_limit and client.rate_limit.limit) or 20)
def paced(row):
pace.wait()
return enrich(row)
with ThreadPoolExecutor(WORKERS) as pool:
out += pool.map(paced, rows[1:])
fields = ["id", "lat", "lon", "time", "country", "region_code", "municipality", "tzid",
"local_time", "elevation_m", "road_class", "road_m", "error"]
with open("enriched.csv", "w", encoding="utf-8", newline="") as f:
w = csv.DictWriter(f, fieldnames=fields, extrasaction="ignore")
w.writeheader()
w.writerows(out)
print(f"{len(out)} points enriched")// Enrich coordinates: country, region code and municipality, time zone and
// local time, elevation, and the nearest road, from one /v1/here per point.
//
// npx tsx enrich.ts signups.csv # columns: id, lat, lon, time
//
// time is unix seconds. Writes enriched.csv.
import { readFile, writeFile } from "node:fs/promises";
import { BadRequest, Client, PlanError, retryOnRateLimit } from "@oslew/client";
import type { Hit } from "@oslew/client";
const client = new Client({ baseUrl: "https://api.oslew.com" }); // the key is read from GEO_API_KEY
const WORKERS = 4; // enough requests in flight to keep up with the rate
type Row = Record<string, string | number | null | undefined>;
// Evenly spaced start times at a sustained rate, shared by every worker.
function pacer(rate: number) {
let next = Date.now();
return async () => {
const now = Date.now();
const at = Math.max(next, now);
next = at + 1000 / rate;
await new Promise((done) => setTimeout(done, at - now));
};
}
const first = (admin: Hit[], subtype: Hit["subtype"]) => admin.find((d) => d.subtype === subtype);
function localTime(unix: number, tzid: string): string | null {
try {
// sv-SE writes 2026-09-23 09:00:00, which sorts and parses.
return new Date(unix * 1000).toLocaleString("sv-SE", { timeZone: tzid });
} catch {
return null; // a zone newer than this runtime's tz database
}
}
async function enrich(row: Row): Promise<Row> {
let here;
try {
here = await retryOnRateLimit(() => client.here(`${row.lat},${row.lon}`, { limit: 1 }), { attempts: 5 });
} catch (e) {
if (e instanceof BadRequest) return { ...row, error: e.message }; // a coordinate that does not parse, say
throw e;
}
const country = first(here.admin, "country");
const region = first(here.admin, "region");
// Which subtype is "the municipality" depends on the country's scheme.
const municipality = first(here.admin, "county") ?? first(here.admin, "localadmin") ?? first(here.admin, "locality");
const elevation = here.rasters.find((r) => r.layer === "elevation")?.value;
return {
...row,
country: country?.country,
region_code: region?.region,
municipality: municipality?.name,
tzid: here.timezone,
local_time: here.timezone ? localTime(Number(row.time), here.timezone) : null,
elevation_m: elevation === undefined ? null : Math.round(elevation),
road_class: here.road?.class,
road_m: here.road ? Math.round(here.road.distance_m) : null,
};
}
const [header, ...lines] = (await readFile(process.argv[2], "utf8")).trim().split(/\r?\n/);
const names = header.split(",").map((h) => h.trim());
const rows: Row[] = lines.map((line) => Object.fromEntries(line.split(",").map((v, i) => [names[i], v])));
// The first point alone: a plan without the platform product is refused
// once, here, and the answer's headers carry the rate to pace the rest at.
const out: Row[] = [];
try {
out.push(await enrich(rows[0]));
} catch (e) {
if (e instanceof PlanError) throw new Error(e.message);
throw e;
}
const pace = pacer(client.rateLimit?.limit ?? 20);
let next = 1;
await Promise.all(Array.from({ length: WORKERS }, async () => {
while (next < rows.length) {
const i = next++;
await pace();
out[i] = await enrich(rows[i]);
}
}));
const fields = ["id", "lat", "lon", "time", "country", "region_code", "municipality", "tzid",
"local_time", "elevation_m", "road_class", "road_m", "error"];
const cell = (v: unknown) => (v === null || v === undefined ? "" : /[",]/.test(String(v)) ? `"${String(v).replaceAll('"', '""')}"` : String(v));
await writeFile("enriched.csv", [fields.join(","), ...out.map((r) => fields.map((f) => cell(r[f])).join(","))].join("\n") + "\n");
console.log(`${out.length} points enriched`);The decisions in it
The first request alone, then a paced pool
The first point is asked on its own. If the plan does not include platform, that is one403 and a clear message, not ten thousand. Its headers also carry RateLimit-Limit, the rate the key was sold, and the rest of the points are paced to it: a pacer hands out evenly spaced start times, and four workers share it. The workers are there because one request at a time is capped by the round trip — /v1/here did 26 ms of work for the answer above — and the pacer is there so four of them do not spend the burst in the first second and then meet 429s. The retry helper covers the429s that remain. See rate limits.
Which division is "the municipality"
Divisions have a subtype — country, dependency, region,county, localadmin, locality, macrohood,neighborhood, microhood — and which of them a country's municipalities are depends on how that country is divided. In the answer above, the borough is the county. The program takes thecounty, then localadmin, then locality; check a sample for each country you serve and fix the order per country if it matters.
Local time
/v1/here gives the zone id and no offset. The program turns the event's unix time into the local clock with the runtime's own time zone database: Python's zoneinfo writes it with its offset,2026-09-23T09:00:00-06:00; the TypeScript writes the wall-clock time alone. A zone newer than the machine's database cannot be read that way, and the program leaves the column empty rather than guessing. On Windows, Python's zoneinfo needs the tzdata package.
Nulls are answers
/v1/here never fails for a missing layer; the layer contributes nothing. Outside the areas the loaded data covers, the region, the municipality, the elevation or the road come back empty, and the program writes them empty. Read an empty municipality as "not known here", not as "in no municipality". A coordinate that does not parse or is out of range is a 400, recorded in the row's error — its message says near is out of range whatever the parameter was called.
When you need one field
/v1/here does everything at once — the answer above took 26 ms of server time, against microseconds for /v1/admin or /v1/elevation alone. Each costs one token either way, so the difference is in latency and in what the plan includes:
from oslew import Client
client = Client(base_url="https://api.oslew.com") # the key is read from GEO_API_KEY
at, signed_up = "19.4326,-99.1332", 1790175600
# The time zone and its offset at that instant: the address product.
tz = client.timezone(at, timestamp=signed_up)
local_clock = signed_up + tz["utc_offset_s"] if tz["tzid"] else None # seconds on the local clock
# The administrative chain: platform. Unlike /v1/here's, it includes the time zone.
admin = client.admin(at)["admin"]
region_code = next((d["region"] for d in admin if d["subtype"] == "region"), None)
# The ground's height: platform. None outside the elevation layer's coverage.
elevation_m = client.elevation(at=at)["results"][0]["elevation_m"]
print(tz["tzid"], local_clock, region_code, elevation_m)import { Client } from "@oslew/client";
const client = new Client({ baseUrl: "https://api.oslew.com" }); // the key is read from GEO_API_KEY
const [at, signedUp] = ["19.4326,-99.1332", 1790175600];
// The time zone and its offset at that instant: the address product.
const tz = await client.timezone(at, { timestamp: signedUp });
const localClock = tz.utc_offset_s === null ? null : signedUp + tz.utc_offset_s; // seconds on the local clock
// The administrative chain: platform. Unlike /v1/here's, it includes the time zone.
const admin = (await client.admin(at)).admin;
const regionCode = admin.find((d) => d.subtype === "region")?.region ?? null;
// The ground's height: platform. null outside the elevation layer's coverage.
const elevationM = (await client.elevation({ at })).results[0].elevation_m;
console.log(tz.tzid, localClock, regionCode, elevationM);/v1/timezone: the zone and its offsets at an instant
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 291
ratelimit-reset: 1
{
"at": [
19.4326,
-99.1332
],
"timestamp": 1790175600,
"tzid": "America/Mexico_City",
"utc_offset_s": -21600,
"raw_offset_s": -21600,
"dst_offset_s": 0,
"abbreviation": "CST",
"via": "interior",
"provenance": {
"name": "timezone-boundary-builder",
"release": "2026d",
"license": "ODbL-1.0"
},
"took_us": 144
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
utc_offset_s is the raw offset plus daylight saving at timestamp, from the service's compiled time zone database: the seconds to add to UTC. The zone polygons are timezone-boundary-builder's, under ODbL-1.0. Where no zone holds the point — open ocean outside territorial waters — tzid and the offsets are null and the status is still 200. See time zones.
/v1/elevation: the ground's height
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 299
ratelimit-reset: 1
{
"results": [
{
"lat": 19.4326,
"lon": -99.1332,
"elevation_m": 2228.8455999999974,
"resolution_m": 30
}
],
"provenance": {
"name": "copernicus-dem-glo-30",
"release": "2022-05",
"license": "Copernicus DEM licence (attribution: © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA)"
},
"took_us": 3
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Copernicus GLO-30, a 30 m grid, read bilinearly. elevation_m is null outside its coverage. Its path parameter samples evenly along a line, by distance — it does not stop at the vertices you gave in between — so a list of unrelated points is one at request each. Seeelevation and rasters.
What to watch out for
/v1/adminincludes the time zone as a division — subtypetimezone, named by its IANA id — and/v1/here'sadminleaves it out, carrying it astimezoneinstead. Code that walks the chain should expect it in one and not the other.- The nearest road is not the road the point is on. It is the nearest on the driving network, with
distance_m; a sign-up 900 m from any road is in a field, not on the road you would print. - Licences differ by field. Divisions, the time zone polygons and the road data are ODbL-1.0; elevation carries the Copernicus DEM licence. The
provenanceon each division, and on the/v1/timezoneand/v1/elevationanswers, names them. See data and licensing before storing the columns. - What the service keeps of these requests is coarse — cells of about 2 km, never the key or an IP address. See what is logged.
Endpoints
/v1/hereplatformEverything known at a point, from every loaded layer: administrative chain, time zone, nearest places, nearest road, elevation and rasters, latest conditions, transit stops.
/v1/adminplatformThe administrative chain at a point: every division containing it, outermost first.