I hereby claim:
- I am yohanboniface on github.
- I am ybon (https://keybase.io/ybon) on keybase.
- I have a public key ASBug1SfdjvvVkzo5xTk5oXG4tYSCrg4enKNeccZZU-Gngo
To claim this, I am signing this object:
# put here the name of keys for ways that are assumed to be polygons if they are closed | |
# see http://wiki.openstreetmap.org/wiki/Map_Features | |
closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism | |
# comment to avoid laundering of keys ( ':' turned into '_' ) | |
attribute_name_laundering=yes | |
# uncomment to report all nodes, including the ones without any (significant) tag | |
report_all_nodes=yes |
import re | |
import time | |
from lxml import etree | |
from pymongo import MongoClient | |
from minicli import cli, run | |
client = MongoClient() | |
db = client.mydb | |
collection = db.disorders |
I hereby claim:
To claim this, I am signing this object:
# put here the name of keys for ways that are assumed to be polygons if they are closed | |
# see http://wiki.openstreetmap.org/wiki/Map_Features | |
closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism | |
# comment to avoid laundering of keys ( ':' turned into '_' ) | |
attribute_name_laundering=yes | |
# uncomment to report all nodes, including the ones without any (significant) tag | |
#report_all_nodes=yes |
from timeit import timeit | |
class A: | |
def __init__(self): | |
self.kwargs = {} | |
class B(dict): |
exports.LocalConfig = function (localizer, project) { | |
var country = 'burundi', | |
centers = { | |
hispaniola: [-71.7325, 19.1075, 9], | |
burundi: [29.9377, -3.4216, 9], | |
sierraleone: [-13.2366965, 8.4732210, 9], | |
chad: [16.56874, 8.68063, 9], | |
mauritania: [-11.558, 19.725, 9] | |
}; | |
project.mml.compareUrl = "http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png"; |
You need imposm3, postgresql, postgis, python 3.5, siege.
wget http://download.geofabrik.de/europe/france/ile-de-france-latest.osm.pbf
Import:
env PGHOST=/var/run/postgresql/ imposm3 import -mapping ~/Code/maps/pagesjaunes/mapping.yml -read ~/Data/geo/pbf/ile-de-france-latest.osm.pbf -write -connection="postgis:///pagesjaunes" -appendcache -deployproduction
LOG_QUERIES = False | |
LOG_NOT_FOUND = False | |
EXTRA_FIELDS = [ | |
{'key': 'citycode'}, | |
] | |
FILTERS = ['type', 'postcode', 'citycode', 'city'] | |
BLOCKED_PLUGINS = ['addok.pairs', 'addok.fuzzy', 'addok.autocomplete'] | |
QUERY_PROCESSORS = [ | |
'addok_france.extract_address', | |
'addok_france.clean_query', |