Skip to content

Commit e7d3201

Browse files
committed
Add optional "arrays" with lat/lon to ways
This allows storing node locations on the ways.
1 parent 1651aa1 commit e7d3201

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/osmformat.proto

+9
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,15 @@ message Way {
230230
optional Info info = 4;
231231

232232
repeated sint64 refs = 8 [packed = true]; // DELTA coded
233+
234+
// The following two fields are optional. They are only used in a special
235+
// format where node locations are also added to the ways. This makes the
236+
// files larger, but allows creating way geometries directly.
237+
//
238+
// If this is used, you MUST set the optional_features tag "LocationsOnWays"
239+
// and the number of values in refs, lat, and lon MUST be the same.
240+
repeated sint64 lat = 9 [packed = true]; // DELTA coded, optional
241+
repeated sint64 lon = 10 [packed = true]; // DELTA coded, optional
233242
}
234243

235244
message Relation {

0 commit comments

Comments
 (0)