Get Nearby Sections / Obtener Tramos Cercanos
const url = 'https://api-dev.zonaparqueo.com/external/tramos-cercanos?latitud=1&longitud=1&metros=1';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-dev.zonaparqueo.com/external/tramos-cercanos?latitud=1&longitud=1&metros=1' \ --header 'Authorization: <Authorization>'Gets nearby sections to a given location, including distance, rate, and schedule.
This is the recommended way to answer “which sections are near me”: filtering the full catalog by distance on the consumer side costs around 10 s per query.
Historical note: this endpoint was down between June and September 2026, returning HTTP 500 for all queries. It now works normally. Verified on 2026-09-26: it returns 200 and its distances match, to the metre, an independent haversine calculation over the catalog’s own coordinates (13 out of 13), with no active section inside the radius omitted.
Performance: between 2.6 s (median of 5 samples, 2026-09-26) and 5.13 s (provider measurement, 2026-09-28).
Operating hours: this endpoint’s response does not apply the operating-hours filter. To show only operating sections, filter by
inicio_garantizado/fin_garantizadoandactivo_domingo(Bogota local time, UTC-5) on the consumer side. These fields may be missing here and must be completed fromGET /external/tramos.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Location latitude
Location longitude
Search radius in meters
Responses
Section titled “Responses”List of nearby sections with distance, rate, and schedule
object
object
Distance in meters from the given location
Section rate information
object
Section schedule information
object
Examples
{ "estado": "ok", "data": [ { "id": 1, "nombre": "Tramo Calle 72", "direccion": "Calle 72 # 10-30", "latitud": 4.6565, "longitud": -74.0595, "distancia": 150.5, "tarifa": {}, "horario": {} } ]}Invalid request
object
Error message
Field-specific error details
object
Example
{ "estado": "fail"}