TrafficReportApi
getCoverageLonLatTrafficReports
Parameters
Name |
Type |
Note |
lat |
Double |
The latitude of where the coord you want to query |
lon |
Double |
The longitude of where the coord you want to query |
depth |
Int |
The depth of your object [optional] [default to 1] |
count |
Int |
Number of objects per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
since |
DateTime |
use disruptions valid after this date [optional] |
until |
DateTime |
use disruptions valid before this date [optional] |
Return
TrafficReports
Example
ExpertSdk.getInstance().trafficReportApi.getCoverageLonLatTrafficReports(
lat = 0.0,
lon = 0.0,
depth = 123,
count = 123,
startPage = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
distance = 123,
disableGeojson = true,
since = DateTime.now(),
until = DateTime.now()
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageLonLatUriTrafficReports
Parameters
Name |
Type |
Note |
lat |
Double |
The latitude of where the coord you want to query |
lon |
Double |
The longitude of where the coord you want to query |
uri |
String |
First part of the uri |
depth |
Int |
The depth of your object [optional] [default to 1] |
count |
Int |
Number of objects per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
since |
DateTime |
use disruptions valid after this date [optional] |
until |
DateTime |
use disruptions valid before this date [optional] |
Return
TrafficReports
Example
ExpertSdk.getInstance().trafficReportApi.getCoverageLonLatUriTrafficReports(
lat = 0.0,
lon = 0.0,
uri = "uri_example",
depth = 123,
count = 123,
startPage = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
distance = 123,
disableGeojson = true,
since = DateTime.now(),
until = DateTime.now()
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageRegionTrafficReports
Parameters
Name |
Type |
Note |
region |
String |
The region you want to query |
depth |
Int |
The depth of your object [optional] [default to 1] |
count |
Int |
Number of objects per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
since |
DateTime |
use disruptions valid after this date [optional] |
until |
DateTime |
use disruptions valid before this date [optional] |
Return
TrafficReports
Example
ExpertSdk.getInstance().trafficReportApi.getCoverageRegionTrafficReports(
region = "region_example",
depth = 123,
count = 123,
startPage = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
distance = 123,
disableGeojson = true,
since = DateTime.now(),
until = DateTime.now()
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageRegionUriTrafficReports
Parameters
Name |
Type |
Note |
region |
String |
The region you want to query |
uri |
String |
First part of the uri |
depth |
Int |
The depth of your object [optional] [default to 1] |
count |
Int |
Number of objects per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
since |
DateTime |
use disruptions valid after this date [optional] |
until |
DateTime |
use disruptions valid before this date [optional] |
Return
TrafficReports
Example
ExpertSdk.getInstance().trafficReportApi.getCoverageRegionUriTrafficReports(
region = "region_example",
uri = "uri_example",
depth = 123,
count = 123,
startPage = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
distance = 123,
disableGeojson = true,
since = DateTime.now(),
until = DateTime.now()
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}