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.
Post Reply
mrczeg
Posts: 11
Joined: Tue Oct 17, 2017 9:11 am

settings for roads

Post by mrczeg »

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

Re: settings for roads

Post by Bernd Welter »

Hi there,
Network classes<br />MOTORWAY	0	Motorways<br />HIGHWAY	1	Highways<br />TRUNK_ROAD	2	Trunk roads<br />COUNTRY_ROAD	3	Country roads<br />CITY_ROAD	4	City roads<br />RESIDENTIAL_ROAD	5	Residential roads<br />SPECIAL_ROAD	6	Drivable but normally blocked roads (for cars).<br />CYCLE_AND_WALKWAY	7	Cycle lanes and walkways
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 ... %7C_____14

Best regards,
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... :twisted:
Post Reply