add simple_geometry to location api
This commit is contained in:
parent
f83b77ed8b
commit
5fe03c4c8e
5 changed files with 30 additions and 12 deletions
|
@ -6,7 +6,7 @@ def _preencode(data, magic_marker, in_coords=False, in_groups=False):
|
|||
if isinstance(data, dict):
|
||||
data = data.copy()
|
||||
for name, value in tuple(data.items()):
|
||||
if name == 'bounds' and isinstance(value, (tuple, list)):
|
||||
if name in ('bounds', 'point', 'locations') and isinstance(value, (tuple, list)):
|
||||
data[name] = magic_marker+json.dumps(value)+magic_marker
|
||||
else:
|
||||
data[name] = _preencode(value, magic_marker,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue