Trip's Data

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/data

Semantics

Get all data for a trip (pictures, tracks, waypoints)

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringnoThe username to use for authentication
passwordstringnoThe password to use for authentication
trip_idintyesThe id of the trip
enabled_typesintnoA bitwise OR of the data types to return (0x1=Media, 0x2=Waypoints, 0x4=Locations), default is all
  • If the username and password are validated for the same user as the trip owner, trips that are private will be returned

Success Response

<etTripDataResponse status="success">
  <pictures>
    ${pictureXML}
  </pictures>
  <videos>
    ${videoXML}
  </videos>
  <tracks>
    ${trackXML}
  </tracks>
  <waypoints>
    ${waypointXML}
  </waypoints>
</etTripDataResponse>
  • ${pictureXML} - see Picture XML Format. Pictures are returned in ascending creation date order.
  • ${videoXML} - see Video XML Format. Videos are returned in ascending creation date order.
  • ${trackXML} - see Track XML Format. Tracks are returned in the XML in ascending creation date order.
  • ${waypointXML} - see Waypoint XML Format. Waypoints are returned in ascending creation date order.

Error Response

<etTripDataResponse status="error">
  ${error response}
</etTripDataResponse>

${error response}: See format in Error Reponse Format

Error Codes

CodeMessage
105Invalid Trip Id
109This trip is private
Personal tools