REST API: Trails/Lines

Set Endpoint uses GET to return the lines for a trail. The lines are returned as a set of lat/lon/linenum trackpoints. Each linenum represents a segment of trail: note that these may not be contiguous. Some trails have tens of thousands of trackpoints.

Resource URI

only the set is used

Resource Properties

Parameter

Format

Description

Allows Null

linenum int identifies which segment a trackpoint belongs to No
lat Number latitude in decimal degrees no
lon Number longitude in decimal degrees no

Error Responses

Trail ID is required.

REST API: Trails/Lines Set

Gets all lines associated with the given account/ trail ID.

Resource URI

/V1/Trails/Lines

Set Filters

ParameterFormatDescriptionAllows Null
none      

HTTP GET

Get the lines for the trails as a Set of trackpoints.

JSON Request:

Body is empty

JSON Response:

[{
"lat": "41.80302034",
"lineNum": 1,
"lon": "-88.21685056"
}, {
"lat": "41.8021867390",
"lineNum": 1,
"lon": "-88.2179072810"
}, {
"lat": "41.8008632830",
"lineNum": 1,
"lon": "-88.2195433990"
}, {
"lat": "42.0136607070",
"lineNum": 2,
"lon": "-88.2747556890"
}, {
"lat": "42.0137059170",
"lineNum": 2,
"lon": "-88.2747580680"
}]

XML Request:

XML Response: