<s> from osm import OSM , Node , Way <EOL> osm = OSM ( "<STR_LIT>" ) <EOL> fp = open ( "<STR_LIT>" , "<STR_LIT:w>" ) <EOL> for nodeid in osm . nodes . keys ( ) : <EOL> fp . write ( "<STR_LIT>" % nodeid ) <EOL> fp . close ( ) <EOL> fp = open ( "<STR_LIT>" , "<STR_LIT:w>" ) <EOL> for wayid , way in osm . ways . iteritems ( ) : <EOL> if '<STR_LIT>' in way . tags : <EOL> fp . write ( "<STR_LIT>" % ( wayid , way . fromv , way . tov , way . length ( osm . nodes ) ) ) <EOL> fp . close ( ) </s>
