[OSM-talk] How to save Overpass query results to a GeoJSON file with Python?
Carlos Cámara Menoyo
ccamara at pm.me
Mon Mar 11 22:17:30 UTC 2019
Thank you everyone for your help.
With Bryce's example + Martijn Library (thanks for developing it!) + some further research I am sure I will be able to achieve what I was looking for!
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday 11 March de 2019 a les 21:45, Dave F <davefoxfac63 at btinternet.com> wrote:
> Maybe adapt this answer:
> On 11/03/2019 20:00, Dave F via talk wrote:
> > On 11/03/2019 17:54, Carlos Cámara Menoyo wrote:
> > > Thank you for the clarification, Matheus and for the link, Dave (I am
> > > afraid that's not what I was looking for, as it still requires to
> > > download data on osm format).
> > You can run the api from a command line or script (such as python).
> > Paste this into your browser & look at the file it downloads:
> > http://overpass-api.de/api/interpreter?data=area[name="Granollers"][admin_level=8];(way"highway";relation"highway";);out
> > body;
> > This can be loaded from within python (urllib?)
> > talk mailing list
> > talk at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/talk
More information about the talk