From e7d3201a97a86ef0c0608bfcd960e44e54962d7b Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 3 Jan 2021 11:40:07 +0100 Subject: [PATCH] Add optional "arrays" with lat/lon to ways This allows storing node locations on the ways. --- src/osmformat.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/osmformat.proto b/src/osmformat.proto index b456152..e9a5b2f 100644 --- a/src/osmformat.proto +++ b/src/osmformat.proto @@ -230,6 +230,15 @@ message Way { optional Info info = 4; repeated sint64 refs = 8 [packed = true]; // DELTA coded + + // The following two fields are optional. They are only used in a special + // format where node locations are also added to the ways. This makes the + // files larger, but allows creating way geometries directly. + // + // If this is used, you MUST set the optional_features tag "LocationsOnWays" + // and the number of values in refs, lat, and lon MUST be the same. + repeated sint64 lat = 9 [packed = true]; // DELTA coded, optional + repeated sint64 lon = 10 [packed = true]; // DELTA coded, optional } message Relation {