Datawharf Tech Ltd APIs

DEV - Endpoints

/distance

Returns the distance between two train stations

Headers: Parameters:

/carbon

Returns the carbon cost of a train service

Headers: Parameters:

/station/basic

Returns a basic set of information about a train station

Headers: Parameters:

/station/all

Returns a detailed set of information about a train station

Headers: Parameters:

/lookup/v1

Returns the different IDs which can be used to identify a train service, acting as a translator for different types of ID

Headers: Parameters:

All parameters are optional and different combinations can be used depending on the desired purpose

Combination 1:

Combination 2:

Combination 3:

Combination 4:

Combination 5: