Calculation of Emission contribution based on a single order

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
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Calculation of Emission contribution based on a single order

Post 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
Attachments
Screenshot from MGI
Screenshot from MGI
Screenshot from MGI
Screenshot from MGI
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:
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Calculation of Emission contribution based on a single o

Post 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>
Attachments
Result displayed in MGI
Result displayed in MGI
xroute1_hbefa.xml
Sample Request from MG Internet
(18.79 KiB) Downloaded 221 times
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