sharedstreets / sharedstreets-ref-system

Making maps connectable: stable, non-proprietary IDs and data standards for streets
MIT License
186 stars 17 forks source link

Optional variables in Geometry #5

Closed DenisCarriere closed 6 years ago

DenisCarriere commented 6 years ago

Would forwardReferenceId & backReferenceId be optional and the rest required?

message SharedStreetsGeometry {

    required string id = 1;

    required string fromIntersectionId = 2;
    required string toIntersectionId = 3;
    optional string forwardReferenceId = 4;
    optional string backReferenceId = 5;

    RoadClass roadClass = 6;
    repeated float latlons = 7; // interleaved lat/lon pairs in sequence

}
kpwebb commented 6 years ago

Optional/required not supported in proto3.

https://stackoverflow.com/questions/31801257/why-required-and-optional-is-removed-in-protocol-buffers-3