Skip to content

Commit 023297e

Browse files
committed
rename highway_gdf -> way_gdf to streamline naming
1 parent 64c1fed commit 023297e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/LightOSM.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export index_to_node_id,
7676
simplify_graph,
7777
node_gdf,
7878
edge_gdf,
79-
highway_gdf
79+
way_gdf
8080

8181
include("types.jl")
8282
include("constants.jl")

src/geodataframes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function node_gdf(g::OSMGraph)
88
return DataFrame(;id=ids, geom=Point.(geom))
99
end
1010

11-
function highway_gdf(g::OSMGraph)
11+
function way_gdf(g::OSMGraph)
1212
ids = collect(keys(g.highways))
1313
_way_coordinates(way) = map(way.nodes) do id
1414
coordinates(g.nodes[id])
@@ -25,7 +25,7 @@ function node_gdf(sg::SimplifiedOSMGraph)
2525
return DataFrame(;id=ids, geom=Point.(geom))
2626
end
2727

28-
highway_gdf(sg::SimplifiedOSMGraph) = highway_gdf(sg.parent)
28+
way_gdf(sg::SimplifiedOSMGraph) = way_gdf(sg.parent)
2929

3030
function edge_gdf(sg::SimplifiedOSMGraph)
3131
edge_ids = collect(keys(sg.edges))

src/plotrecipes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ end
77
RecipesBase.@recipe function f(g::AbstractOSMGraph)
88
color --> :black
99
aspect_ratio --> aspect_ratio(g)
10-
MultiLineString(GeoInterface.coordinates.(highway_gdf(g).geom))
10+
MultiLineString(GeoInterface.coordinates.(way_gdf(g).geom))
1111
end

0 commit comments

Comments
 (0)