How to pass on the lat-log data from the device using APIs

Hi,

How can we pass lat-log data from the device using APIs to be shown on the dashboard?

Hi,
This requires you to call an AiAgent API from the device end . The API is /api/aiagent/v1/geolocation . The method is POST . The body is

{
	"location": {
		"lat": 12.23232323,
		"lng": 77.23232323
	}
}

Ref : Swagger UI

1 Like

A lot of this is all new to me, but trying to figure it out. The documentation doesn’t seem to be working for the AiAgent; Failed to load API definition.

What is the URL that goes with getting the location updated?

2021/05/12 16:49:56 Post https://api.aikaan.io/api/aiagent/v1/geolocation: dial tcp 34.93.75.246:443: i/o timeout
exit status 1

Hi @glennmiles ,

There was a small glitch in the file. It is updated now. Kindly go ahead and try again. Sorry for inconvenience

Thanks
C

Hi Glenn,

One more thing, the API “/api/aiagent/v1/geolocation” is not working as expected because of a bug, which is fixed and will be released soon. Apologies for the inconvenience, we will update you once it’s released.