<div dir="ltr"><div><div><div><div><div><div><div>Hi Safwat,<br><br></div>Overpass API is definitely your friend. Version 3 doesn't mean much though. Do you mean all bus stops with a public_transport tag?<br><br></div>I would go about it in a slightly different way and download everything related to public transport, not just the stops using the query found on this page:<br><br><a href="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/PT_Assistant/Mapping_Public_Transport_with_JOSM#Downloading_data">https://wiki.openstreetmap.org/wiki/JOSM/Plugins/PT_Assistant/Mapping_Public_Transport_with_JOSM#Downloading_data</a><br><br></div>Then load that in PostGIS and create scripts to read GTFS into PostGIS.<br><br></div>Then compare the data in the DB and produce output and ideally a UI.<br><br></div>I started doing something like that here:<br><br><a href="https://github.com/osmbe/public_transport">https://github.com/osmbe/public_transport</a><br><br></div>Let me know if you see ways of working on that or another way to tackle the problem together.<br><br></div>Jo<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-26 9:19 GMT+02:00 SwiftFast <span dir="ltr"><<a href="mailto:swiftfast@gmx.com" target="_blank">swiftfast@gmx.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to download all version 3 bus stops in a country which has about<br>
30,000 bus stops. Version 3 exists since a 2012 import. What's the<br>
recommended way to accomplish this? I have two ways in mind.<br>
<br>
1. Fetch all stops with Overpass API, then, for each<br>
   stop id, fetch version 3 from the main API.<br>
   - Pros: I already know how to do that<br>
   - Cons: Potentially too much load on the OSM server.<br>
           Will I be rate-limited?<br>
           Requires some script writing which could take<br>
           more time than the way below.<br>
<br>
2. Download a history-supporting planet file, <br>
   and extract the desired bus stops through Osmosis.<br>
   - Pros: Less API load<br>
   - Cons: I'm not sure what the proper Osmosis commands are,<br>
           and if this  is a supported operation. Also, I need<br>
           to download a big file (the oldest history supporting<br>
           import is 40GB from 2013).<br>
<br>
3. Other suggestions?<br>
<br>
Why I need this:<br>
<br>
I am creating a script[1] for incrementally updating GTFS imports.<br>
It'll initially be used in Israel but it can be adopted worldwide. We<br>
have an import from 2012 which was "dumped and forgotten" and is now<br>
very stale. I want to forever fix this.<br>
<br>
The ministry of transportation publishes new GTFS files daily. My<br>
script compares an older GTFS file with newer one, and only updates the<br>
bus stops that were changed/added/deleted. The idea is to feed it a<br>
newer GTFS database daily or weekly. However, I do not possess the file<br>
that was used in the 2012 import, so, in order to bootstrap the script,<br>
I need to recreate that file from the old OSM data.<br>
<br>
[1] <a href="https://forum.openstreetmap.org/viewtopic.php?id=16738&p=3" rel="noreferrer" target="_blank">https://forum.openstreetmap.<wbr>org/viewtopic.php?id=16738&p=3</a><wbr> <br>
(note: SwiftFast and SafwatHalaby are both me)<br>
<br>
Thanks in advance.<br>
<br>
______________________________<wbr>_________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk</a><br>
</blockquote></div><br></div>