Hi Spencer, I'm using Overpy to fetch data using Overpass API, then process it, then send it to JOSM using its remote control feature:
https://github.com/osmbe/public_transport.git https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py https://github.com/osmbe/public_transport/blob/master/scripts/Agency.py You can experiment with it in this Notebook: https://colab.research.google.com/drive/14ggsAKrs9gs03AVSNIGlWsLWJEq7EAaF#scrollTo=4GOsvegsGPxM Maybe it helps. In a previous iteration all this did involve loading the data into a PostGIS database: https://github.com/PolyglotOpenstreetmap/OSM_PublicTransportRoutes Polyglot On Fri, Dec 21, 2018 at 2:16 PM Spencer Gardner <spencergard...@gmail.com> wrote: > I'm researching options for a Python-based tool that uses OSM data. From > what I can gather there's no native Python library for OSM imports to a > PostGIS database. (Yes, imposm is developed in Python but there's no > documentation I can find on how to use it as a Python library--it appears > to be intended as a command line tool). This seems odd to me since there's > such a large community of OSM users. I feel like I'm missing something. Are > there other viable Python libraries I'm not aware of? (Viable = large-ish > user base and history of bugfixing.) Is there documentation for using > imposm within Python that I've overlooked? > > Bonus points for: > - Windows compatibility > - No external (i.e. non-Python) libraries needed > > Thanks for any help! > _______________________________________________ > dev mailing list > dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/dev >
_______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev