Geocode rail stations
This endpoint geocodes a freight rail station, returning information including its name, state, coordinates and railroad.
GET /geocode/Station
Resource URL
https://pcmrail.alk.com/REST/v{version}/Service.svc/geocode/Station
Request Parameters
Parameter | Definition | Data Type | Required |
---|---|---|---|
version | The version of PC*Miler Rail you want to use to generate reports. See available versions. |
string | Y |
Format | The format for how you want to enter station names. Options are:
|
enum | Y |
Name | The name of the station on the route, in the format set by the Format parameter.
|
string | Y |
Railroad | The two- to four-character Standard Carrier Alpha Code. See list of available railroads. |
string | N |
IntermodalOnlyStations | Whether or not to include stations that exclusively serves only intermodal traffic. |
boolean | N, default is true
|
Sample Request
https://pcmrail.alk.com/REST/{version}/Service.svc/geocode/Station?format=StationState&name=pueblo%20co&railroad=BNSF&intermodalOnlyStation=true
Sample Response
{
"GeocodeInfos": [
{
"StationName": "PUEBLO",
"State": "CO",
"Railroad": "BNSF",
"Latitude": 38273466,
"Longitude": -104629121,
"Stations": [
{
"Format": "StationState",
"Name": "PUEBLO CO",
"Railroad": "BNSF"
},
{
"Format": "SPLC",
"Name": "748540000",
"Railroad": "BNSF"
},
{
"Format": "ERPC",
"Name": "PUEBLO",
"Railroad": "BNSF"
},
{
"Format": "FSAC",
"Name": "41020",
"Railroad": "BNSF"
},
{
"Format": "R260",
"Name": "PUBLO",
"Railroad": "BNSF"
}
],
"SPLC": null
}
]
}