Get Course Map
GET https://api.runningahead.com/rest/logs/me/courses/{id}/{type}
Get the map data for course identified by id
.
Request
Parameter |
Type |
Description |
access_token |
string (required) |
OAuth 2.0 token for the current user. |
File Types
The API currently supports the following file types. To specify the file
type, replace {type}
place holder with one of these types:
Type |
Description |
gpx |
The GPX file format. The GPX will be version 1.1. |
Response
This command deviates from the standard API command format. Instead of
returning a JSON object, the response will consist entirely of the requested
data file.
Example
Request
The following request will produce a GPX data file of the course.
https://api.runningahead.com/rest/logs/me/courses/d4faa3d754ba4dbc8c0517872a89c722/gpx?
access_token=VjU5s4dyhAPO2XiUzaNVeE
Response
<?xml version="1.0" encoding="utf-16"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
version="1.1"
creator="RunningAHEAD.com"
xmlns="http://www.topografix.com/GPX/1/1">
<metadata>
<name>Boston Marathon</name>
</metadata>
<trk>
<trkseg>
...
</trkseg>
</trk>
</gpx>