Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

A dockless mobility data API built with Python/Sanic

Notifications You must be signed in to change notification settings

cityofaustin/atd-micromobility-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atd-micromobility-api

The Micromobility API provides an interface for retrieving anonymized and aggregated dockless mobility trip data in the City of Austin. This API supplies data to our interactive Dockless Mobility Explorer.

Table of Contents

Installation

About the "Database"

The source database for the API is our Dockless Vehicle Trips dataset.

Option 1: Run w/ Docker (Suggested)

  1. Clone repo and cd into it. git clone https://github.com/cityofaustin/atd-micromobility-api.git

  2. Create a virtual environment and install requirements:

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
  1. Start the docker server (in the background on port 80)

python app.py

  1. Make a request:
curl http://localhost:5000/v1/trips?xy=-97.75094341278084,30.276185988411257&flow=destination

API Reference

See here

Deployment

Any code in the master or any PRs made against it will be deployed to the staging environment in a lambda function. The production branch will be deployed to its own environment, it does not deploy PRs made against production.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •