[OSM-talk] How to save Overpass query results to a GeoJSON file with Python?

Mateusz Konieczny matkoniecz at tutanota.com
Mon Mar 11 18:05:34 UTC 2019

Mar 11, 2019, 6:54 PM by talk at openstreetmap.org:

> Can I add the query in more than a single line? (the provided one is quite simple and still it is long) If so, how? (from what I am seeing Python is very strict  dealing with new lines)
This is not the best place for Python-specific questions.

Fortunately for beginners most simple questions are already asked and answered.

In this case important key words are
- multiline
- string
- Python

Searching for it, see for example
https://duckduckgo.com/?q=multiline+string+Python&t=canonical&ia=web <https://duckduckgo.com/?q=multiline+string+Python&t=canonical&ia=web>
will find among other answers for example
https://stackoverflow.com/questions/10660435/pythonic-way-to-create-a-long-multi-line-string <https://stackoverflow.com/questions/10660435/pythonic-way-to-create-a-long-multi-line-string>
with answer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20190311/c72d3cff/attachment-0001.html>

More information about the talk mailing list