Add Trip Locations
From EveryTrail API Developer Documentation
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 name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | yes | username of user performing the request |
| password | string | yes | password of user performing the request |
| trip_id | int | yes | The ID of the trip to add the GPX to |
| gpx | binary | yes | The 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
