SearchResponse's automaticRadius is wrong type
TateB opened this issue Β· comments
tate commented
Describe the bug π
Within the SearchResponse struct, the automaticRadius is set to a double, while the JSON response actually has it set to a string. Could be very easily fixed switching the double back to a string.
To Reproduce π
Steps to reproduce the behavior:
- Send a query with aroundLatLng or aroundLatLngViaIP enabled
- Parse query response through SearchResponse struct
- An error will occur, trying to convert automaticRadius String to the expected Double
Expected behavior π
The SearchResponse parses correctly without error.
Environment:
- OS: iOS
- Version 14.0
Vladislav Fitc commented
Hi @TateB ,
Thanks a lot for pointing this.
A fix will arrive soon π§