Driving directions

Top  Previous  Next

Driving directions in FleetEngine are a part of the normal XML output.

 

It only requires a street network as basis for the optimization and a field set up for road names.

 

An example output can be seen here (or in the TIGER sample output):

 

<GISRecords>

 <GISRecord>

   <Directions>

     <RoadName>Main Road</RoadName>

     <Distance>0.0829960251924088</Distance>

     <Time>0.0711394480361874</Time>

     <Turn>0</Turn>

     <Text>Main Road for 0.083 km, then onto</Text>

   </Directions>

   <Coordinates>

   ....

   </Coordinates>

 </GISRecord>

</GISRecords>

 

The content of <Text> can be customized via ini file settings, TemplateString. See the supplied INI file for the default setup.

Elements within {} will be replaced with corresponding values when creating the text. Non ascii characters are supported.

 

The value of <Turn> is used for creating the <Text> field and can generally be ignored by users.

 

The default language is English.

 

Viewer application processes this a bit further by summing distances and times.