Skip to main content

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:

StationState: Full station name, space, and state abbreviation or at least one letter of the station name, *, space, and state abbreviation.

FSAC: Full 5-digit FSAC or at least the first 3 digits and *

SPLC: Full 6-digit SPLC or at least the first first 3 digits and *

ERPC: Full ERPC code also called 3-3-3 or at least one letter of ERPC, *, space, and state abbreviation

R260: Rule260 junction code

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
    }
  ]
}
Last updated June 7, 2024.
API Endpoint: