Add:Core:Enable setting of position via attribute
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 1 Jul 2012 11:50:09 +0000 (11:50 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 1 Jul 2012 11:50:09 +0000 (11:50 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5169 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/route.c

index 60aaafd..91aa3a6 100644 (file)
@@ -3659,6 +3659,9 @@ route_set_attr(struct route *this_, struct attr *attr)
        case attr_destination:
                route_set_destination(this_, attr->u.pcoord, 1);
                return 1;
+       case attr_position:
+               route_set_position(this_, attr->u.pcoord);
+               return 1;
        case attr_vehicle:
                attr_updated = (this_->v != attr->u.vehicle);
                this_->v=attr->u.vehicle;