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
xRoute1 vs. xRoute2: hazardousGoodsTypes
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: xRoute1 vs. xRoute2: hazardousGoodsTypes
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
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...
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...
Re: xRoute1 vs. xRoute2: hazardousGoodsTypes
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
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
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: xRoute1 vs. xRoute2: hazardousGoodsTypes
Ijust spoke to some DEV buddy - he recommends to keep the four potential values in mind:
Please geht back to me 1:1 for further discussion of what further info you need.
Bernd
- HAZARDOUS_TO_WATERS
- HAZARDOUS
- EXPLOSIVE
- FLAMMABLE
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...
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...
Re: xRoute1 vs. xRoute2: hazardousGoodsTypes
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
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
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: xRoute1 vs. xRoute2: hazardousGoodsTypes
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
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...
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...