settings for roads

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.

settings for roads

Postby mrczeg » Tue Feb 20, 2018 2:00 pm

I use the code as below in order to set the desire to use the road type.
Code: Select all
   XElement BasicDataRules = new XElement("BasicDataRules", new XElement("Network",
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[0])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[1])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[2])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[3])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[4])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[5])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[6])),
                new XElement("MalusByNetworkClass", new XAttribute("malus", malus[7]))
                ));

In the documentation I read that these values are for the eight basic types of roads. Could you tell me name of this roads?(Urban etc ?)
mrczeg
 
Posts: 4
Joined: Tue Oct 17, 2017 9:11 am

Re: settings for roads

Postby Bernd Welter » Tue Feb 20, 2018 4:18 pm

Hi there,

NC.PNG
Network classes
MOTORWAY 0 Motorways
HIGHWAY 1 Highways
TRUNK_ROAD 2 Trunk roads
COUNTRY_ROAD 3 Country roads
CITY_ROAD 4 City roads
RESIDENTIAL_ROAD 5 Residential roads
SPECIAL_ROAD 6 Drivable but normally blocked roads (for cars).
CYCLE_AND_WALKWAY 7 Cycle lanes and walkways



http://xserver.ptvgroup.com/fileadmin/f ... ation.html#com.ptvag.xserver.xroute.NetworkClass%3FTocPath%3DDeveloper's%2520Guide%7CAPI%2520Documentation%7CAPI%2520Documentation%2520PTV%2520xRoute%7CComponent%2520xroute%7CEnumerations%7C_____14

Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1027
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV xRouteServer

cron