Skip to main content
Menu

← ყველა ენდპოინტი

სასაზღვრო მოგზაურობის მატრიცის API Online

სამგზავრო დრო + სასაზღვრო რიგი ყველა საგუშაგოსთვის მოცემული საწყისი პუნქტიდან.

GET https://nakordoni.eu/api/v1/data/travel-matrix — კვოტის კლასი: heavy

პარამეტრიაღწერა
origin_latOrigin latitude (required)
origin_lonOrigin longitude (required)
typeCrossing type: 4=car UA→EU (default), 5=car EU→UA, 6=bus, 7=pedestrian, 8=truck<7.5t, 9=truck
destDestination country code (1=UA, 2=PL, 3=SK, 4=HU, 5=RO, 6=MD) or "all" (default)
origin_countryISO-2 origin country (e.g. DE, PL, CZ). Enables multi-leg route calculation for non-border countries
langLanguage code for checkpoint names (default uk)

პასუხის ველები — პასუხის კონვერტის data ობიექტის შიგნით. [] აღნიშნავს სიას, ამიტომ data.items[].name არის თითოეული ელემენტის ველი name. ველი არის null, არ არსებობს ან ცარიელი სიაა, როცა მნიშვნელობა არ გვაქვს — შემავსებელს არასოდეს ვდებთ.

ველიაღწერა
data.results[].ppidCrossing, with checkpoint_name, country, country_id, lat and lon.
data.results[].distance_kmRoad distance from your origin, with drive_minutes.
data.results[].queue_minutesCurrent border wait, with queue_cars behind it.
data.results[].total_minutesdrive_minutes + queue_minutes — the ranking figure.
data.results[].avg_crossing_minutesTypical time inside the crossing itself, with total_with_avg_crossing for a door-to-door estimate.
data.results[].statusCheckpoint status — a closed crossing still appears, so filter on it.
data.originThe origin the matrix was computed from; count is the number of crossings, updated_at when the queues were read.
curl "https://nakordoni.eu/api/v1/data/travel-matrix?origin_lat=50.06&origin_lon=19.94&type=4&dest=all&lang=en" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 შედით დეველოპერის ანგარიშით, რომ ეს ენდპოინტი პირდაპირ Sandbox-ში სცადოთ — დღეში 50 უფასო სატესტო გამოძახება. შესვლა