net-art-uchicago / cta-file-sharing

a collaborative artware project by Media Art and Design students at the University of Chicago.
GNU General Public License v3.0
2 stars 15 forks source link

Rest API for getting bus data #25

Closed akhaiat2 closed 1 year ago

akhaiat2 commented 1 year ago

Contains all the functionality described in https://github.com/net-art-uchicago/cta-file-sharing/issues/4. Returns JSONS. For /api/cta-routes --> returns a JSON which is an array of routes For /api/cta-near-stop --> returns a JSON which returns the distance between user and shortest stop (still need to edit to receive user's current location) For /api/cta-bus-distance --> returns a JSON which returns the distance between the user and the nearest bus on their route.

nbriz commented 1 year ago

closing this PR since u've opened the other one