GithubHelp home page GithubHelp logo

felix3qh4 / simulator_bus_traffic_luxembourg Goto Github PK

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

Simulates where and when the buses in Luxembourg are and how they move from one point to another.

HTML 0.12% JavaScript 97.61% CSS 1.64% Python 0.62%
bus luxembourg mobility simulation simulations simulator traffic traffic-simulation

simulator_bus_traffic_luxembourg's Introduction

Simulator_Bus_Traffic_Luxembourg

Simulates where and when the buses in Luxembourg are and how they move from one point to another.

Currently only contains RGTR buslines

Last Updated: 05/June/2021

Displays a map with markers which represent the different buses. They move from one stop to another in the time they are given by the timetable, so if a bus should be on stop 1 on 10:00 and on stop 2 at 10:01, it will take exactly 1 minute on the map too for the marker to move.

To load your own data, please save your json data like this (or let xml_reader.py extract it for you from the xml files):

{
 "222": {
   "stops": {
      "LU::ScheduledStopPoint:14300201_RGTR_::": ["LUX Merl, Geesseknäppchen (S)", ["6.11346393869445", "49.6018360501788"]],
      "LU::ScheduledStopPoint:58110401_RGTR_::": ["FENTANGE, Duelemerbach", ["6.15103270868228", "49.5700024130446"]]
      },
   "links": [
      ["LU::ScheduledStopPoint:14300201_RGTR_::", "LU::ScheduledStopPoint:58110401_RGTR_::"],
      ["LU::ScheduledStopPoint:58110401_RGTR_::", "LU::ScheduledStopPoint:58110301_RGTR_::"]
      ],
   "timetable": [
      ["LU::ScheduledStopPoint:14300201_RGTR_::", "14:25:00"],
      ["LU::ScheduledStopPoint:58110401_RGTR_::", "14:35:00"]
      ]
   }
}

xml files for the luxemburgish RGTR lines can be found here: https://data.public.lu/fr/datasets/horaires-et-arrets-des-transport-publics-netex/#_ you will need the netex folder to get the xml files.

simulator_bus_traffic_luxembourg's People

Contributors

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