-
Notifications
You must be signed in to change notification settings - Fork 2
/
krakow.rb
49 lines (44 loc) · 1.91 KB
/
krakow.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# encoding: UTF-8
require_relative '../bicycle_report-gem/lib/bicycle_report.rb'
#Kraków - http://www.openstreetmap.org/relation/2768921
lat_min = 50.00
lat_max = 50.12
lon_min = 19.78
lon_max = 20.21
main_generator = ReportGenerator.new(lat_min, lat_max, lon_min, lon_max)
main_generator.set_language(:pl)
main_generator.register_linkable_source("https://zikit.carto.com/me")
main_generator.register_linkable_source("https://www.facebook.com/KrakowMiastemRowerow/")
main_generator.register_linkable_source("http://ibikekrakow.com/")
main_generator.register_linkable_source("https://twitter.com/oficerKRK")
main_generator.register_linkable_source("https://www.facebook.com/ZIKiT.Krakow/")
main_generator.register_linkable_source("http://www.skyscrapercity.com/showthread.php?t=642754")
main_generator.start_writing_summary_pages()
bicycle_ways = BicycleWayRaportGenerator.new(lat_min, lat_max, lon_min, lon_max)
names_of_streets_where_contraflow_is_unwanted = ["Przegorzalska"] #steep slope, curvy and really narrow. contraflow is not safe here
names_of_streets_certain_to_not_be_oneway = [
#following roads are not really oneway for practical purposes
"Aleja Żubrowa",
"Mieczysława Medweckiego",
"Prądnicka",
"Ofiar Dąbia",
"Plac Braci Dudzińskich",
"Słotna",
"Cystersów",
"Józefa Dietla",
"Aleja Kasy Oszczędności Miasta Krakowa",
"Biskupa Jana Prandoty",
"Rzemieślnicza",
"Bieżanowska",
"Wielicka",
"Franciszka Bujaka",
"Józefa Marcika",
"Doktora Judyma"
]
bicycle_ways.process(names_of_streets_certain_to_not_be_oneway, names_of_streets_where_contraflow_is_unwanted)
krakow_crossing = CrossingReportGenerator.new(lat_min, lat_max, lon_min, lon_max)
krakow_crossing.generate_html_files_about_crossings
krakow_bicycle_parking = BicycleParkingRaportGenerator.new(lat_min, lat_max, lon_min, lon_max)
krakow_bicycle_parking.generate_statistics_about_bicycle_parkings
main_generator.copy_css()
main_generator.finish_writing_summary_pages()