Coder Social home page Coder Social logo

dataliftoff / analysis_of_the_movement_of_rental_bikes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.34 MB

Since most rental bikes have GPS coordinates attached to their location, the bikes movement can be used to inspect the traffic within a city.

Dockerfile 1.09% Shell 3.28% OpenEdge ABL 0.01% Python 85.67% HTML 9.96%

analysis_of_the_movement_of_rental_bikes's Introduction

Analysis Of The Movement Of Rental Bikes

The APIs of bike sharing companies can be used to gain insights into bicycle traffic in cities. In addition to movement patterns in everyday life, the road network itself can also be analyzed.

This repository shows how a map of the well-developed areas of a city is created from the individual GPS coordinates of the parked bicycles and how insights into the behavior of the population can be gained.

1. Where does the raw data come from?

In order to be able to operate bike sharing, every parked bike is recorded by the respective services with its GPS coordinates. This current data is then forwarded via API so that users can see where the bikes are currently parked. The WoBike project offers an overview of the public APIs

The locations of the nextbike API were recorded for this project for a month and a half. The recorded data only includes the time, a unique ID for each bicycle and the GPS coordinates of the bicycles parked. No data is available for bikes currently rented.

Raw_Data

2. How is the data processed?

With the help of the K-Means algorithm, the individual GPS coordinates of the bicycles are combined into approx. 100 global clusters. A city and a time zone can be assigned to the individual clusters using reverse geocoding.

Because two different, consecutive locations of a bicycle require a trip between the positions, the data is filtered for such trips. With the UNIX time stamps, the journey time is also known. For further analyzes, outliers in the trip data are removed and only clusters within Germany are considered.

Trips_Per_City

3. What is the driving behavior like in Bremen?

The analysis of the data for the city of Bremen is considered as an example. Over the period of data collection, a weekly pattern can be seen in the number of trips and two peak times per day.

Trips_Per_Day

If the number of trips is grouped according to the day of the week, a strong correlation to the usual working hours can be determined. Even an earlier end of work on Friday can be booked.

Trips_Per_Weekday

4. Which urban areas are heavily used?

The road network of Open Street Map is used to link the trips of the cyclists with the actual infrastructure. In this way, the shortest route on the road network can be calculated using the start and end points of the bike trip.

Because this can still lead to a distortion, a randomization is inserted into the calculation of the path that is likely to be used. Although no individual trip can be precisely determined with this approach, patterns for preferred roads are averaged over many randomized trips.

Heatmap_Location

5. How fast do the bicycles move around the city?

The average speed of the cyclist can be determined with the duration of the trip and the route calculated on the Open Street Map. This, too, only leads to a meaningful illustration in a mix with many trips.

Heatmap_Speed

6. Conclusion

Insights into the work and weekend culture of the population can be gained from the location data of rental bicycles alone.

It is also possible to draw conclusions about the expansion and efficiency of the city infrastructure. In this way, not only residential and work areas of a city can be identified, but also much-used streets and areas in which bicycle traffic is efficiently regulated.

It should be noted that the randomized trips of this project can only represent an approximation of reality and that it becomes even more meaningful with more data.

7. Outlook

It is possible that patterns of individuals can be traced in the data if they travel regular routes.

Based on the analysis of a single city, the comparison of cities with each other should be exciting.

analysis_of_the_movement_of_rental_bikes's People

Contributors

dataliftoff 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.