CM1 Rail trip documentation

Associations

  1. Country country

    Choose from
    Countries
    Default identifier
    iso_3166_code
    Example
    http://impact.brighterplanet.com/rail_trips?country=AD
    Example
    http://impact.brighterplanet.com/rail_trips?country[iso_3166_code]=AD
  2. Destination country destination_country

    Choose from
    Destination countries
    Default identifier
    iso_3166_code
    Example
    http://impact.brighterplanet.com/rail_trips?destination_country=AD
    Example
    http://impact.brighterplanet.com/rail_trips?destination_country[iso_3166_code]=AD
  3. Origin country origin_country

    Choose from
    Origin countries
    Default identifier
    iso_3166_code
    Example
    http://impact.brighterplanet.com/rail_trips?origin_country=AD
    Example
    http://impact.brighterplanet.com/rail_trips?origin_country[iso_3166_code]=AD
  4. Rail class rail_class

    Choose from
    Rail classes
    Default identifier
    name
    Example
    http://impact.brighterplanet.com/rail_trips?rail_class=commuter
    Example
    http://impact.brighterplanet.com/rail_trips?rail_class[name]=commuter
  5. Rail company rail_company

    Choose from
    Rail companies
    Default identifier
    name
    Example
    http://impact.brighterplanet.com/rail_trips?rail_company=Alaska+Railroad+Corporation
    Example
    http://impact.brighterplanet.com/rail_trips?rail_company[name]=Alaska+Railroad+Corporation
  6. Rail traction rail_traction

    Choose from
    Rail tractions
    Default identifier
    name
    Example
    http://impact.brighterplanet.com/rail_trips?rail_traction=diesel
    Example
    http://impact.brighterplanet.com/rail_trips?rail_traction[name]=diesel

Attributes

  1. Date date

    Accepts
    Date
    Example
    http://impact.brighterplanet.com/rail_trips?date=…
  2. Destination destination

    Accepts
    String
    Example
    http://impact.brighterplanet.com/rail_trips?destination=…
  3. Distance distance

    Accepts
    Float
    Measures
    Kilometres
    Example
    http://impact.brighterplanet.com/rail_trips?distance=…
  4. Duration duration

    Accepts
    Float
    Measures
    Seconds
    Example
    http://impact.brighterplanet.com/rail_trips?duration=…
  5. Origin origin

    Accepts
    String
    Example
    http://impact.brighterplanet.com/rail_trips?origin=…