REST API
Download Stops GeoJSON
GET
https://bloombus.bloomu.edu/api/download/stops/geojson
Retrieves the current state of the GeoJSON representing the geometry of shuttle stops from the Firebase Realtime Database. Since it is not stored in Firebase as proper GeoJSON (features residing within a FeatureCollection) the data is massaged within this service before it is sent to the client.
Download Loops GeoJSON
GET
https://bloombus.bloomu.edu/api/download/loops/geojson
Retrieves the current state of the GeoJSON representing the geometry of shuttle loops from the Firebase Realtime Database.
Upload Stops GeoJSON
POST
https://bloombus.bloomu.edu/api/upload/stops/geojson
Parses GeoJSON representing the geometry of shuttle stops and updates the /stops
reference in the Firebase Realtime Database with this GeoJSON. Since the GeoJSON is meant to be stored in the Firebase Realtime Database under the /stops
reference as key-value pairs of each stop's key string to a GeoJSON Feature object, the previously valid GeoJSON provided in the uploaded file will be massaged into this format.
Headers
Content-Type
string
multipart/form-data
Request Body
stops-geojson
object
The File object provided by an HTML <input type="file/>
.
Upload Loops GeoJSON
POST
https://bloombus.bloomu.edu/api/upload/loops/geojson
Parses GeoJSON representing the geometry of shuttle loops and updates the /loops
reference in the Firebase Realtime Database with this GeoJSON.
Path Parameters
Content-Type
string
multipart/form-data
Request Body
loops-geojson
object
The File object provided by an HTML <input type="file/>
.
Last updated