Get Road Info

Overview

Road info is a cloud based service that provides various information about the selected road or road segments. Data returned by Road info API are ready to visualize on the web using Leaflet. Data such as road class, if road is a toll road, restricted for trucks, speed limit or speed profile help to create powerful statistics in real time.

Request

API Reference

https://routing.api.sygic.com/v0/api/roadinfo?key=yourAPIkey

Request authentication is done via parameter key, which must be included in the request URL.

Methods

GET

Parameters

Required Parameters

Parameter

Data type

Description

lat

string

Latitude.

lng

string

Longitude.

key

string

The API key.

Optional Parameters

Parameter

Data type

Value

Description

time

integer

UNIX timestamp

Time used to determine truck related attributes.
You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC.
Default: current UTC time

vehicle_heading

integer

0-359

Angle in degrees in which vehicle travels (0 for north, 90 for east, 180 for south, 270 for west etc.). Used for vehicles in move - the angle is used to reduce possibility of u-turns in resulting polyline.

Response

GET https://routing.api.sygic.com/v0/api/roadinfo?lat=48.15021&lng=17.12543&key=yourAPIkey