Skip to content

Commit 86333c2

Browse files
committed
update example
1 parent bcc1b75 commit 86333c2

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

example.jl

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1+
using GeoInterface: MultiLineString, LineString, Point
12
using LightOSM, Plots, GeoInterfaceRecipes
23

34
g = graph_from_download(
45
:place_name,
56
place_name="tiergarten, berlin germany",
6-
network_type=:bike
7+
network_type=:drive
78
)
89
sg = simplify_graph(g)
910

10-
# check for missing edges
11-
plot(g, color=:red, linewidth=0.8, size=(800, 800))
12-
plot!(sg, linewidth=1.1, color=:black)
13-
savefig("edge_validation")
11+
# Set plot size
12+
size = (1920, 1080)
1413

15-
# show original nodes
16-
plot(sg)
17-
plot!(node_gdf(g).geom, color=:red, markersize=2.2)
14+
# Show original nodes
15+
plot(g; size)
1816
savefig("original_nodes")
1917

20-
# show relevant nodes
21-
plot(sg)
22-
plot!(node_gdf(sg).geom, color=:green, markersize=2.2)
23-
savefig("relevant_nodes")
18+
# Show relevant nodes
19+
plot(sg; size)
20+
savefig("relevant_nodes")

0 commit comments

Comments
 (0)