From 15a7473f398f9df35e905fc0ef809869e535e005 Mon Sep 17 00:00:00 2001 From: vv01f Date: Wed, 5 Jun 2019 12:30:06 +0200 Subject: [PATCH] fix json --- lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookup.py b/lookup.py index 8729815..6c22fd8 100755 --- a/lookup.py +++ b/lookup.py @@ -26,7 +26,7 @@ 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}","marker":{:s}}}}}'; + geojson = '{{"type":"Feature","geometry":{{"type":"Point","coordinates":[{:.'+str(precision)+'f},{:.'+str(precision)+'f}]}},"properties":{{"name":"{:s}","marker":"{:s}"}}}}'; strCoordPlace = geojson.format( location.latitude, location.longitude, arrAddress[3], fn.split("-")[0] ) # ~ {"type": "Feature","geometry": {"type": "Point","coordinates":[125.6, 10.1]},"properties":{"name":"Dinagat Islands"}} print ( strCoordPlace )