cityofaustin / atd-micromobility-api

A dockless mobility data API built with Python/Sanic
12 stars 4 forks source link

R-Tree and Mode Param #12

Closed johnclary closed 6 years ago

johnclary commented 6 years ago

Now using rtree to identify the the grid cells that intersect with the drawn geometry. It's very fast, but has a dependency on lib spatial index. We should use the Shapely's built-in r-tree, though I'm not sure if that will remove the dependency.

This PR also adds a "mode" param, which can either be "bicycle", "scooter", or "all (default)". Currently the source data only contains data for "scooters"