shorter descriptions and icons for custom locations
This commit is contained in:
parent
508aa80576
commit
1c7c6543c8
5 changed files with 55 additions and 45 deletions
|
@ -88,4 +88,4 @@ class RoutingViewSet(ViewSet):
|
|||
'errors': (_('Invalid scan data.'),),
|
||||
}, status=400)
|
||||
|
||||
return Response({'location': None if location is None else location.serialize()})
|
||||
return Response({'location': None if location is None else location.serialize(simple_geometry=True)})
|
||||
|
|
|
@ -89,7 +89,8 @@ class Locator:
|
|||
for pk, space, station_ids in good_spaces:
|
||||
point, score = space.get_best_point(scan_values, station_ids)
|
||||
if score < best_score:
|
||||
location = CustomLocation(router.spaces[pk].level, point.x, point.y, permissions=permissions)
|
||||
location = CustomLocation(router.spaces[pk].level, point.x, point.y,
|
||||
permissions=permissions, icon='my_location')
|
||||
best_location = location
|
||||
best_score = score
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue