Export Service API Guide
The Export Service generates nightly the following zipped CSV and gzipped JSON file types for all business objects:
Types only for Service Point Directory exports
-
SWISS_ACTUAL
-
SWISS_FULL
-
SWISS_FUTURE_TIMETABLE
-
WORLD_ACTUAL
-
WORLD_FULL
-
WORLD_FUTURE_TIMETABLE
Default types for all other exports
-
FULL
-
ACTUAL
-
FUTURE_TIMETABLE
If you want to consume this files you have two options:
-
Via API: see following section
-
Through the Amazon S3 Bucket Client: see Atlas Amazon S3 Bucket Users onboarding
Get Json - Successfully
GET /v2/export/json/SERVICE_POINT/WORLD_FULL
Path Variables
Path Variable | Type | Optional | Description |
---|---|---|---|
exportObject |
String |
false |
Must be one of ["BUSINESS_ORGANISATION","CONTACT_POINT","LINE","PARKING_LOT","PLATFORM","REFERENCE_POINT","RELATION","STOP_POINT","SUBLINE","TIMETABLE_FIELD_NUMBER","TOILET","RECORDING_OBLIGATION","TRANSPORT_COMPANY","SERVICE_POINT","TRAFFIC_POINT","LOADING_POINT"] |
exportType |
String |
false |
Must be one of ["ACTUAL","FULL","FUTURE_TIMETABLE","TIMETABLE_YEARS","SWISS_ACTUAL","SWISS_FULL","SWISS_FUTURE_TIMETABLE","WORLD_ACTUAL","WORLD_FULL","WORLD_FUTURE_TIMETABLE"] |
Example request
$ curl 'http://localhost:8080/v2/export/json/SERVICE_POINT/WORLD_FULL' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 7965
[ {
"creationDate" : "2022-09-10T17:30:56",
"creator" : "fs45117",
"editionDate" : "2022-09-10T17:30:56",
"editor" : "fs45117",
"id" : 1005,
"number" : {
"number" : 1205887,
"numberShort" : 5887,
"checkDigit" : 5,
"uicCountryCode" : 12
},
"sloid" : null,
"designationLong" : null,
"designationOfficial" : "Trins, Wienerhof",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:101257",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "UNKNOWN",
"stopPointTypeInformation" : {
"code" : "0",
"designationDe" : "Nicht spezifiziert",
"designationFr" : "Non spécifié",
"designationIt" : "Non specificata",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "WGS84",
"lv95" : {
"north" : 1222395.5543783815,
"east" : 2902114.3598423623
},
"wgs84" : {
"north" : 47.083585,
"east" : 11.418764
},
"wgs84web" : {
"north" : 5955727.959614634,
"east" : 1271130.9939685636
},
"height" : 0.0,
"swissLocation" : {
"canton" : null,
"cantonInformation" : null,
"district" : {
"fsoNumber" : 0,
"districtName" : null
},
"localityMunicipality" : {
"fsoNumber" : 0,
"municipalityName" : null,
"localityName" : null
}
},
"isoCountryCode" : "AT"
},
"status" : null,
"validFrom" : "2022-09-01",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
}, {
"creationDate" : "2022-09-10T17:29:29",
"creator" : "fs45117",
"editionDate" : "2022-09-10T17:29:29",
"editor" : "fs45117",
"id" : 1007,
"number" : {
"number" : 1205886,
"numberShort" : 5886,
"checkDigit" : 7,
"uicCountryCode" : 12
},
"sloid" : null,
"designationLong" : null,
"designationOfficial" : "Trins, Waldfestplatz",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:101257",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "UNKNOWN",
"stopPointTypeInformation" : {
"code" : "0",
"designationDe" : "Nicht spezifiziert",
"designationFr" : "Non spécifié",
"designationIt" : "Non specificata",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "WGS84",
"lv95" : {
"north" : 1221727.844646883,
"east" : 2901206.9151938213
},
"wgs84" : {
"north" : 47.078,
"east" : 11.406385
},
"wgs84web" : {
"north" : 5954814.963976119,
"east" : 1269752.969992034
},
"height" : 0.0,
"swissLocation" : {
"canton" : null,
"cantonInformation" : null,
"district" : {
"fsoNumber" : 0,
"districtName" : null
},
"localityMunicipality" : {
"fsoNumber" : 0,
"municipalityName" : null,
"localityName" : null
}
},
"isoCountryCode" : "AT"
},
"status" : null,
"validFrom" : "2022-09-01",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
}, {
"creationDate" : "2017-11-09T11:53:05",
"creator" : "GSU_DIDOK",
"editionDate" : "2022-07-29T11:10:23",
"editor" : "fs45117",
"id" : 1011,
"number" : {
"number" : 8572248,
"numberShort" : 72248,
"checkDigit" : 8,
"uicCountryCode" : 85
},
"sloid" : "ch:1:sloid:72248",
"designationLong" : null,
"designationOfficial" : "Olsberg, Chloster",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:100602",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "ORDERLY",
"stopPointTypeInformation" : {
"code" : "10",
"designationDe" : "Ordentliche Haltestelle",
"designationFr" : "Arrêt ordinaire",
"designationIt" : "Fermata ordinaria",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "LV03",
"lv95" : {
"north" : 1263657.9999999995,
"east" : 2625254.0
},
"wgs84" : {
"north" : 47.52317630533577,
"east" : 7.773936104046642
},
"wgs84web" : {
"north" : 6027891.807945336,
"east" : 865390.6085619172
},
"height" : 360.0,
"swissLocation" : {
"canton" : "AARGAU",
"cantonInformation" : {
"fsoNumber" : 19,
"name" : "Aargau",
"abbreviation" : "AG"
},
"district" : {
"fsoNumber" : 1909,
"districtName" : "Rheinfelden"
},
"localityMunicipality" : {
"fsoNumber" : 4257,
"municipalityName" : "Olsberg",
"localityName" : "Olsberg"
}
},
"isoCountryCode" : "CH"
},
"status" : null,
"validFrom" : "2022-07-26",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
} ]
Download Gzip (Json) - Successfully
GET /v2/export/download-gzip-json/SERVICE_POINT/WORLD_FULL
Path Variables
Path Variable | Type | Optional | Description |
---|---|---|---|
exportObject |
String |
false |
Must be one of ["BUSINESS_ORGANISATION","CONTACT_POINT","LINE","PARKING_LOT","PLATFORM","REFERENCE_POINT","RELATION","STOP_POINT","SUBLINE","TIMETABLE_FIELD_NUMBER","TOILET","RECORDING_OBLIGATION","TRANSPORT_COMPANY","SERVICE_POINT","TRAFFIC_POINT","LOADING_POINT"] |
exportType |
String |
false |
Must be one of ["ACTUAL","FULL","FUTURE_TIMETABLE","TIMETABLE_YEARS","SWISS_ACTUAL","SWISS_FULL","SWISS_FUTURE_TIMETABLE","WORLD_ACTUAL","WORLD_FULL","WORLD_FUTURE_TIMETABLE"] |
Example request
$ curl 'http://localhost:8080/v2/export/download-gzip-json/SERVICE_POINT/WORLD_FULL' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8'
Get latest Json - Successfully
GET /v2/export/json/latest/SERVICE_POINT/WORLD_FULL
Path Variables
Path Variable | Type | Optional | Description |
---|---|---|---|
exportObject |
String |
false |
Must be one of ["BUSINESS_ORGANISATION","CONTACT_POINT","LINE","PARKING_LOT","PLATFORM","REFERENCE_POINT","RELATION","STOP_POINT","SUBLINE","TIMETABLE_FIELD_NUMBER","TOILET","RECORDING_OBLIGATION","TRANSPORT_COMPANY","SERVICE_POINT","TRAFFIC_POINT","LOADING_POINT"] |
exportType |
String |
false |
Must be one of ["ACTUAL","FULL","FUTURE_TIMETABLE","TIMETABLE_YEARS","SWISS_ACTUAL","SWISS_FULL","SWISS_FUTURE_TIMETABLE","WORLD_ACTUAL","WORLD_FULL","WORLD_FUTURE_TIMETABLE"] |
Example request
$ curl 'http://localhost:8080/v2/export/json/latest/SERVICE_POINT/WORLD_FULL' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 7965
[ {
"creationDate" : "2022-09-10T17:30:56",
"creator" : "fs45117",
"editionDate" : "2022-09-10T17:30:56",
"editor" : "fs45117",
"id" : 1005,
"number" : {
"number" : 1205887,
"numberShort" : 5887,
"checkDigit" : 5,
"uicCountryCode" : 12
},
"sloid" : null,
"designationLong" : null,
"designationOfficial" : "Trins, Wienerhof",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:101257",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "UNKNOWN",
"stopPointTypeInformation" : {
"code" : "0",
"designationDe" : "Nicht spezifiziert",
"designationFr" : "Non spécifié",
"designationIt" : "Non specificata",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "WGS84",
"lv95" : {
"north" : 1222395.5543783815,
"east" : 2902114.3598423623
},
"wgs84" : {
"north" : 47.083585,
"east" : 11.418764
},
"wgs84web" : {
"north" : 5955727.959614634,
"east" : 1271130.9939685636
},
"height" : 0.0,
"swissLocation" : {
"canton" : null,
"cantonInformation" : null,
"district" : {
"fsoNumber" : 0,
"districtName" : null
},
"localityMunicipality" : {
"fsoNumber" : 0,
"municipalityName" : null,
"localityName" : null
}
},
"isoCountryCode" : "AT"
},
"status" : null,
"validFrom" : "2022-09-01",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
}, {
"creationDate" : "2022-09-10T17:29:29",
"creator" : "fs45117",
"editionDate" : "2022-09-10T17:29:29",
"editor" : "fs45117",
"id" : 1007,
"number" : {
"number" : 1205886,
"numberShort" : 5886,
"checkDigit" : 7,
"uicCountryCode" : 12
},
"sloid" : null,
"designationLong" : null,
"designationOfficial" : "Trins, Waldfestplatz",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:101257",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "UNKNOWN",
"stopPointTypeInformation" : {
"code" : "0",
"designationDe" : "Nicht spezifiziert",
"designationFr" : "Non spécifié",
"designationIt" : "Non specificata",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "WGS84",
"lv95" : {
"north" : 1221727.844646883,
"east" : 2901206.9151938213
},
"wgs84" : {
"north" : 47.078,
"east" : 11.406385
},
"wgs84web" : {
"north" : 5954814.963976119,
"east" : 1269752.969992034
},
"height" : 0.0,
"swissLocation" : {
"canton" : null,
"cantonInformation" : null,
"district" : {
"fsoNumber" : 0,
"districtName" : null
},
"localityMunicipality" : {
"fsoNumber" : 0,
"municipalityName" : null,
"localityName" : null
}
},
"isoCountryCode" : "AT"
},
"status" : null,
"validFrom" : "2022-09-01",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
}, {
"creationDate" : "2017-11-09T11:53:05",
"creator" : "GSU_DIDOK",
"editionDate" : "2022-07-29T11:10:23",
"editor" : "fs45117",
"id" : 1011,
"number" : {
"number" : 8572248,
"numberShort" : 72248,
"checkDigit" : 8,
"uicCountryCode" : 85
},
"sloid" : "ch:1:sloid:72248",
"designationLong" : null,
"designationOfficial" : "Olsberg, Chloster",
"abbreviation" : null,
"operatingPoint" : true,
"operatingPointWithTimetable" : true,
"freightServicePoint" : false,
"sortCodeOfDestinationStation" : null,
"businessOrganisation" : "ch:1:sboid:100602",
"categories" : [ ],
"categoriesInformation" : [ ],
"operatingPointType" : null,
"operatingPointTypeInformation" : null,
"operatingPointWithoutTimetableTypeInformation" : null,
"operatingPointTechnicalTimetableType" : null,
"operatingPointTechnicalTimetableTypeInformation" : null,
"operatingPointTrafficPointType" : null,
"operatingPointTrafficPointTypeInformation" : null,
"operatingPointRouteNetwork" : false,
"operatingPointKilometerMaster" : {
"number" : null,
"numberShort" : null,
"checkDigit" : null,
"uicCountryCode" : null
},
"meansOfTransport" : [ "BUS" ],
"meansOfTransportInformation" : [ {
"code" : "B",
"designationDe" : "Bus",
"designationFr" : "Bus",
"designationIt" : "Bus",
"designationEn" : "Coach"
} ],
"stopPointType" : "ORDERLY",
"stopPointTypeInformation" : {
"code" : "10",
"designationDe" : "Ordentliche Haltestelle",
"designationFr" : "Arrêt ordinaire",
"designationIt" : "Fermata ordinaria",
"designationEn" : null
},
"fotComment" : null,
"servicePointGeolocation" : {
"spatialReference" : "LV03",
"lv95" : {
"north" : 1263657.9999999995,
"east" : 2625254.0
},
"wgs84" : {
"north" : 47.52317630533577,
"east" : 7.773936104046642
},
"wgs84web" : {
"north" : 6027891.807945336,
"east" : 865390.6085619172
},
"height" : 360.0,
"swissLocation" : {
"canton" : "AARGAU",
"cantonInformation" : {
"fsoNumber" : 19,
"name" : "Aargau",
"abbreviation" : "AG"
},
"district" : {
"fsoNumber" : 1909,
"districtName" : "Rheinfelden"
},
"localityMunicipality" : {
"fsoNumber" : 4257,
"municipalityName" : "Olsberg",
"localityName" : "Olsberg"
}
},
"isoCountryCode" : "CH"
},
"status" : null,
"validFrom" : "2022-07-26",
"validTo" : "2099-12-31",
"borderPoint" : false,
"trafficPoint" : true,
"stopPoint" : true,
"fareStop" : false,
"hasGeolocation" : true,
"validType" : true,
"operatingPointKilometer" : true,
"validFreightServicePoint" : true
} ]
Download latest Gzip (Json) - Successfully
GET /v2/export/download-gzip-json/latest/SERVICE_POINT/WORLD_FULL
Path Variables
Path Variable | Type | Optional | Description |
---|---|---|---|
exportObject |
String |
false |
Must be one of ["BUSINESS_ORGANISATION","CONTACT_POINT","LINE","PARKING_LOT","PLATFORM","REFERENCE_POINT","RELATION","STOP_POINT","SUBLINE","TIMETABLE_FIELD_NUMBER","TOILET","RECORDING_OBLIGATION","TRANSPORT_COMPANY","SERVICE_POINT","TRAFFIC_POINT","LOADING_POINT"] |
exportType |
String |
false |
Must be one of ["ACTUAL","FULL","FUTURE_TIMETABLE","TIMETABLE_YEARS","SWISS_ACTUAL","SWISS_FULL","SWISS_FUTURE_TIMETABLE","WORLD_ACTUAL","WORLD_FULL","WORLD_FUTURE_TIMETABLE"] |
Example request
$ curl 'http://localhost:8080/v2/export/download-gzip-json/latest/SERVICE_POINT/WORLD_FULL' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8'