Back to API parent page

The <stop/> Element

The <stop/> element models stops in OneBusAway. Stops are directly mapped from entries in the GTFS stops.txt file from the GTFS feeds that power an API instance.

Example

<stop>
  <id>1_75403</id>
  <lat>47.6543655</lat>
  <lon>-122.305206</lon>
  <direction>S</direction>
  <name>Stevens Way &amp; BENTON LANE</name>
  <code>75403</code>
  <locationType>0</locationType>
  <routeIds>
    <string>1_31</string>
    <string>...</string>
  </routeIds>
</stop>

Details

The fields of the stop element closely match the fields defined for stops in the [http://code.google.com/transit/spec/transit_feedspecification.html#stopstxt_Field_Definitions GTFS spec].

A few important details:

The following fields are optional:

  • direction
  • code