-
Notifications
You must be signed in to change notification settings - Fork 2
/
.Rhistory
208 lines (208 loc) · 5.93 KB
/
.Rhistory
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
bikeparking <- read_csv("~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
library(tidyverse)
bikeparking <- read_csv("~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
library(mapboxapi)
mb_geocode("1 Boone Rd, Bremerton, WA 98312")
bikeparking <- bikeparking %>%
add_row(NAME = "BREMERTON NAVAL HOSPITAL",
ADDRESS = "1 Boone Rd, Bremerton, WA 98312",
DESC = "Outside of Urgent Care",
VARIANT = "GRID",
COVERED = "NO",
SPACES = 8,
IMG = "Bremerton Naval Hospital.jpg",
LNG = -122.69285,
LAT = 47.59411
)
write_csv(bikeparking, file="~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
mb_geocode("3355 Bethel Rd SE, Port Orchard, WA 98366")
bikeparking <- bikeparking %>%
add_row(NAME = "BETHEL SAFEWAY",
ADDRESS = "3355 Bethel Rd SE, Port Orchard, WA 98366",
DESC = "All the way to the right of the building front",
VARIANT = "GRID",
COVERED = "YES",
SPACES = 4,
IMG = "Safeway - Bethel Port Orchard.jpg",
LNG = -122.63005,
LAT = 47.51826
)
write_csv(bikeparking, file="~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
library(tidyverse)
bikeparking <- read_csv("~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
library(mapboxapi)
mb_geocode("25 Barberry St, Bremerton, WA 98312")
bikeparking <- bikeparking %>%
add_row(NAME = "BUD HAWK ELMENTARY SCHOOL",
ADDRESS = "25 Barberry St, Bremerton, WA 983126",
DESC = "In front of entrance",
VARIANT = "STAPLE",
COVERED = "NO",
SPACES = 18,
IMG = "Bud Hawk Elementary School.jpg",
LNG = -122.69460,
LAT = 47.59214
)
mb_geocode("3114 NW Randall Way STE 300. Silverdale, WA 98383")
bikeparking <- bikeparking %>%
add_row(NAME = "PACIFIC PHYSICAL THERAPY SILVERDALE",
ADDRESS = "3114 NW Randall Way STE 300. Silverdale, WA 98383",
DESC = "East of entrance",
VARIANT = "WAVE",
COVERED = "NO",
SPACES = 3,
IMG = "Pacific Physical Therapy Silverdale.jpg",
LNG = -122.69052,
LAT = 47.66116
)
mb_geocode("2860 NW Bucklin Hill Rd, Silverdale, WA 98383")
bikeparking <- bikeparking %>%
add_row(NAME = "RITEAID SILVERDALE",
ADDRESS = "2860 NW Bucklin Hill Rd, Silverdale, WA 98383",
DESC = "North of entrance, towards Safeway",
VARIANT = "Grid",
COVERED = "YES",
SPACES = 3,
IMG = "Silverdale RiteAid.jpg",
LNG = -122.68817,
LAT = 47.65186
)
write_csv(bikeparking, file="~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
View(bikeparking)
#loading packages
library(osmdata)
library(dplyr)
library(ggplot2)
library(sf)
library(tmap)
install.packages("osmdata")
#
# prep
library(tidyverse)
library(sf)
library(mapboxapi)
#mapboxapi::mb_access_token(my_mapbox, #this will not work for you - need to use a mapbox access token
# install = TRUE)
library(leaflet)
# read in data
building <- sf::read_sf("./data/building")
library(tidyverse)
bikeparking <- read_csv("~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
library(mapboxapi)
mb_geocode("19705 Viking Ave NW, Poulsbo, WA 98370")
bikeparking <- bikeparking %>%
add_row(NAME = "FISHLINE POULSBO",
ADDRESS = "19705 Viking Ave NW, Poulsbo, WA 98370",
DESC = "Left of Front Entrance",
VARIANT = "GRID",
COVERED = "YES",
SPACES = 4,
IMG = "Fishline Poulsbo.jpg",
LNG = -122.65927,
LAT = 47.74164
)
mb_geocode("17881 Fjord Dr NE, Poulsbo, WA 98370")
bikeparking <- bikeparking %>%
add_row(NAME = "OYSTER PLANT PARK POULSBO",
ADDRESS = "17881 Fjord Dr NE, Poulsbo, WA 98370",
DESC = "On Sidewalk",
VARIANT = "OTHER",
COVERED = "NO",
SPACES = 4,
IMG = "Oyster Plant Poulsbo.jpg",
LNG = -122.63962,
LAT = 47.72532
)
mb_geocode("9481 Silverdale Way NW #205, Silverdale, WA 98383")
bikeparking <- bikeparking %>%
add_row(NAME = "ESCAPE ROOM SILVERDALE",
ADDRESS = "9481 Silverdale Way NW #205, Silverdale, WA 98383",
DESC = "To Right of Kitsap Credit Union Entrance",
VARIANT = "GRID",
COVERED = "YES",
SPACES = 6,
IMG = "Silverdale Escape Room.jpg",
LNG = -122.6969,
LAT = 47.6496
)
bikeparking <- bikeparking %>%
add_row(NAME = "NAVAL HOSPITAL FLAG",
ADDRESS = "1 Boone Rd, Bremerton, WA 98312",
DESC = "On Right Side of Quaterdeck Entrance near flag",
VARIANT = "WAVE",
COVERED = "YES",
SPACES = 6,
IMG = "Bremerton Naval Hospital Flag.jpg",
LNG = -122.691200,
LAT = 47.595261
)
bikeparking$COVERED[62] <- "NO"
mb_geocode("7077 Stampede Blvd NW, Bremerton, WA 98311")
bikeparking <- bikeparking %>%
add_row(NAME = "OLYMPIC HIGH",
ADDRESS = "7077 Stampede Blvd NW, Bremerton, WA 98311",
DESC = "On Left Side of Main Entrance",
VARIANT = "WAVE",
COVERED = "YES",
SPACES = 12,
IMG = "Olympic High School.jpg",
LNG = -122.66517,
LAT = 47.62688
)
bikeparking <- read_csv("~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")
bikeparking <- bikeparking %>%
add_row(NAME = "FISHLINE POULSBO",
ADDRESS = "19705 Viking Ave NW, Poulsbo, WA 98370",
DESC = "Left of Front Entrance",
VARIANT = "GRID",
COVERED = "YES",
SPACES = 4,
IMG = "Fishline Poulsbo.jpg",
LNG = -122.65927,
LAT = 47.74164
)
bikeparking <- bikeparking %>%
add_row(NAME = "OYSTER PLANT PARK POULSBO",
ADDRESS = "17881 Fjord Dr NE, Poulsbo, WA 98370",
DESC = "On Sidewalk",
VARIANT = "OTHER",
COVERED = "NO",
SPACES = 4,
IMG = "Oyster Plant Poulsbo.jpg",
LNG = -122.63962,
LAT = 47.72532
)
bikeparking <- bikeparking %>%
add_row(NAME = "ESCAPE ROOM SILVERDALE",
ADDRESS = "9481 Silverdale Way NW #205, Silverdale, WA 98383",
DESC = "To Right of Kitsap Credit Union Entrance",
VARIANT = "GRID",
COVERED = "YES",
SPACES = 6,
IMG = "Silverdale Escape Room.jpg",
LNG = -122.6969,
LAT = 47.6496
)
bikeparking <- bikeparking %>%
add_row(NAME = "NAVAL HOSPITAL FLAG",
ADDRESS = "1 Boone Rd, Bremerton, WA 98312",
DESC = "On Right Side of Quaterdeck Entrance near flag",
VARIANT = "WAVE",
COVERED = "NO",
SPACES = 6,
IMG = "Bremerton Naval Hospital Flag.jpg",
LNG = -122.691200,
LAT = 47.595261
)
bikeparking <- bikeparking %>%
add_row(NAME = "OLYMPIC HIGH",
ADDRESS = "7077 Stampede Blvd NW, Bremerton, WA 98311",
DESC = "On Left Side of Main Entrance",
VARIANT = "WAVE",
COVERED = "YES",
SPACES = 12,
IMG = "Olympic High School.jpg",
LNG = -122.66517,
LAT = 47.62688
)
write_csv(bikeparking, file="~/Documents/kitsap-bike-parking/kitsap-bike-parking.csv")