Giter Site home page Giter Site logo

moxypedrick / atl-scooter-routes Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 19.77 MB

This scrapes the location of idle e-scooters in the Atlanta area. Using the idle location it creates origin-destination pairs for trips that occured. Then I group routes by road segment to build a e-scooter trip counts data. I visualize the results using mapbox baselayers and javascript.

Home Page: https://moxypedrick.github.io/atl-scooter-routes/

HTML 11.83% JavaScript 15.20% CSS 18.09% Python 37.16% R 17.73%
javascript gis scooter-sharing r spatial-analysis python3

atl-scooter-routes's Introduction

atl-scooter-routes

This repo has a couple different uses.

  1. The python script creates origin-destination pairs for each scooter in the Atlanta area. To do this it queries an API every five minutes across 168 locations in Atlanta. Each queary returns the location of the nearest 250 scooters of the company requested. The companies that were operating when I wrote this were (Bird, Lyft, Lime, Boaz, Jump, Gotcha, Bolt, Wheels). The script creates a csv database of all observed scooters in Atlanta and their last known location. Any time the location has been displaced by more than 100' the script writes the last known location, the current/new location, and all times for when each location was first observed to a csv database. This is the origin-destination pair.

  2. The R script processes the origin-destination pairs and creates the likely route that the person traveled between the two locations. This is done by querying the HERE.com bike routing API. This data is written to a shapefile.

  3. Then there is html, javascript, and css for visualizing this data online.

Additional data processing and styles were completed in QGIS and Mapbox.

atl-scooter-routes's People

Contributors

moxypedrick avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.