Northeast Oregon Rx Trails API

Northeast Oregon Rx Trails API

The Basics

Northeast Oregon Rx Trails makes our database of trails around the state available to other developers via a JSON API.

These data are licensed under the Creative Commons Attribution 4.0 International License.

Trail Object

Trail data can be retrieve by sending a GET request to https://www.walkrxtrails.com/api/trail/ with the trail's id as a variable. For example, GET https://www.walkrxtrails.com/api/trail/?id=2 returns the following information in JSON:


	"Etrail"
                    

Filter

Our database can be searched by sending a GET request to https://www.walkrxtrails.com/api/filter/ with filter commands as variables. Each request will return the number of trails returned as countReturned and the total number of trails matched by the query as totalMatched. Note, you must set offset and count. For example, GET https://www.walkrxtrails.com/api/filter/?by=city&city=Albuquerque&offset=0&count=6 returns the following information in JSON:


	{
    "trails": [],
    "countReturned": 0,
    "totalMatched": 0
}
                    

Translations

Notice that the JSON response for trail requests includes available translations under the key translations. In the request illustrated above, Spanish (es) is listed as an available translation. In order to retrieve this translation, we will send a GET request: GET https://www.walkrxtrails.com/api/translation/?id=2&lang=es


	"Elang"
                    

Website Source Code

The source code for this website is available for use under the Creative Commons Attribution 4.0 International License. It is available at this GitHub repository.

Questions?

Feel free to contact us with any questions.