diff --git a/src/c3nav/routing/route.py b/src/c3nav/routing/route.py index c5e1401e..7e52b7e8 100644 --- a/src/c3nav/routing/route.py +++ b/src/c3nav/routing/route.py @@ -1,13 +1,10 @@ # flake8: noqa -import copy from collections import OrderedDict, deque import numpy as np from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ -from c3nav.routing.api.routing import ShortWayTypeSchema - def describe_location(location, locations): if location.can_describe: @@ -242,8 +239,7 @@ class RouteItem: result = OrderedDict(( ('id', self.node.pk), ('coordinates', (self.node.x, self.node.y, self.node.altitude)), - ('waytype', (ShortWayTypeSchema.model_validate(self.route.router.waytypes[self.edge.waytype]).model_dump() - if self.edge and self.edge.waytype else None)), + ('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)