Jo — interesting, I wasn’t aware (or had forgotten..) that there was another Python Overpass interface. It seems we have https://github.com/DinoTools/python-overpy <https://github.com/DinoTools/python-overpy> and the one I maintain https://github.com/mvexel/overpass-api-python-wrapper <https://github.com/mvexel/overpass-api-python-wrapper> .
It looks like they offer similar functionality. I would be curious to find out if you (or anyone here) has tried both and prefers one over the other, and why? Does anyone know the developer of overpy? I would prefer it if we could combine efforts rather than maintain two separate projects. The python package world is already messy and I hate contributing to that :/ Martijn > On Dec 21, 2018, at 11:15 AM, Jo <winfi...@gmail.com> wrote: > > 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.git> > https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py > > <https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py> > https://github.com/osmbe/public_transport/blob/master/scripts/Agency.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 > > <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 > <https://github.com/PolyglotOpenstreetmap/OSM_PublicTransportRoutes> > > Polyglot > > On Fri, Dec 21, 2018 at 2:16 PM Spencer Gardner <spencergard...@gmail.com > <mailto: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 <mailto:dev@openstreetmap.org> > https://lists.openstreetmap.org/listinfo/dev > <https://lists.openstreetmap.org/listinfo/dev> > _______________________________________________ > dev mailing list > dev@openstreetmap.org > https://lists.openstreetmap.org/listinfo/dev
_______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev