NextDeparturesApi
getCoverageLonLatDepartures
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 |
filter |
String |
use to filter PT objects [optional] |
fromDatetime |
DateTime |
The datetime from which you want the schedules [optional] |
untilDatetime |
DateTime |
The datetime until which you want the schedules [optional] |
duration |
Int |
Maximum duration between datetime and the retrieved stop time [optional] [default to 86399] |
depth |
Int |
The depth of your object [optional] [default to 2] |
count |
Int |
Number of schedules per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
maxDateTimes |
Int |
DEPRECATED, replaced by items_per_schedule [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
calendar |
String |
Id of the calendar [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
dataFreshness |
String |
freshness of the data. base_schedule is the long term planned schedule. adapted_schedule is for planned ahead disruptions (strikes, maintenances, ...). realtime is to have the freshest possible data [optional] [enum: base_schedule, adapted_schedule, realtime] |
itemsPerSchedule |
Int |
maximum number of date_times per schedule [optional] [default to 10000] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
directionType |
String |
Provide a route direction type to filter results. Note: forward is equivalent to clockwise and inbound. When you select forward, you filter with: [forward, clockwise, inbound]. On the other hand, backward is equivalent to anticlockwise and outbound. When you select backward, you filter with: [backward, anticlockwise, outbound]. [optional] [enum: all, forward, backward] |
Return
Departures
Example
ExpertSdk.getInstance().nextDeparturesApi.getCoverageLonLatDepartures(
lat = 0.0,
lon = 0.0,
filter = "filter_example",
fromDatetime = DateTime.now(),
untilDatetime = DateTime.now(),
duration = 123,
depth = 123,
count = 123,
startPage = 123,
maxDateTimes = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
calendar = "calendar_example",
distance = 123,
dataFreshness = "dataFreshness_example",
itemsPerSchedule = 123,
disableGeojson = true,
directionType = "directionType_example"
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageLonLatUriDepartures
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 |
filter |
String |
use to filter PT objects [optional] |
fromDatetime |
DateTime |
The datetime from which you want the schedules [optional] |
untilDatetime |
DateTime |
The datetime until which you want the schedules [optional] |
duration |
Int |
Maximum duration between datetime and the retrieved stop time [optional] [default to 86399] |
depth |
Int |
The depth of your object [optional] [default to 2] |
count |
Int |
Number of schedules per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
maxDateTimes |
Int |
DEPRECATED, replaced by items_per_schedule [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
calendar |
String |
Id of the calendar [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
dataFreshness |
String |
freshness of the data. base_schedule is the long term planned schedule. adapted_schedule is for planned ahead disruptions (strikes, maintenances, ...). realtime is to have the freshest possible data [optional] [enum: base_schedule, adapted_schedule, realtime] |
itemsPerSchedule |
Int |
maximum number of date_times per schedule [optional] [default to 10000] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
directionType |
String |
Provide a route direction type to filter results. Note: forward is equivalent to clockwise and inbound. When you select forward, you filter with: [forward, clockwise, inbound]. On the other hand, backward is equivalent to anticlockwise and outbound. When you select backward, you filter with: [backward, anticlockwise, outbound]. [optional] [enum: all, forward, backward] |
Return
Departures
Example
ExpertSdk.getInstance().nextDeparturesApi.getCoverageLonLatUriDepartures(
lat = 0.0,
lon = 0.0,
uri = "uri_example",
filter = "filter_example",
fromDatetime = DateTime.now(),
untilDatetime = DateTime.now(),
duration = 123,
depth = 123,
count = 123,
startPage = 123,
maxDateTimes = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
calendar = "calendar_example",
distance = 123,
dataFreshness = "dataFreshness_example",
itemsPerSchedule = 123,
disableGeojson = true,
directionType = "directionType_example"
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageRegionDepartures
Parameters
Name |
Type |
Note |
region |
String |
The region you want to query |
filter |
String |
use to filter PT objects [optional] |
fromDatetime |
DateTime |
The datetime from which you want the schedules [optional] |
untilDatetime |
DateTime |
The datetime until which you want the schedules [optional] |
duration |
Int |
Maximum duration between datetime and the retrieved stop time [optional] [default to 86399] |
depth |
Int |
The depth of your object [optional] [default to 2] |
count |
Int |
Number of schedules per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
maxDateTimes |
Int |
DEPRECATED, replaced by items_per_schedule [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
calendar |
String |
Id of the calendar [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
dataFreshness |
String |
freshness of the data. base_schedule is the long term planned schedule. adapted_schedule is for planned ahead disruptions (strikes, maintenances, ...). realtime is to have the freshest possible data [optional] [enum: base_schedule, adapted_schedule, realtime] |
itemsPerSchedule |
Int |
maximum number of date_times per schedule [optional] [default to 10000] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
directionType |
String |
Provide a route direction type to filter results. Note: forward is equivalent to clockwise and inbound. When you select forward, you filter with: [forward, clockwise, inbound]. On the other hand, backward is equivalent to anticlockwise and outbound. When you select backward, you filter with: [backward, anticlockwise, outbound]. [optional] [enum: all, forward, backward] |
Return
Departures
Example
ExpertSdk.getInstance().nextDeparturesApi.getCoverageRegionDepartures(
region = "region_example",
filter = "filter_example",
fromDatetime = DateTime.now(),
untilDatetime = DateTime.now(),
duration = 123,
depth = 123,
count = 123,
startPage = 123,
maxDateTimes = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
calendar = "calendar_example",
distance = 123,
dataFreshness = "dataFreshness_example",
itemsPerSchedule = 123,
disableGeojson = true,
directionType = "directionType_example"
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}
getCoverageRegionUriDepartures
Parameters
Name |
Type |
Note |
region |
String |
The region you want to query |
uri |
String |
First part of the uri |
filter |
String |
use to filter PT objects [optional] |
fromDatetime |
DateTime |
The datetime from which you want the schedules [optional] |
untilDatetime |
DateTime |
The datetime until which you want the schedules [optional] |
duration |
Int |
Maximum duration between datetime and the retrieved stop time [optional] [default to 86399] |
depth |
Int |
The depth of your object [optional] [default to 2] |
count |
Int |
Number of schedules per page [optional] [default to 10] |
startPage |
Int |
The current page [optional] |
maxDateTimes |
Int |
DEPRECATED, replaced by items_per_schedule [optional] |
forbiddenId |
List |
DEPRECATED, replaced by forbidden_uris[] [optional] |
forbiddenUris |
List |
forbidden uris [optional] |
calendar |
String |
Id of the calendar [optional] |
distance |
Int |
Distance range of the query. Used only if a coord is in the query [optional] [default to 200] |
dataFreshness |
String |
freshness of the data. base_schedule is the long term planned schedule. adapted_schedule is for planned ahead disruptions (strikes, maintenances, ...). realtime is to have the freshest possible data [optional] [enum: base_schedule, adapted_schedule, realtime] |
itemsPerSchedule |
Int |
maximum number of date_times per schedule [optional] [default to 10000] |
disableGeojson |
Boolean |
remove geojson from the response [optional] |
directionType |
String |
Provide a route direction type to filter results. Note: forward is equivalent to clockwise and inbound. When you select forward, you filter with: [forward, clockwise, inbound]. On the other hand, backward is equivalent to anticlockwise and outbound. When you select backward, you filter with: [backward, anticlockwise, outbound]. [optional] [enum: all, forward, backward] |
Return
Departures
Example
ExpertSdk.getInstance().nextDeparturesApi.getCoverageRegionUriDepartures(
region = "region_example",
uri = "uri_example",
filter = "filter_example",
fromDatetime = DateTime.now(),
untilDatetime = DateTime.now(),
duration = 123,
depth = 123,
count = 123,
startPage = 123,
maxDateTimes = 123,
forbiddenId = listOf(),
forbiddenUris = listOf(),
calendar = "calendar_example",
distance = 123,
dataFreshness = "dataFreshness_example",
itemsPerSchedule = 123,
disableGeojson = true,
directionType = "directionType_example"
)
if (response.isSuccessful && response.body() != null) {
// Success
val content = response.body()
} else {
// Error
}