Line | |
---|
1 | class Node:
|
---|
2 | def __init__(self, id, latitude, longitude, timestamp):
|
---|
3 | self.id = id
|
---|
4 | self.lat = latitude
|
---|
5 | self.lon = longitude
|
---|
6 | self.timestamp = timestamp
|
---|
7 | self.tags = {}
|
---|
8 |
|
---|
9 | class Segment:
|
---|
10 | def __init__(self, attrs):
|
---|
11 | self.id = int(attrs["id"])
|
---|
12 | self.from_node = int(attrs["from"])
|
---|
13 | self.to_node = int(attrs["to"])
|
---|
14 | self.tags = {}
|
---|
15 |
|
---|
16 | class Way:
|
---|
17 | def __init__(self, attrs):
|
---|
18 | self.id = int(attrs["id"])
|
---|
19 | self.segs = []
|
---|
20 | self.tags = {}
|
---|
21 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.