diff --git a/lookup.py b/lookup.py index 9a7fc07..f73413a 100755 --- a/lookup.py +++ b/lookup.py @@ -48,8 +48,11 @@ with open( fn, 'r' ) as fp: eprint( "looking up: "+strAddress ) location = geolocator.geocode( strAddress ) if location is not None: # its a class - # todo: ceil coords to hide true location in format string - # ~ strCoordPlace = '{:s},{:.6f},{:.6f}'.format( arrAddress[3], location.latitude, location.longitude ) + # done: ceil coords to hide true location in format string + # ~ strCoordPlace = '{:s},{:.6f},{:.6f}'.format( arrAddress[3], location.latitude, location.longitude ) + # todo: auto deduplicate coords + # ~ strFormatGeoCoord = '{:.'+str(precision)+'f},{:.'+str(precision)+'f}'; + # ~ strGeoCoord = strFormatGeoCoord.format( location.longitude, location.latitude ) geojson = '{{"type":"Feature","geometry":{{"type":"Point","coordinates":[{:.'+str(precision)+'f},{:.'+str(precision)+'f}]}},"properties":{{"name":"anonentry","marker":"veb-it"}}}}'; strCoordPlace = geojson.format( location.longitude, location.latitude ) if firstline == False :