google-maps-data-parameter-parser
google-maps-data-parameter-parser copied to clipboard
better type handling needed
We should properly validate types of elements. Currently only 'm' (multi-element, branch nodes) are properly parsed. Leaf nodes are done implicitly. https://mstickles.wordpress.com/2015/06/12/gmaps-urls-options/ lists:
- b: binary
- d: decimal
- e: enumerated
- i: integer
- j: date
- s: string
In addition, I have found:
- f: floating point value
Because we don't detect types, we currently overrun when the parameter has other data following it. (Also because I'm not sure of the correct terminating character syntax - is ';' always invalid inside the protocol buffer, or just for 'mv:', or what?)
This is illustrated by this url.