Page 1 of 1

settings for roads

Posted: Tue Feb 20, 2018 2:00 pm
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 ?)

Re: settings for roads

Posted: Tue Feb 20, 2018 4:18 pm
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