Skip to content

Commit

Permalink
Correct API version in osmChange and changeset XML
Browse files Browse the repository at this point in the history
The version attribute of the osmChange and changeset XML should read `0.6` (the version of the OSM API the data is created for), even though the attribute is actually ignored by the OSM API (see http://wiki.openstreetmap.org/wiki/OsmChange).
  • Loading branch information
tyrasd committed Sep 5, 2015
1 parent 90bc645 commit dd32ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/id/core/connection.js
Expand Up @@ -210,7 +210,7 @@ iD.Connection = function(useHttps) {
tag: _.map(tags, function(value, key) {
return { '@k': key, '@v': value };
}),
'@version': 0.3,
'@version': 0.6,
'@generator': 'iD'
}
}
Expand Down Expand Up @@ -240,7 +240,7 @@ iD.Connection = function(useHttps) {

return {
osmChange: {
'@version': 0.3,
'@version': 0.6,
'@generator': 'iD',
'create': nest(changes.created.map(rep), ['node', 'way', 'relation']),
'modify': nest(changes.modified.map(rep), ['node', 'way', 'relation']),
Expand Down

0 comments on commit dd32ec3

Please sign in to comment.