from Hacker News

NYC Subway REST API

by mpcadosch on 8/30/14, 8:00 PM with 14 comments

  • by untog on 8/30/14, 9:26 PM

    It is possible to get this data directly from the MTA: http://datamine.mta.info/

    It is a good bit messier than this, but it is free, unlike this site. And after all, you never know how long sites like these will be around.

  • by heyjonboy on 8/30/14, 10:01 PM

    Another project that does this - https://github.com/jonthornton/MtaSanitizer. Free and self-hosted.
  • by johnduhart on 8/30/14, 11:05 PM

    Putting your API on the same hostname and presumably the same codebase as your website is not a great long-term strategy. And mentioned before, consider HTTPS to protect the API key.
  • by evancasey on 8/30/14, 8:53 PM

    Does google maps/citymapper consume this sort of real-time train location data?

    If not, perhaps you could use the NYC subway REST API to cross reference route calculations

  • by mpcadosch on 8/30/14, 8:53 PM

    This API uses the same source of real-time data as Google Maps and CityMapper
  • by jackweirdy on 8/30/14, 8:44 PM

    Looks like the Cities->Want to see your city here? menu link is broken
  • by mpcadosch on 8/30/14, 8:49 PM

    Sorry about that. What city would you like to see ?
  • by cunac on 8/30/14, 9:12 PM

    it uses http so anybody can snoop api key ?