Add Trip Locations

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/addgpx

Semantics

Adds locations to a trip in GPX format. If the trip already contains locations this method will append the supplied locations.

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
trip_idintyesThe ID of the trip to add the GPX to
gpxbinaryyesThe GPX XML file in binary format


Success Response

<etTripAddgpxResponse status="success">
  <tripID>${trip ID}</tripID>
   <tracks>
      <track id="">
   </tracks>
 
   <waypoints>
      <waypoint id="">
   </waypoints>
 
</etTripAddgpxResponse>

${trip ID}: integer ID of the trip created on the server

Error Reponse

<etTripAddgpxResponse status="error">
  <tripID>${trip ID}</tripID>
  ${error reponse}
</etTripAddgpxResponse>

${trip ID}: integer ID of the trip on the server

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

Personal tools