serialize waytype correctly please

This commit is contained in:
Laura Klünder 2024-12-15 18:26:43 +00:00
parent 6428a39a04
commit 2fbe659a8e

View file

@ -241,7 +241,7 @@ class RouteItem:
('waytype', (self.route.router.waytypes[self.edge.waytype] if self.edge and self.edge.waytype else None)),
))
if self.waytype:
result['waytype'] = self.waytype.serialize(detailed=False)
result['waytype'] = self.waytype
if self.new_space:
result['space'] = describe_location(self.space, self.route.visible_locations)