mapbox / geometry.hpp

C++ geometry types
ISC License
92 stars 37 forks source link

Add feature#id #39

Closed jfirebaugh closed 8 years ago

jfirebaugh commented 8 years ago

Fixes #18

jfirebaugh commented 8 years ago

I'm unsure about the type here. value is certainly the most flexible type, but perhaps too flexible. The vector tile specification mandates uint64. The latest revision of the IETF GeoJSON draft mandates "either a JSON string or number".

I'm leaning towards variant<uint64_t, int64_t, double, std::string>, with the same rules for integer conversion as value.