On Wednesday, March 15, 2017 at 1:36:15 PM UTC-4, alycia.piazza wrote:
> I think I might have a contact at Amtrak's web team...interested?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Alycia M Yozzi
> Office of Government-wide Policy
> General Services Administration
>
202-219-1487
>
>
> On Wed, Mar 15, 2017 at 12:30 PM, J. Albert Bowden <
jalber...@gmail.com> wrote:
>
> they're using obfuscators to "mask" their code.
> seriously, this should be illegal from government entities...
>
> On Monday, March 13, 2017 at 7:23:19 PM UTC-4, Michæl Schade wrote:When will Amtrak release an API for their data?
>
>
>
> It seems it's impossible to get real-time train location/status data. They have a page on their site with an embedded map, but oddly you can't even see it by going directly to the URL:
https://www.amtrak.com/trainlocationmap is a dead link. You have to start at
https://www.amtrak.com/, scroll down, hit "Track Your Train". This is ridiculous.
>
>
>
> The same data they have on their difficult-to-reach map should be available via API.
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "US Government APIs" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to
us-government-a...@googlegroups.com.
>
> To post to this group, send email to
us-govern...@googlegroups.com.
Alycia, I would be happy to follow-up with your contact at Amtrak, and to work with anyone else on this initiative.
I think the play here would be to encourage Amtrak to publish their data publicly in GTFS format, which is pretty much a universal standard for publishing transit data.
https://developers.google.com/transit/gtfs/
I've been waiting for Amtrak to do this for a number of years, but I don't think they've caught on to the trend. Somehow TransitLand seems to have obtained their GTFS data, perhaps through a bilateral sharing agreement, or via freedom of information request (not sure). So it looks like Amtrak's systems may be already capable of producing data in GTFS format. But opening up the data to the public would be the key ask.
https://transit.land/feed-registry/operators/o-9-amtrak
Once Amtrak joins the rest of the world in providing open GTFS data, for anyone interested in making API-style use of this data, I have built a backend web service in Ruby on Rails to do just this. Feel free to fork/clone the code repository and deploy it to your own server (just maybe give me a shout-out to let me know you're using it).
https://github.com/data-creative/next-train-api
If Amtrak published their GTFS data for public consumption, it would be trivial for someone to configure another instance of this API to consume data from their feed URL.
I hope this solution is helpful. If anyone has questions about using my web service, please do not hesitate to email me at
datacre...@gmail.com or tweet @data_creative.
Mike Rossetti