TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NYC Subway REST API

57 pointsby mpcadoschover 10 years ago

8 comments

untogover 10 years ago
It is possible to get this data directly from the MTA: <a href="http://datamine.mta.info/" rel="nofollow">http:&#x2F;&#x2F;datamine.mta.info&#x2F;</a><p>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.
评论 #8248396 未加载
heyjonboyover 10 years ago
Another project that does this - <a href="https://github.com/jonthornton/MtaSanitizer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jonthornton&#x2F;MtaSanitizer</a>. Free and self-hosted.
johnduhartover 10 years ago
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.
评论 #8249243 未加载
evancaseyover 10 years ago
Does google maps&#x2F;citymapper consume this sort of real-time train location data?<p>If not, perhaps you could use the NYC subway REST API to cross reference route calculations
评论 #8247588 未加载
mpcadoschover 10 years ago
This API uses the same source of real-time data as Google Maps and CityMapper
jackweirdyover 10 years ago
Looks like the Cities-&gt;Want to see your city here? menu link is broken
mpcadoschover 10 years ago
Sorry about that. What city would you like to see ?
cunacover 10 years ago
it uses http so anybody can snoop api key ?