xRoute1 vs. xRoute2: hazardousGoodsTypes

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
cessing
Posts: 3
Joined: Fri Oct 27, 2017 4:23 pm

xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by cessing »

Hi,

with xRoute1 we use the hazardousGoodsType to define restrictions.
For xRoute2 I didn’t find a detailed documentent. I only found some of the needed properties here: PTV_TruckAttributes
Therefore I tried to map the enum value names from xRoute1 to the hazardousGoodsType of xRoute2.

I tested the following values:
- HAZARDOUS (seems to work)
- HAZARDOUS_TO_WATERS (seems to work)
- COMBUSTIBLES (exception)
- COMBUSTIBLES_HAZARDOUS_TO_WATERS (seems to work)
The routing with hazardousGoodsType = COMBUSTIBLES causes the following exception: The parameter value is invalid because of restrictions in the feature layer.

Which string is the right value to define a restriction of type „COMBUSTIBLES“ in xRoute2?

Regards
Christopher
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by Bernd Welter »

Hello Christopher,

I guess the documentation of this feature is not complete yet.
Potential values of that property are:

- HAZARDOUS_TO_WATERS
- HAZARDOUS
- EXPLOSIVE
- FLAMMABLE

Best regards,
Bernd

PS: I asked DEV to improve this ;-)
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:
CAPcargo
Posts: 34
Joined: Tue May 19, 2015 12:53 pm

Re: xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by CAPcargo »

Hi Bernd,

I also had this issue with using wrong property names.

I`m using xServer2 and there in the PTV_TruckAttributes properties list they`re named as 'combustibles', 'hazardousGoods', 'hazardousToWaters' and it`s only 3 of them as you can see.

But as seen in the post below 4 are noted: 'HAZARDOUS_TO_WATERS', 'HAZARDOUS', 'EXPLOSIVE', 'FLAMMABLE'.

Obviously the documentation is still not updated (seen by the names and number of properties), or maybe there is some other place there where they`re mentioned?

Regards,
Marko
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by Bernd Welter »

Ijust spoke to some DEV buddy - he recommends to keep the four potential values in mind:
  • HAZARDOUS_TO_WATERS
  • HAZARDOUS
  • EXPLOSIVE
  • FLAMMABLE
There's some built in mechanism in xRuntime2 which is supposed to assist in the automatic gathering of such properties and potential values. Unfortunately the method is experimental and not really dedicated to be used in public:
Output of the experimental method "xRuntime2.getDataInformation".
Output of the experimental method "xRuntime2.getDataInformation".
Please geht back to me 1:1 for further discussion of what further info you need.

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:
CAPcargo
Posts: 34
Joined: Tue May 19, 2015 12:53 pm

Re: xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by CAPcargo »

Hi Bernd,

Thank you, that`s enough for my current needs.

However it is pretty valuable that the correct and full data is represented in the documentation, otherwise developers spend a lot of time struggling with these kind of issues.

It would be appreciated if this is done also for any other properties (if any), so we don`t get into the same situation in future.

Regards,
Marko Arsovski
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: xRoute1 vs. xRoute2: hazardousGoodsTypes

Post by Bernd Welter »

Hi Marko,

I totally agree with you and forwarded your post to DEV. Unfortunately in this context this is all I can do at the moment.

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:
Post Reply