AaltoAsia / O-MI

Internet of Things data server implementing Open Messaging Interface and Open Data Format
BSD 4-Clause "Original" or "Old" License
22 stars 13 forks source link

O-MI write corrupts findParking result, search radius not working correctly #12

Closed fl-ma closed 6 years ago

fl-ma commented 6 years ago

When adding the attached example to an O-MI node, findParking does not work any longer. Even queries that worked before adding the data (which concern a totally different area) do not return results any more. local example second.txt

fl-ma commented 6 years ago

local example second v2.txt

seems to work with this example, allthough I don't understand why findparking is accepting any search radius but seems to be unable to find two chargers at the same time when they are too far apart.

TK009 commented 6 years ago

We couldn't reproduce any corruption, but found that findParking distance parameter must have double value type: <value type="xs:double">... to work correctly. Otherwise it uses the default of one kilometer.

We fixed that by also accepting integers and number strings that can be converted to double.

TK009 commented 6 years ago

Reopen this issue if there are still problems.