Hacker News new | ask | show | jobs
by AJRF 22 days ago
Few questions, wonder if anyone knows the answers:

1. So it's Trainline on a persons phone that is tracking this info and using it to enrich this service? I use Trainline and didn't know it was doing that, but I do have location permissions on because I was told that powered the search picker when I started using the app.

2. What did they use _before_ Trainline? Or was Trainline selling user location data to them?

1 comments

I think you're misunderstanding what they are saying. They don't use background location data, but they do use your current location data. Try the "Find My Train" demo on their site - it asks for location permission.

Or their API - it also expects device location data:

> At a minimum, requests to the detect endpoint _must_ contain a device's location measurement. Additional fields can be included where available to improve the accuracy of the returned results as outlined below.

https://docs.signalbox.io/docs#/operations/Detect_detect

wait - so you think that the map is made up of people who are all sitting on that website using the Find My Train demo?

I think you are missing the point - what is collecting data on all those trains.

No, live train data in the UK is already publicly available, e.g. see https://www.opentraintimes.com/

This is matching your phone's location to the already public train data.

> This is matching your phone's location

But what is getting that?

You are giving it to them. That's why the demo asks for your location permission, and that's why the API expects location info.

"You" here means another app that integrates their API (or you as an individual using the demo on their website). How the other app gets it is up to the other app - ideally it also just queries it directly and requires location permission.

so an empty train does not show up?
The location of the train comes from trackside sensors and is available as a free API. It doesn't give actual lat/lon – it only shows when it went past a particular checkpoint. The part that needs location permission is the one that works out which train you are on. It doesn't use that to produce the main map, it's just to work out which train you are likely to be on.