diff --git a/streetlevel/streetview/protobuf.py b/streetlevel/streetview/protobuf.py index 5cab87b..8943911 100644 --- a/streetlevel/streetview/protobuf.py +++ b/streetlevel/streetview/protobuf.py @@ -1,6 +1,6 @@ # Some code to deal with the URL-encoded protobuf Google uses in Maps. from enum import Enum - +from decimal import Decimal class ProtobufType(Enum): """ @@ -88,6 +88,8 @@ def _get_datatype_str(value): datatype = ProtobufType.INT elif isinstance(value, float): datatype = ProtobufType.DOUBLE + elif isinstance(value, Decimal): + datatype = ProtobufType.DOUBLE elif isinstance(value, dict): datatype = ProtobufType.MESSAGE else: