forked from vv01f/ccc-map
add note
This commit is contained in:
parent
827654219e
commit
fda4d6b31e
|
@ -48,8 +48,11 @@ with open( fn, 'r' ) as fp:
|
||||||
eprint( "looking up: "+strAddress )
|
eprint( "looking up: "+strAddress )
|
||||||
location = geolocator.geocode( strAddress )
|
location = geolocator.geocode( strAddress )
|
||||||
if location is not None: # its a class
|
if location is not None: # its a class
|
||||||
# todo: ceil coords to hide true location in format string
|
# done: ceil coords to hide true location in format string
|
||||||
# ~ strCoordPlace = '{:s},{:.6f},{:.6f}'.format( arrAddress[3], location.latitude, location.longitude )
|
# ~ 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"}}}}';
|
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 )
|
strCoordPlace = geojson.format( location.longitude, location.latitude )
|
||||||
if firstline == False :
|
if firstline == False :
|
||||||
|
|
Loading…
Reference in New Issue