cotrip-feed
v0.1.0
Published
Programmatic interface to the cotrip.org XML data feeds
Downloads
2
Readme
cotrip-feed
This module provides a lightweight programmatic interface to the cotrip.org XML data feeds. It pulls the XML data and converts it into a JavaScript object.
Usage
First, sign up for an API key on the COtrip website.
// Initialize the feed with your COtrip API key
const feed = require('cotrip-feed')({
apiKey: 'YOUR_API_KEY'
});
// Print all alerts
feed.alerts(alerts => {
console.log(alerts);
});
Resources
- XML Data Feeds specifications
- API Access URLs (requires registration)