NetworkClass into polish road type

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
sebastian.pietrzak
Posts: 6
Joined: Fri Apr 07, 2017 12:28 pm
Location: Poznań, Poland

NetworkClass into polish road type

Post by sebastian.pietrzak »

Hello,

i started to use in my invidual profile <LinkTypeConfiguration> with <Road minimumNetworkClass="4"/>
However i cant find any information as to which type of road like highway, country road, city road a number should be.

Additionally i have tool Map Test. How i can check manually Network Class selected road ?
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: NetworkClass into polish road type

Post by Bernd Welter »

Hello Sebastian,

the enumeration NetworkClass tells you the values of what you need:
XRoute.NetworkClass
XRoute.NetworkClass
XMapTest client does not tell you about the category of segments.
But: at least for debugging you can use the following self-referencing file (use it as a profile stored in your conf folder and request it as CallerContext-->profile
map.profile=xmap-networkclasses.properties
#MOTORWAY 0
#HIGHWAY 1
#TRUNK_ROAD 2
#COUNTRY_ROAD 3
#CITY_ROAD 4
#RESIDENTIAL_ROAD 5
#SPECIAL_ROAD 6
#CYCLE_AND_WALKWAY 7

# 16777215 = WHITE
# 16776960 = CYAN
# 16711935 = MAGENTA
# 16711680 = BLUE
# 65535 = YELLOW
# 65280 = GREEN
# 255 = RED
# 0 = BLACK

[config.streeti.colorbytype]
0=16777215
1=16776960
2=16711935
3=16711680
4=65535
5=65280
6=255
7=0

[config.streetf.colorbytype]
0=16777215
1=16776960
2=16711935
3=16711680
4=65535
5=65280
6=255
7=0
Map generated with this ugly profile ;-)
Map generated with this ugly profile ;-)
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