Skip to content

Commit

Permalink
Update OsmPbf_libosmbf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam authored Aug 18, 2024
1 parent 902dbd8 commit f7fc177
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/OsmPbf_libosmbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,35 @@ def CopyTo(self, output):
osm_pbf_parser.read_osm_pbf(self._pbf_file, self)


def node(self, osmid, lon, lat, tags):
def node(self, osmid, lon, lat, tags, timestamp):
data = {
'id': osmid,
'lon': lon,
'lat': lat,
'tag': tags,
#'version'
#'timestamp'
'timestamp': timestamp,
#'uid'
}
self._output.NodeCreate(data)

def way(self, osmid, tags, refs):
def way(self, osmid, tags, refs, timestamp):
data = {
'id': osmid,
'tag': tags,
'nd': refs,
#'version'
#'timestamp'
'timestamp': timestamp,
#'uid'
}
self._output.WayCreate(data)

def relation(self, osmid, tags, ref):
def relation(self, osmid, tags, ref, timestamp):
data = {
'id': osmid,
'tag': tags,
#'version'
#'timestamp'
'timestamp': timestamp,
#'uid'
'member': ref,
}
Expand Down

0 comments on commit f7fc177

Please sign in to comment.