How to distinguish between a car and a truck?

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

How to distinguish between a car and a truck?

Post by Bernd Welter »

HI there,

Last week a partner asked me how he's supposed to parametrize a vehicle profile to be a truck or car.
In fact I was quite surprised that it is not just a simple property you need to use for this.
Instead we have to use following combination of properties:
Routing / Vehicle / Physical / Drive / @driveType
Routing / Vehicle / Physical / Weight / @totalPermittedWeight

  • (@driveType=="MOTORIZED") and (@totalPermittedWeight <= 3500) is a car
  • (@driveType=="MOTORIZED") and (@totalPermittedWeight > 3500) is a truck
Thanks for asking this question, Harald...!
Thanks for answering it, Frank, Haba, Ralf ;-)
Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Joost
Posts: 307
Joined: Fri Apr 25, 2014 1:46 pm

Re: How to distinguish between a car and a truck?

Post by Joost »

You also have to check the Routing / Vehicle / Load / @loadType . If it is set to GOODS or MIXED it is a truck, else it is a Coach (bus).
Joost Claessen
Senior Technical Consultant
PTV Benelux
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: How to distinguish between a car and a truck?

Post by Bernd Welter »

In the context of xServer2 the properties in charge would be:
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply