2.0.0 • Published 7 years ago

koop-trimet v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 years ago

Koop-TriMet

A provider for the TriMet Bus API

This is a plugin to Koop that requests data from the TriMet bus API and returns data in an Esri-compatible Geoservices reponse.

View a live example

Usage

As a Feature Service

All requests are routed through http://$koopserver/trimet/FeatureServer/0

Koop Plugin

It must be used as a Koop plugin. Here's an example server configuration.

'use strict'
// initialize Koop with configs from env
var Koop = require('koop')
var config = require('config')
var koop = Koop(config)

// register providers
var trimet = require('koop-trimet')
koop.register(trimet)

// set up the actual app server
var express = require('express')
var app = express()
app.use(koop)
app.get('/status', (req, res) => res.status(200).json({status: 'up'}))
app.listen(80, function () { console.log('we\'re up and running') })
2.0.0

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago