source: osm/applications/editors/josm/plugins/lakewalker/Lakewalker/OSM.py@ 10119

Last change on this file since 10119 was 4096, checked in by brent, 17 years ago

v0.3 with latest python module

File size: 522 bytes
Line 
1class 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
9class 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
16class 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.