Skip to content

Commit b86d853

Browse files
committed
Fixed output. Include source and dracos:verified tags.
1 parent 3e02553 commit b86d853

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sync_postboxes

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ foreach (@unambiguous) {
203203
}
204204
}
205205

206-
push @attr_changes, \%osm_new if $changed;
206+
if ($changed) {
207+
$osm_new{source} //= 'dracos';
208+
push @attr_changes, \%osm_new;
209+
}
207210
}
208211

209212
my %has_unambiguous;
@@ -252,7 +255,8 @@ foreach (@postbox_data) {
252255
my $node_id = -(scalar(@new_nodes) + 1);
253256
push @new_nodes, { id => $node_id, lat => $lat, lon => $lon,
254257
'addr:street' => $loc1, ref => $ref,
255-
postal_code => $postcode, operator => $operator };
258+
postal_code => $postcode, operator => $operator,
259+
source => 'dracos', 'dracos:verified' => 'no' };
256260
}
257261
}
258262

@@ -284,7 +288,7 @@ sub write_node {
284288
= join ' ', map { $_ . '="' . delete($a{$_}) . '"' } sort keys %a;
285289
say " <node $attr_str>";
286290
foreach (sort keys %h) {
287-
say qq{ <tag k="$_" v="$h{$_}">};
291+
say qq{ <tag k="$_" v="$h{$_}" />};
288292
}
289293
say ' </node>';
290294
}

0 commit comments

Comments
 (0)