Skip to content

Instantly share code, notes, and snippets.

y0n3l / gist:5129229
Last active Dec 14, 2015
Create an iCal from items you should return to the Valbonne Mediathèque
View gist:5129229
# -*- coding: utf-8 -*-
Created on Mar 9, 2013
@author: y0n3l
from datetime import datetime, date
from ftplib import FTP
from icalendar import Calendar, Event
y0n3l / gist:2209054
Created Mar 26, 2012
Roads extract from La réunion using Overpass API
View gist:2209054
<-- just use this file at to download the corresponding .osm file -->
<bbox-query s="-21.3896808624268" n="-20.8717155456543" w="55.2164878845215" e="55.836841583252"/>
<recurse type="node-way"/>
<query type="way">
<!-- Just add some more tags here ... -->
<has-kv k="highway" regv="primary|secondary"/>
<recurse type="way-node"/>
y0n3l / FR-Alpes-maritimes-motorway.xml
Created Mar 8, 2012
OSM extract for motorways in Alpes-Maritimes using Overpass API. Can be used from
View FR-Alpes-maritimes-motorway.xml
<!-- Can be used at to download the corresponding .osm file -->
<!-- Alpes-Maritimes relation is 7385. An area based on a relation has the id of the relation plus 3,600,000,000. -->
<area-query ref="3600007385" />
<!-- Get all ways from the resulting nodes -->
<recurse type="node-way"/>
<!-- Get only ways tagged with 'motorway' -->
<query type="way">
<has-kv k="highway" v="motorway"/>
You can’t perform that action at this time.