-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Locations #52
Comments
A Thing can only have 1 real-world location. Therefore, if you add a new Location to a Thing, the old location is automatically removed. |
Your test2 JSON is not valid. |
That JSON looks fine to me. Locations is an array, with two objects in it. |
Thanks a lot. The problem is fixed. |
Hi, Thanks for answering. |
Hmm, it seems it fetches the first Location it finds in the database. If that happens to be one of the non-geoJSON Locations, it'll fail. Which error message do you get? |
Ok, that's the client side error, do you happen to have the server-side exception from the server logs? |
It should work in the master branch now. |
Can you add an orderby to that query, to make sure it isn't somewhere else in the result set? Without an explicit orderby you never know which oder PostgreSQL gives you the results. |
Oh, I found it when I orderby "@iot.id". Thanks a lot !! |
Hello,
I try to connect several Locations to one Thing through HTTP, however, the second location keep overwrite the first one and make this Thing's Location remain one location.
Did anyone occur same problem or solve it?
Any help will be appreciated. Thanks a lot.
The text was updated successfully, but these errors were encountered: