Skip to content

Commit

Permalink
Merge branch 'nvdbid-date'
Browse files Browse the repository at this point in the history
  • Loading branch information
gomyhr committed Apr 4, 2015
2 parents d6933fd + 38a33bb commit d293d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion elveg2osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ def create_osmtags(elveg_tags):
# All ways should have a TRANSID (will change to LOKALID with SOSI 4.5)
osmtags['nvdb:id'] = elveg_tags['TRANSID']


# Add date from NVDB
if elveg_tags.has_key('DATAFANGSTDATO'):
date = elveg_tags['DATAFANGSTDATO']
osmtags['nvdb:date'] = '%s-%s-%s' % (date[0:4],date[4:6],date[6:8])

return osmtags

def parse_lanes(lane_string):
Expand Down

0 comments on commit d293d9e

Please sign in to comment.