REST API: Trails/WayPoints

Set Endpoint uses GET to return the waypoints for a trail. These are not trackpoints for the line, but are instead points on the line for endpoint, trailhead, etc. Use Trails/Lines to get the trackpoints.

Description is the desciption of the waypoint type, with the exception of photos, which will have Photo|{ImageID} for the description. Lat and Lon are in decimal degrees.

Resource URI

only the set is used

Resource Properties

Parameter

Format

Description

Allows Null

description string description of waypoint type No
lat Number latitude in decimal degrees no
lon Number longitude in decimal degrees no

Error Responses

Trail ID is required.

REST API: Trails/WayPoints Set

Gets all waypoints associated with trail.

Resource URI

/Trails/6683560/WayPoints/?api_key=xxxx

Set Filters

ParameterFormatDescriptionAllows Null
None      

HTTP GET

Get the set of waypoints for the trail

JSON Request:

Request body empty

JSON Response:

[{
"description": "Photo|47278",
"lat": 0,
"lon": 0
}, {
"description": "Parking",
"lat": 38.9020588830,
"lon": -77.0596172110
}, {
"description": "Endpoint",
"lat": 38.90246686,
"lon": -77.0591826960
}, {
"description": "Restroom",
"lat": 38.9196108710,
"lon": -77.1012862060
}, {
"description": "Parking",
"lat": 38.9196588620,
"lon": -77.1023382180
}, {
"description": "Drinking Fountain",
"lat": 38.9401173580,
"lon": -77.1147827180
}, {
"description": "Tunnel",
"lat": 38.9430653640,
"lon": -77.1156691970
}, {
"description": "Drinking Fountain",
"lat": 38.9690823670,
"lon": -77.1030021920
}, {
"description": "Parking",
"lat": 38.96968788,
"lon": -77.1027451940
}, {
"description": "Drinking Fountain",
"lat": 38.9799808770,
"lon": -77.0967962140
}, {
"description": "Tunnel",
"lat": 38.9831398640,
"lon": -77.0911237090
}, {
"description": "Endpoint",
"lat": 39.00254137,
"lon": -77.0462422180
}]

XML Request:

XML Response: