Reputation: 11
I referred to the document of IBM Watson IoT Map Insights (https://new-console.ng.bluemix.net/apidocs/123) and tried to use the queryEvent REST API as follows. But no event information was returned...
-Request-type:GET, url: https://automotive.internetofthings.ibmcloud.com/mapinsights/eventservice/event/query?tenant_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
-Return body: [] <--- No event information was returned.
Upvotes: 0
Views: 131
Reputation: 1
You need to specify the area information (min/max_longitude, min/max_latitude) with the tenant_id to the queryEvents API in order to get the correct result. That is, the area information parameters are mandatory. We will update the document in next release. Thank you.
For example: Request-type: GET https://automotive.internetofthings.ibmcloud.com/mapinsights/eventservice/event/query?tenant_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&min_logitude=xxx&min_latitude=xxx&max_longitude=xxx&max_latitude=xxxb
Upvotes: 0