![]() |
PC*MILER|Rail Web Services
|
Public Member Functions | |
ReportResponse | GetRouteReport (RouteReportRequest Request) |
RouteReport API will generate a requested report. More... | |
RouteResponse | GetRoutePathRest (RouteRequest Request) |
RoutePath API will generate the Lat/Lon route path. More... | |
GeocodeResponse | GeocodeStation (StationFormat Format, string Name, string Railroad, bool? TerminalSwitching, bool? IntermodalOnlyStations) |
GeocodeStation API for locating rail freight station(s). More... | |
GeocodeResponse | GetStationLocations (string SPLC) |
GetStationLocations API for locating rail freight station(s) by SPLC code in the database. Up to one station in an array will be returned in this release. More... | |
PC*MILER|Rail REST Service
ReportResponse GetRouteReport | ( | RouteReportRequest | Request | ) |
RouteReport API will generate a requested report.
This is a POST request. The request body is JSON.
Request | JSON route report request object. |
JSON Example: { "Stops": [{ "Format": "StationState", "Name": "Denver, CO", "Railroad": "BNSF" }, { "Format": "StationState", "Name": "Los angeles ca", "Railroad": "BNSF" }], "Options": { "RoutingPreference": "Practical", "TerminalSwitching": true, "AmtrakRoutes": true, "IntermodalOnlyStations": true, "DistUnit": "Miles" }, "Report": "Detailed" }
RouteResponse GetRoutePathRest | ( | RouteRequest | Request | ) |
RoutePath API will generate the Lat/Lon route path.
This is a POST request. The request body is JSON.
Request | JSON route path list. |
JSON Example: { "Stops": [{ "Format": "StationState", "Name": "Denver, CO", "Railroad": "BNSF" }, { "Format": "StationState", "Name": "Los angeles ca", "Railroad": "BNSF" }], "Options": { "RoutingPreference": "Practical", "TerminalSwitching": true, "AmtrakRoutes": true, "IntermodalOnlyStations": true, "DistUnit": "Miles" } }
GeocodeResponse GeocodeStation | ( | StationFormat | Format, |
string | Name, | ||
string | Railroad, | ||
bool? | TerminalSwitching, | ||
bool? | IntermodalOnlyStations | ||
) |
GeocodeStation API for locating rail freight station(s).
Format | See Station Format for more information. |
Name | See Station Name for more information. |
Railroad | (Optional) 2 to 4 character Standard Carrier Alpha Code. |
TerminalSwitching | (Optional) See Terminal Switching for more information. |
IntermodalOnlyStations | (Optional) See Intermodal Only Stations for more information. |
GeocodeResponse GetStationLocations | ( | string | SPLC | ) |
GetStationLocations API for locating rail freight station(s) by SPLC code in the database. Up to one station in an array will be returned in this release.
SPLC | SPLC code. |