# Truck Parking API

The closest truck parkings, Autohöfe and truck stops to a point or city — sorted by distance with distance_km, name, coordinates, country and amenities. 118,000+ named locations in 62 countries, the same parking data our TruckTurn truck navigation uses.

**Endpoint:** `GET /api/v2/data/truck-parkings`
**Quota class:** cheap — 1000/day (Explorer), 50000/day (PAYG)

---

## Parameters

| Name | Description |
|------|-------------|
| `lat` | Latitude |
| `lon` | Longitude |
| `city` | City name — alternative to lat/lon, resolved to coordinates |
| `country` | ISO-2 country code, disambiguates city |
| `radius` | Radius km (default 25, max 150) |
| `limit` | Max results (default 50, max 500) |
| `lang` | Language for country names (default en) |
| `dataset` | Optional. legacy = the previous dataset (before 2026-11-11: about 22k locations, old ids) for the transition; available until 2026-12-31. Omit for the current dataset. |


## Example

```bash
curl "https://nakordoni.eu/api/v2/data/truck-parkings?city=Katowice&country=PL&radius=40" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response fields

Inside the `data` object of the envelope. A field is `null`, absent or an empty list when we hold no value for it — never a placeholder.

| Field | Description |
|-------|-------------|
| `data.pois[]` | Truck parkings, autohofs and truck stops near the point: id, type, name, address, lat, lng, country, country_code, country_name, distance_km, amenities, details. address is often empty in the current dataset. |
| `data.pois[].id` | Stable integer id. A place that was in the previous dataset (within 50 m) keeps its old id; other places have ids from 2^47 up (below 2^53, safe as a JSON number). The same place keeps its id across our data refreshes. Ids of ?dataset=legacy are the old ids. |
| `data.pois[].amenities` | Array of amenity tokens we hold for the place (empty when none), e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, ev_charging, wifi, security, cctv, fenced, lighting, parking, booking_possible, booking_required, adr_allowed, adr_not_allowed. |
| `data.pois[].details` | Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, "24/7" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. "Truck wash"), parking_booking ("none" \| "possible" \| "required"). Omitted when we hold none. |
| `data.total_found` | Matches inside the radius, with limit and search_location. |
| `resolved_location` | Envelope level: when you passed a city, the coordinates it resolved to — query, lat, lon, label. |


## Response envelope

```json
{
  "ok": true,
  "api_version": "1",
  "product": "truck-parkings",
  "attribution": "Data by nakordoni.eu",
  "data": [ ... ]
}
```

---

Full docs: https://nakordoni.eu/en/developers/docs#truck-parkings
*Auto-generated 2026-12-05 — regenerate: `sudo -u www-data php /var/www/html/helpers/push_github_docs.php`*