diff --git a/lookup.py b/lookup.py index 5fbe2fb..4f078be 100755 --- a/lookup.py +++ b/lookup.py @@ -52,8 +52,8 @@ with open( fn, 'r' ) as fp: 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 ) - geojson = '{{"type":"Feature","geometry":{{"type":"Point","coordinates":[{:.'+str(precision)+'f},{:.'+str(precision)+'f}]}},"properties":{{"name":"{:s}","title":"{:s}","marker":"{:s}"}}}}'; - strCoordPlace = geojson.format( location.longitude, location.latitude, arrAddress[1], arrAddress[1], fn.split("-")[0] ) + geojson = '{{"type":"Feature","geometry":{{"type":"Point","coordinates":[{:.'+str(precision)+'f},{:.'+str(precision)+'f}]}},"properties":{{"name":"anonentry","title":"{:s}","marker":"{:s}"}}}}'; + strCoordPlace = geojson.format( location.longitude, location.latitude, arrAddress[4], fn.split("-")[0] ) if firstline == False : print (",") else: