<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Jo — interesting, I wasn’t aware (or had forgotten..) that there was another Python Overpass interface. It seems we have<div class=""><a href="https://github.com/DinoTools/python-overpy" class="">https://github.com/DinoTools/python-overpy</a> and the one I maintain <a href="https://github.com/mvexel/overpass-api-python-wrapper" class="">https://github.com/mvexel/overpass-api-python-wrapper</a> .</div><div class=""><br class=""></div><div class="">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 :/ </div><div class=""><br class=""></div><div class="">Martijn</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 21, 2018, at 11:15 AM, Jo <<a href="mailto:winfixit@gmail.com" class="">winfixit@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi Spencer,<div class=""><br class=""></div><div class="">I'm using Overpy to fetch data using Overpass API, then process it, then send it to JOSM using its remote control feature:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/osmbe/public_transport.git" class="">https://github.com/osmbe/public_transport.git</a><br class=""></div><div class=""><a href="https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py" class="">https://github.com/osmbe/public_transport/blob/master/scripts/OSM_data_model.py</a><br class=""></div><div class=""><a href="https://github.com/osmbe/public_transport/blob/master/scripts/Agency.py" class="">https://github.com/osmbe/public_transport/blob/master/scripts/Agency.py</a><br class=""></div><div class=""><br class=""></div><div class="">You can experiment with it in this Notebook:</div><div class=""><br class=""></div><div class=""><a href="https://colab.research.google.com/drive/14ggsAKrs9gs03AVSNIGlWsLWJEq7EAaF#scrollTo=4GOsvegsGPxM" class="">https://colab.research.google.com/drive/14ggsAKrs9gs03AVSNIGlWsLWJEq7EAaF#scrollTo=4GOsvegsGPxM</a><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Maybe it helps. In a previous iteration all this did involve loading the data into a PostGIS database:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/PolyglotOpenstreetmap/OSM_PublicTransportRoutes" class="">https://github.com/PolyglotOpenstreetmap/OSM_PublicTransportRoutes</a><br class=""></div><div class=""><br class=""></div><div class="">Polyglot</div></div></div></div></div></div></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Dec 21, 2018 at 2:16 PM Spencer Gardner <<a href="mailto:spencergardner@gmail.com" class="">spencergardner@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">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?<div class=""><br class=""></div><div class="">Bonus points for:</div><div class="">- Windows compatibility</div><div class="">- No external (i.e. non-Python) libraries needed</div><div class=""><br class=""></div><div class="">Thanks for any help!</div></div>
_______________________________________________<br class="">
dev mailing list<br class="">
<a href="mailto:dev@openstreetmap.org" target="_blank" class="">dev@openstreetmap.org</a><br class="">
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank" class="">https://lists.openstreetmap.org/listinfo/dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">dev mailing list<br class=""><a href="mailto:dev@openstreetmap.org" class="">dev@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/dev<br class=""></div></blockquote></div><br class=""></div></body></html>