Revision [4531]
This is an old revision of BicykelPreprocessing made by MichalPalenik on 2013-03-26 15:38:20.
<?php
// cim vacsie cislo, bezpecnejsie
$hg_safety = array('primary' => 0,'secondary' => 1,'tertiary' => 2,'unclassified' => 3,'residential' => 4,'service' => 5,'living_street' => 6);
// cycleway, footway, pedestrian, track/path maju 10
// primary*
// nacitava sa
$hg_s2 = array(
"lanes > 1 and oneway = 'yes'" => -1,
"lanes > 2 and oneway != 'yes'" => -1,
"width < 4 and width != '' and lanes = 1" => -1,
"cycleway = 'sharrow'" => -1,
"cycleway = 'lane' or cycleway = 'track'" => 2,
"bicycle = 'designated'" => 1,
"oneway = 'yes'" => 1,
"maxspeed <= 30" => 2,
"maxspeed <= 40" => 1,
"maxspeed >= 60" => -3,
"traffic:class >= 1" => -1, "traffic:class >= 2" => -1,
"traffic:class <= -1" => 1, "traffic:class <= -2" => 1
);
// ak sa prekryva s MHD -1
// ak sa prekryva s cyklotrasou 2
//st_intersects(way, (select st_union(way) from trasy where typ='cyklotrasa' and popis like '%bratislava%'))
// cim vascie cislo, tym rychlejsie, autove cesty su rychle
// zaporne cislo neozbrazuje
$speed_1 = array('footway','pedestrian','path');
$speed = array( // iba v footway
"segregated = 'yes'" => -1,
"width >= 4" => -1,
"traffic:class <= -1" => -1,
"traffic:class >= 1" => 1,
"maxspeed < 20" => 1
);
// inak je speed 2, teda rychle
// cim vacsie cislo, pohodlnejsie
$hg_comfort = array('excellent' => 3,'good' => 2,'intermediate' => 1,'bad' => 0,'very_bad' => 0,'horrible' => 0,'very_horrible' => 0);
// nacitava sa
$hg_s2 = array(
"asphalt" => 2,
"concrete" => 2,
"cobblestone" => 1,
"concrete:plates" => 1,
"paved" => 1,
"paving_stones" => 1,
"sett" => 1,
"tarmac" => 1,
"wood" => 1,
"compacted" => 0,
"dirt" => 0,
"fine_gravel" => 0,
"grass" => 0,
"gravel" => 0,
"ground" => 0,
"ice" => 0,
"sand" => 0,
"unpaved" => 0,
);
?>
// cim vacsie cislo, bezpecnejsie
$hg_safety = array('primary' => 0,'secondary' => 1,'tertiary' => 2,'unclassified' => 3,'residential' => 4,'service' => 5,'living_street' => 6);
// cycleway, footway, pedestrian, track/path maju 10
// primary*
// nacitava sa
$hg_s2 = array(
"lanes > 1 and oneway = 'yes'" => -1,
"lanes > 2 and oneway != 'yes'" => -1,
"width < 4 and width != '' and lanes = 1" => -1,
"cycleway = 'sharrow'" => -1,
"cycleway = 'lane' or cycleway = 'track'" => 2,
"bicycle = 'designated'" => 1,
"oneway = 'yes'" => 1,
"maxspeed <= 30" => 2,
"maxspeed <= 40" => 1,
"maxspeed >= 60" => -3,
"traffic:class >= 1" => -1, "traffic:class >= 2" => -1,
"traffic:class <= -1" => 1, "traffic:class <= -2" => 1
);
// ak sa prekryva s MHD -1
// ak sa prekryva s cyklotrasou 2
//st_intersects(way, (select st_union(way) from trasy where typ='cyklotrasa' and popis like '%bratislava%'))
// cim vascie cislo, tym rychlejsie, autove cesty su rychle
// zaporne cislo neozbrazuje
$speed_1 = array('footway','pedestrian','path');
$speed = array( // iba v footway
"segregated = 'yes'" => -1,
"width >= 4" => -1,
"traffic:class <= -1" => -1,
"traffic:class >= 1" => 1,
"maxspeed < 20" => 1
);
// inak je speed 2, teda rychle
// cim vacsie cislo, pohodlnejsie
$hg_comfort = array('excellent' => 3,'good' => 2,'intermediate' => 1,'bad' => 0,'very_bad' => 0,'horrible' => 0,'very_horrible' => 0);
// nacitava sa
$hg_s2 = array(
"asphalt" => 2,
"concrete" => 2,
"cobblestone" => 1,
"concrete:plates" => 1,
"paved" => 1,
"paving_stones" => 1,
"sett" => 1,
"tarmac" => 1,
"wood" => 1,
"compacted" => 0,
"dirt" => 0,
"fine_gravel" => 0,
"grass" => 0,
"gravel" => 0,
"ground" => 0,
"ice" => 0,
"sand" => 0,
"unpaved" => 0,
);
?>