Page 1 of 1

Calculation of Emission contribution based on a single order

Posted: Wed Dec 01, 2021 4:35 pm
by Bernd Welter
Cheers,

I know how to compute emissions based on
  • a route
  • a leg
  • a segment
What I need is an approach
  • how to match the emissions to a given part of a route based on an order / a shipment
Could you provide a code sample or at least a description of a known approach (preferably an official standard)?

Best regards,
Bernd

Re: Calculation of Emission contribution based on a single o

Posted: Thu Jan 13, 2022 11:01 am
by Bernd Welter
Here is an original xRoute1 request as it is used by MAP&GUIDE Internet (complete request attached).

Thanks to Dirk for the sample!

Let me just highlight the Waypoint's array: the load_weight is set for each wayoint (so is the via type!),

Bernd

Code: Select all

<ArrayOfWaypointDesc_1>
   <WaypointDesc fuzzyRadius="0" linkType="NEXT_SEGMENT" xmlns="http://xroute.xserver.ptvag.com">
	  <wrappedCoords>
		 <Point xmlns="http://common.xserver.ptvag.com">
			<kml xsi:nil="true" />
			<point x="8.20142" y="48.85734" />
		 </Point>
	  </wrappedCoords>
	  <nodeID xsi:nil="true" />
	  <wrappedRoutingOptions xsi:nil="true" />
	  <wrappedSegmentID xsi:nil="true" />
	  <wrappedVehicleOptions>
		 <VehicleOption parameter="LOAD_WEIGHT" value="2000" />
	  </wrappedVehicleOptions>
	  <viaType xsi:nil="true" />
   </WaypointDesc>
   <WaypointDesc fuzzyRadius="0" linkType="NEXT_SEGMENT" xmlns="http://xroute.xserver.ptvag.com">
	  <wrappedCoords>
		 <Point xmlns="http://common.xserver.ptvag.com">
			<kml xsi:nil="true" />
			<point x="8.40847" y="49.01095" />
		 </Point>
	  </wrappedCoords>
	  <nodeID xsi:nil="true" />
	  <wrappedRoutingOptions xsi:nil="true" />
	  <wrappedSegmentID xsi:nil="true" />
	  <wrappedVehicleOptions>
		 <VehicleOption parameter="LOAD_WEIGHT" value="8000" />
	  </wrappedVehicleOptions>
	  <viaType viaType="VIA_STOP" />
   </WaypointDesc>
   <WaypointDesc fuzzyRadius="0" linkType="NEXT_SEGMENT" xmlns="http://xroute.xserver.ptvag.com">
	  <wrappedCoords>
		 <Point xmlns="http://common.xserver.ptvag.com">
			<kml xsi:nil="true" />
			<point x="8.56937" y="49.29364" />
		 </Point>
	  </wrappedCoords>
	  <nodeID xsi:nil="true" />
	  <wrappedRoutingOptions xsi:nil="true" />
	  <wrappedSegmentID xsi:nil="true" />
	  <wrappedVehicleOptions>
		 <VehicleOption parameter="LOAD_WEIGHT" value="6000" />
	  </wrappedVehicleOptions>
	  <viaType viaType="VIA_STOP" />
   </WaypointDesc>
   <WaypointDesc fuzzyRadius="0" linkType="NEXT_SEGMENT" xmlns="http://xroute.xserver.ptvag.com">
	  <wrappedCoords>
		 <Point xmlns="http://common.xserver.ptvag.com">
			<kml xsi:nil="true" />
			<point x="8.4474" y="49.48099" />
		 </Point>
	  </wrappedCoords>
	  <nodeID xsi:nil="true" />
	  <wrappedRoutingOptions xsi:nil="true" />
	  <wrappedSegmentID xsi:nil="true" />
	  <wrappedVehicleOptions>
		 <VehicleOption parameter="LOAD_WEIGHT" value="0" />
	  </wrappedVehicleOptions>
	  <viaType xsi:nil="true" />
   </WaypointDesc>
</ArrayOfWaypointDesc_1>