Skip to content

Commit

Permalink
Better geocoding in analyser_merge_heritage_FR_merimee osm-fr#591
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Aug 18, 2019
1 parent eca7f9b commit f5eb3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysers/analyser_merge_heritage_FR_merimee.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parseDPRO(dpro):
CSV(Geocode_Addok_CSV(Source(attribution = u"Ministère de la Culture", millesime = "06/2019",
fileUrl = u"https://data.culture.gouv.fr/explore/dataset/liste-des-immeubles-proteges-au-titre-des-monuments-historiques/download/?format=csv&timezone=Europe/Berlin&use_labels_for_header=true",
filter = lambda s: reduce(lambda a, v: a.replace(v, ''), SKIP, (u'' + s).encode('utf-8').replace(b'l\u92', b"l'").replace(b'\x85)', b"...)").decode('utf-8', 'ignore'))),
columns = 'Adresse', citycode = 'INSEE', delimiter = u';', logger = logger),
columns = ['Adresse', 'Commune'], citycode = 'INSEE', delimiter = u';', logger = logger),
separator = u';'),
Load("longitude", "latitude",
select = {u"Date de Protection": True}),
Expand Down

0 comments on commit f5eb3be

Please sign in to comment.