mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-23 05:56:28 +02:00
Issue #84: add primitive road connections.
This commit is contained in:
parent
b46e65f2ec
commit
aa82353f00
6 changed files with 258 additions and 150 deletions
|
@ -151,8 +151,8 @@ class OSMNode(Tagged):
|
|||
:param structure: input structure
|
||||
"""
|
||||
return cls(
|
||||
structure["id"],
|
||||
structure["tags"] if "tags" in structure else {},
|
||||
structure["id"],
|
||||
coordinates=np.array((structure["lat"], structure["lon"])),
|
||||
)
|
||||
|
||||
|
@ -209,7 +209,7 @@ class OSMWay(Tagged):
|
|||
:param nodes: node structure
|
||||
"""
|
||||
return cls(
|
||||
structure["tags"],
|
||||
structure["tags"] if "tags" in structure else {},
|
||||
structure["id"],
|
||||
[nodes[x] for x in structure["nodes"]],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue