< AND Data

AND Data/Spec

Please help wikify this AND spec document on to this page. This page was the basis for Mapping ANDs Tagging Scheme to OSMs Tagging Scheme found here. Therefore please apply an corrections to this page also to the Mapping ANDs Tagging Scheme to OSMs Tagging Scheme page.

Here is a pure text version of the document AND Data/Spec-pure text version which had been created using a PDF-to-text converter and lots of manual editing.

Like the TIGER import, we need to convert their attribute spec etc in to OSM tags so that we can import the data.

For the copyright and license information please see the original document [ dead link ].

Locations File

FieldAND descriptive nameFormatIDDescription
ND_1ND_IDN8Internal AND-ID
ND_2N20Used for compatibility with AND format, always ‘0’
ND_3N20Used for compatibility with AND format, always ‘0’
ND_4ND_TYPEN3Node type
0Standard node
1Junction (exit)
2Intersection
3Border node
4Directional information
5Toll Booth Info
9Level dead end, location other than a type 3 or 10-27 where a level may terminate
10Capital City
11Large city > 500,000
12Medium city > 100,000
13Small city > 50,000
14Town > 20,000
15Village > 5,000
16Small village > 1,000
17Tiny village < 1,000
19Postal code point
20Postal code area
21Numbered town district (e.g. Dublin 4)
22Town district > 100,000
23Town district > 50,000
24Town district > 20,000
25Town district > 5,000
26Town district > 1,000
27Town district < 1,000
A town or village is upgraded (one or two types) if it is a national or regional centre.
A village of type 17 is upgraded to type 16 if it has an own postal code.
A village (type 16 or 17) is upgraded (one type) if it is important from a tourist point of view.
30Railway station
36Car/train terminal
40Airport; no information available
41Big international airport (>10,000 flights per year)
42Medium international airport (400-10,000 flights per year)
43Small international airport (<400 flights per year)
44Heliport
45Seaplane Base
46Big national airport (>10,000 flights per year)
47Medium national airport (400 - 10,000 flights per year)
48Small national airport (<400 flights per year)
80Rest area with at least parking and petrol station.
81Rest area with parking only
82Rest area with only parking and petrol station
83Rest area with parking, petrol station and restaurant
84Rest area with parking, petrol station, restaurant and hotel
85Rest area with parking, restaurant and hotel
ND_5ND_NATIONN3Nation code (table is available _c.lst file)
ND_6ND_LEVELN2Connection level. The connection level of a node equals the level of the road on which it is situated (see Roads file)
ND_7ND_DELETEDLFor backward compatibility (0)
ND_8ND_ZIPC10Postal code
ND_9ND_NAMEC60Name
ND_10ND_NAME_PREFIXC10Name prefix, e.g. “la”
ND_11ND_NAME_SUFFIXC20Name suffix, e.g. “bei Wien” or “plage”
ND_12ND_NAME_COMPC2Compass direction (N, S, E, W, NE etc.) of ND_NAME
ND_13ND_CODEC10Official code belonging to ND_NAME.

Exit number
Community code
IATA airport code
Etc.

ND_14ND_PROVN3Province code (table is available _p.lst file)
ND_15ND_UN_PROVLFlag if province code is needed for unique making of ND_NAME
ND_16ND_UN_CITYC60City name for unique making of ND_NAME
ND_17ND_UN_CITY_PREFIXC10Prefix for ND_UN_CITY
ND_18ND_UN_CITY_SUFFIXC20Suffix for ND_UN_CITY
ND_19ND_UN_CITY_PROVN3Province code for unique making of ND_UN_CITY
ND_20ND_UN_CITY_COMPC2Compass direction relative to ND_UN_CITY for unique making of ND_NAME
ND_21ND_CONURBC60Name of conurbation to which suburb or town district belongs
ND_22ND_CONURB_PREFIXC10Prefix for ND_CONURB
ND_23ND_CONURB_SUFFIXC20Suffix for ND_CONURB
ND_24ND_CONURB_UN_PROVN3Province code for unique making of ND_CONURB
ND_25ND_ID_PERMANENTN10Permanent node ID, internal AND
ND_26ND_DBLINKC60Field for client specific ID or ID’s, e.g.
ESRI = 123456
ND_27ND_KMC30Kilometres / Mileage
ND_28ND_TMCC60TMC-code
ND_29ND_OTHERC60For internal use

Roads file

FieldAND descriptive nameFormatIDDescription
RD_1RD_IDN8ID of roads
RD_2N20Used for compatibility with AND format, always ‘0’
RD_3RD_LENGTHN5Road length in hectometers
RD_4RD_DIRECTIONN1Permitted Traffic Flow
0Traffic allowed in both directions
1Traffic allowed from RD_ID_FROM to RD_ID_TO
2Traffic allowed from RD_ID_TO to RD_ID_FROM
RD_5RD_TYPEN2Road classification
1Motor way
2Federal highway dual carriage way (motor way characteristics)
3Federal highway
4Regional road
5Local road
6Other road
7Ferry (cars and cargo)
9Train ferry (passenger and/or cargo)
30Railway, passenger and/or freight transport
50Link to airports, railway stations
58Walking connection between Railway stations
59Virtual connection. Used to connect features in the data

that are not linked by any other defined features in the database

RD_6RD_NATIONN3Nation code (table is available _c.lst file)
RD_7RD_LEVELN2Connection level. The connection level of a road expresses the importance of that road. The general classification is as follows:
0E-roads in Europe
1Important national roads in such a way that all type 10 to 13 locations are connected.

Scale around 1 : 4,000,000

2Secondary roads in such a way that all type 10 to 14 locations are connected.

Scale around 1 : 2,000,000

3Through roads in such a way that all type 10 to 15 locations are connected.

Scale around 1 : 1,000,000

4Local connector roads in such a way that all type 10 to 16 and 20 to 26 locations are connected.

Scale around 1 : 500,000

5Other roads

Scale around 1 : 250,000

6All other roads (streets)
10All railways
RD_8RD_DELETEDLAND Internal Code
RD_9RD_SLOWC1CSlow road type (road within city limits)
RD_10RD_NAMEC60Road (street) name
RD_11RD_CODE_NAT1C12National road number
RD_12RD_CODE_NAT2C12National road number
RD_13RD_CODE_NAT3C12National road number
RD_14RD_CODE_INT1C12International road number
RD_15RD_CODE_INT2C12International road number
RD_16RD_CODE_INT3C12International road number
RD_17RD_TUNNELLTunnel flag: 1 = tunnel, 2 = bridge
RD_18RD_TOLLLToll flag
RD_19RD_TIMEN5Ferry journey time in minutes
RD_20RD_FLOORN1Relative height to a crossing feature

1 is below 2 is below 3 etc.
9 if relative height is unknown.

RD_21RD_TONNAGEN3Tonnage admitted on ferry
-1Only passengers (ferries) – Also used for pedestrian streets/ virtual connections
3max. 3.5 metric tons
28max. 28 metric tons
40max. 40 metric tons
99> 100 tons
RD_22RD_TOLL_CARGOLToll (for trucks only) flag
RD_23RD_OTHERC60Other Attributes:
Sr#1Slip road segment
Rb#1Roundabout segment
Lb#1Lay-by segment
4wd#1Four wheel drive road segment
Unsealed#1Unsealed road segments
Fc#[0-4]Functional road class 0 to 4
Lh#1Long haul
Stub#1Stub link
hn#Housenumber range

L : left, direction from FNODE_ to TNODE_
R: right, direction from FNODE_ to TNODE_
E: even
O: odd
M: mixed
e.g. hn#LE2-12#RO1-11

RD_24RD_PROVN3Province code (table is available _p.lst file)
RD_25RD_CITY_IDN11City code of link (link to ND_ID)
RD_26RD_MUN_IDN11Municipality code of link (table is available _m.dbf file)
FNODE_FNODE_N12From node ID of link
TNODE_TNODE_N12To node ID of link

Maneuvers and Path index file (TUR, PTH)

Maneuvers file *.TUR

NoFieldFormatValuesDescription
1IDN8ManeuverID
2TYPEC60Prohibited maneuver
Priority maneuver
Bifurcation
Prohibited maneuver only.
3BIFTYPEC60Undefined
Multi lane fork
Simple fork
Exit bifurcation
Classification of the bifurcation type maneuver.

Path index file *.PTH

NoFieldFormatValuesDescription
1IDN8Maneuver ID
2SEQNRN1Sequence number
3TRPELIDN8Road element ID / Node ID, derived from Fnode_ or Tnode_ (refers to roads file : AND_ID of link).

Signpost index table and signpost file (SIT, SIP)

Signpost Index Table file *.SIT

NoFieldFormatValuesDescription
1IDN8Signpost ID
2SEQNRN1Sequence Number
3TREL IDN8Roads ID (refers to Roads file: RD_ID)
4TREL TYPEC60RoadType (Road)

Signpost Table file *.SIP

NoFieldFormatValuesDescription
1IDN8Signpost ID
2JUNCTION IDN8Road Node ID (derived from Fnode_ or Tnode_)
3SEQNR1N1Sequence Number
4SEQNR2N1Sequence Number
5INFO TYPEC60Information type
6TEXTC60Place name/Exit name
7TEXT LANGC3MARC Language code
8CON TYPEN10Undefined
1Branch
2Towards
3Exit

Boundary files

FieldAND descriptive nameFormatIDDescription
ND_1ND_IDN8Internal AND Link ID
ND_4ND_TYPEN3Region type
90Land
91Inner seas and huge lakes with major geographical referential impact
92Very big river/lake and/or country separating river/lake
94Province/department separating river/lake
95Capital or Metropolis
96Forest, Woodland
97Other river/lake
98Other city cities having population more than 5000
99Airports (National and International)
100Ocean, sea
101City park, garden
102Regional, national park
103Small cities having population less than 5000
104Cemeteries
105Golf course
106Beach, dune
107Plain sand
108Moors, heath land
109Industrial area
ND_5ND_NATIONN3Nation code (table is available)
ND_9ND_NAMEC60Name
ND_14ND_PROVINCEN3Province code (table is available)

Following administrative boundaries are delivered:

<file name>_admin0.*Highest delivered administrative division. Equal to order 0 in GDF3.0 specification (country).
<file name>_admin8.*Lowest delivered administrative division. Equal to order 8 in GDF3.0 specification.
<file name>_admin[1..7].*Intermediate administrative division.

Landuse boundaries:

<file name>_a.*Airports (National and International)
<file name>_b.*Beach, dune and plain sand
<file name>_c.*City, built-up area
<file name>_ce.*Cemetery
<file name>_f.*Forest, woodland
<file name>_gf.*Golf course
<file name>_h.*Moors and heath land
<file name>_i.*Island
<file name>_in.*Industrial area
<file name>_o.*Ocean/sea
<file name>_pk.*Park, garden
<file name>_w.*Water boundaries or
<file name>_w_maj.*Major water boundaries
<file name>_w_min.*Minor water boundaries

Administrative division files

The level of the administrative division can vary from country to country but it is referred to as the province boundary layer in all cases, and is the most detailed level of administrative division supplied for each country.

Administrative divisions format

Associated with the province boundary layer, there are 4 comma-separated ‘*.lst’ files:

  • *_p.lst (Province)
  • *_r.lst (Region)
  • *_s.lst (State)
  • *_c.lst (Country)

Administrative divisions in the data

The number of hierarchical divisions that occur is country-specific. All countries receive the lowest or most detailed administrative division - i.e. the ‘Province’.

The term ‘Province’ is used here and refers to the most detailed level of administrative division represented by AND within a country. Due to the large variation in use of this term between countries, it does not always indicate actual provinces as described within a country in its administrative hierarchy. The same is true for the terms ‘Region’ and ‘State’.

Currently, a maximum of 3 administrative levels (below country level) exists in AND’s Global Road Data. For the purpose of this document the most detailed level will be described as the ‘Province’, the level above this as the ‘Region’ and the one above this as the ‘State’ division.

Administrative Division Hierarchy in AND Data

The provision of province, region, state and country information in the AND data varies between and within datasets as the following table illustrates:

ContinentProvince InformationRegion InformationState InformationCountry Information
Europeeur_p.lsteur_r.lsteur_s.lsteur_c.lst
North Americanam_p.lstnam_r.lstNot applicablenam_c.lst
Central/South Americasam_p.lstsam_r.lstNot applicablesam_c.lst
Australasiaas_p.lstas_r.lstNot applicableas_c.lst
Africaaf_p.lstaf_r.lstNot applicableaf_c.lst
North PoleNot applicableNot applicableNot applicablenp_c.lst

All ‘*.lst’ files, except _c.lst, have a corresponding ‘*.num’ file that give a total count of the administrative divisions per country.

The format of the ‘*.num’ files is as follows:

FieldField nameDescription
1Country numberSame number as in *_c.lst
2Division countTotal number of administrative divisions
3Division nameOfficial administrative naming

Description of the *.lst files

Administrative boundary information in AND data is supplied as a graphical province boundary file and one or more accompanying ‘*.lst’ files.

The following tables describe the field structure of the ‘*.lst’ files at each administrative level:

FieldProvince information
1Nation code
2Province code (AND assigned)
3Province Abbreviation/code (Official)
4Province Name
5Official number (Germany only)
6Region code
7State code


FieldRegion information
1Nation code
2Region code (AND assigned)
3Region Abbreviation/code (Official)
4Region Name


FieldState information
1Nation code
2State code (AND assigned)
3State Abbreviation/code (Official)
4State Name


FieldCountry Information
1Nation code
2Nation Abbreviation/code (Official)
3Nation Name


Apart from the <dataset>_c.lst file at country level, the province or ‘<dataset>_p.lst’ file is the only file that can be directly associated with the graphical province boundaries.

The boundaries contain a province code attribute – a six digit figure comprising the nation code (first 3 digits) and province code (last three digits) combined.

This can be used to match the boundaries to their corresponding entry in the <dataset>_p.lst file.

Example

The <dataset>_r.lst file and <dataset>_s.lst file are not directly linked with the graphical data. Instead they provide extra information on the region or state in which each province resides.

The associated region and state for each province is identified in a ‘region code’ and ‘state code’ field in the <dataset>_p.lst file. The process by which region or state information can be retrieved and linked to the graphical data is described in the next section.

Linking and mapping all administrative data

The country or <dataset>_c.lst file can be linked to all other *.lst files as follows:

Example of administrative division mapping

The following example shows how these links can be used to map all administrative information to the province boundary layer.

In Switzerland, there are 2 hierarchical administrative divisions (below Country) – province and region. There is the AND province boundary data, a <dataset>_p.lst file, a <dataset>_r.lst file and a <dataset>_c.lst file.

Each province in the AND province boundary data has a 6 digit code. This can be used to link information from the <dataset>_p.lst file. Once this record has been identified, further information in the ‘region code’ and ‘state code’ fields can be used to link the <dataset>_r.lst file and <dataset>_s.lst file to the map.

Alias format file

The purpose of the alias file is to provide alternative names for named nodes addressable on the administrative level (e.g. cities).

The names are stored in a *.csv format using the following structure:

FieldField nameDescription
1XlongLongitude in decimal degrees
2YlatLatitude in decimal degrees
3ModeAlways ‘V’ corresponding to “alias name”
4Lang1-Lang2The language codes refer to the USMARC Code list for languages
5Name1Official language name
6Name2Alternative name
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.