Tags

Tags specific to this layer

bicycle — Geometries and relations
if (fields.not_for_bicycle) {
    value = 'no';
}
bus — Geometries and relations
if (fields.not_for_bus && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
emergency — Geometries and relations
if (fields.not_for_emergency && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
foot — Geometries and relations
if (fields.not_for_foot) {
    value = 'no';
}
goods — Geometries and relations
if (fields.not_for_goods && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
hgv — Geometries and relations
if (fields.not_for_truck && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
highway — Geometries and relations
if (fields.calculated_subtype == 'cycleway' || fields.calculated_subtype == 'footway') {
  value = fields.calculated_subtype;
}

if (fields.calculated_subtype == 'roundabout') {
  value = 'road';
}

if (!value && 
      fields.not_for_truck && 
      fields.not_for_emergency && 
      fields.not_for_car && 
      fields.not_for_bus && 
      fields.not_for_goods && 
      fields.not_for_taxi ) {
  if (fields.not_for_foot) {
    value = 'cycleway';
  } else if (fields.not_for_bicycle) {
    value = 'pedestrian';
  } else {
    value = 'path';
  }
}

if (!value) {
  switch(fields.calculated_subtype) {
    case 'residential':
    case 'footway':
    case 'cycleway':
    case 'trunk':
    case 'tertiary':
    case 'service':
    case 'primary':
    case 'secondary':
    case 'motorway':
    case 'motorway_link':
    case 'trunk_link':
    case 'primary_link':
    case 'secondary_link':
    case 'tertiary_link':
      value = fields.calculated_subtype;
      break;
    case 'track_unpaved':
      value = 'track';
      break;
    default:
      value = fields.calculated_subtype;
  }
}
junction — Geometries and relations
if (fields.calculated_subtype == 'roundabout') {
  value = 'roundabout';
}
LINZ:sufi — Geometries and relations
value = fields.linz_sufi;
motorcar — Geometries and relations
if (fields.not_for_car && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
name — Geometries and relations
value = fields.label_unmangled;
nzopengps.org:node_id — First node only
value = fields.node_id_start;
nzopengps.org:node_id — Last node only
value = fields.node_id_end;
nzopengps.org:road_id — Geometries and relations
value = fields.road_id;
oneway — Geometries and relations
if (fields.oneway) {
        value = 'yes';
}
psv — Geometries and relations
if (fields.not_for_bus && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
surface — Geometries and relations
if (fields.calculated_subtype == 'track_unpaved') {
    value = 'unpaved';
}
taxi — Geometries and relations
if (fields.not_for_taxi && fields.calculated_subtype != 'cycleway' && fields.calculated_subtype != 'footway') {
    value = 'no';
}
toll:motor_vehicle — Geometries and relations
if (fields.toll) {
    value = 'yes';
}

Tags for group nzopengps

attribution — Geometries and relations
value = "http://wiki.osm.org/wiki/Attribution#LINZ"
LINZ2OSM:dataset — First and last nodes
value = fields.dataset_name;
LINZ2OSM:dataset — Geometries and relations
value = fields.dataset_name;
LINZ2OSM:layer — Geometries and relations
value = fields.layer_name;
nzopengps.org:source_version — First and last nodes
value = fields.dataset_version;
nzopengps.org:source_version — Geometries and relations
value = fields.dataset_version;
source_ref — Geometries and relations
value = "http://www.nzopengps.org/"