googlemaps / transport-tracker

Applications for tracking moving assets on a live map
Apache License 2.0
574 stars 442 forks source link

Integrating Real Bus Data #36

Closed lakshaykakkarr closed 6 years ago

lakshaykakkarr commented 6 years ago

Please help me wit integrating a real bus data and making this project to display real bus location and time to each station on the map. @domesticmouse @stephenmcd

domesticmouse commented 6 years ago

The majority of the work required to integrate real bus data involves getting some form of GPS tracker installed on the buses that you are tracking. This is a non-trivial exercise, and well and truly outside the scope of this project.

lakshaykakkarr commented 6 years ago

What about that android application provided in this tutorial for real time location tracking? I think instead of a GPS tracker that app can be used. @domesticmouse

domesticmouse commented 6 years ago

That app is what we used to turn Android phones into GPS tracking units. We used Firebase Realtime Database to communicate the location of the buses in our fleet over 3G networks. Getting these phones installed on buses, working with the drivers, making sure the phones are powered, and so forth, is the basis of the challenge of setting up this operation.

lakshaykakkarr commented 6 years ago

Exactly! This is what I'm saying, the app will be installed on the phones of bus drivers and will be used as tracking devices. I want to know what changes we need to do in our code which we are using for simulations? The app gives us "raw locations" in the Firebase database. how to use those raw locations? Can you please help me in developing a system for bus tracking? in which users also have their own app to track the bus on a particular route they wish to.

On 16 Feb 2018 4:18 a.m., "Brett Morgan" notifications@github.com wrote:

That app is what we used to turn Android phones into GPS tracking units. We used Firebase Realtime Database to communicate the location of the buses in our fleet over 3G networks. Getting these phones installed on buses, working with the drivers, making sure the phones are powered, and so forth, is the basis of the challenge of setting up this operation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlemaps/transport-tracker/issues/36#issuecomment-366088094, or mute the thread https://github.com/notifications/unsubscribe-auth/AfdYlK-oGe82JwqDihwAwsSh4T66MtrIks5tVLRLgaJpZM4R7vFn .

domesticmouse commented 6 years ago

The connection is in where in the firebase realtime database the front end pulls bus locations. You need to turn off the fake bus location provider and use the real locations. I believe we detail this out in the codelabs:

paulonevrything commented 6 years ago

Hello @domesticmouse , I am following the tutorial as well, and I would like to use the real bus location data. I have the android app set up following this , and I have changed this to "simulation": false. The part where I'm stuck is here; if (trackerConfig.simulation) { const {BusSimulator} = require('./bus_simulator.js'); const generatedPaths = require('./paths.json'); new BusSimulator(timeRef, gtfs, busLocationsRef, generatedPaths); } else { // Exercise for the reader: integrate real bus location data }

domesticmouse commented 6 years ago

Have you gone through the realtime asset tracking codelab? It contains the code you need to insert in that else clause.

ankurparashar commented 6 years ago

@domesticmouse I have read the codelabs, but realtime asset tracking codelab gives solution for Android App real time data handling. How to achieve the same in Web project setup in other codelabs. In short, what to write in else block for showing real device locations on map. @PaulOOlabisi @quarkygit did u find the solution?

domesticmouse commented 6 years ago

@ankurparashar The communication point between the Android tracking devices and the backends is the firebase realtime database. This should be reasonably obvious once you have done the codelabs.