From c3f7cd73cbfae1f777598dde4a93395e0e69c2bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eddy=20Petri=C8=99or?= Date: Thu, 13 Aug 2009 21:59:27 +0300 Subject: [PATCH] would be nice if pre-1993 and post 1993 spellings would match; matching typoed names would be even better --- OsmLocImport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmLocImport.py b/OsmLocImport.py index 0b70669..4bfed6a 100755 --- a/OsmLocImport.py +++ b/OsmLocImport.py @@ -63,6 +63,10 @@ def getMatchingPlaces(osmapielements,placename, sirutacode = None): """filters from 'osmapielements' only the places with the same simplified name as 'placename'""" list = [] + # TODO: try somehow to match î with â when is correct to do so + # should also match i to â (when is correct) + # TODO: maybe calculating the lexical distance is the way to fix this + # and match also typo-ed names with correct ones sname = simplifyName (placename) for i in osmapielements: -- 2.11.4.GIT