News for hackers. Stuff that matters.
Re:How we built a back end system for Uber-like maps with an... by nevi-me on Monday February 20, 2017 @12:50PM (#13689284)
This is an interesting challenge, I'm building something similar for public transport, and the latency in updates tends to make things bad.

On browsers I'm using turf.js to calculate movements and then animate them. I calculate where the bus/train is likely to be in the next 30 seconds, and then send that data through to the user. Then I keep updating the vehicle marker frequently until that 30 seconds time out, or until another update comes in.

I'm struggling to do the same on Android because I haven't found a good turf.js equivalent there.

Re:How we built a back end system for Uber-like maps with an... by jumasheff on Monday February 20, 2017 @12:59PM (#13689367)
Perhaps React-Native with turf.js will solve this?

Update: Here are React-Native Map components for Android and iOS https://github.com/airbnb/react-native-maps

Re:How we built a back end system for Uber-like maps with an... by nevi-me on Monday February 20, 2017 @04:06PM (#13690880)
I'm writing the parts of turf that I use in Kotlin for the JVM. Still early work, but I try put in 30 minutes if my tired hours into the project, before I sleep. I'll hopefully have something decent soon enough to make more progress with the vehicles thing.
Re:How we built a back end system for Uber-like maps with an... by haar on Monday February 20, 2017 @02:08PM (#13689964)
As you're using public transport might it be worth storing and using basic historical trends to bridge the gaps in data?
Re:How we built a back end system for Uber-like maps with an... by ReidZB on Monday February 20, 2017 @02:46PM (#13690274)
When I was in college, I built a tracking system for our campus's bus system. What frequency are your vehicles reporting their location back to your central service? We decided to use the cell network and had no real issues there (the buses would transmit their location every 1 sec).
Re:How we built a back end system for Uber-like maps with an... by hurricaneSlider on Monday February 20, 2017 @02:30PM (#13690160)
Hi Neville :P
Re:How we built a back end system for Uber-like maps with an... by nevi-me on Monday February 20, 2017 @04:01PM (#13690854)
Hey Nick ;-)