Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 892 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 892 Bytes

brApi #

brApi provides GeoJSON data for brApp(https://github.com/pdubs/brApp).

To run this thing: Set up the database URL in /config/env/development.js

Currently the Master branch is a functioning initial version of the API. It currently supports the following routes:

/trails
returns all trails on the server as a FeatureCollection.

/trails/%trail name%
returns the requested trail as a Feature object, supports spaces.


/location/%place name%
returns all trails from the place(i.e., "winter park") as a FeatureCollection, ordered by the "parkID" of the trail.


/difficulty/%e, i, a or ex%
returns all trails of the specified difficulty as a FeatureCollection.
e = easy(green); i = intermediate(blue); a = advanced(black); ex = extreme(dbl. black);