1

little sample code?

Тема: little sample code?

Hi dear guys,

who can help me with a little sample code for the http api:

i need to find out which units are in each geofence.
so i need to have a a little sample code which

- log into the sdk
- scan all geofences
- show units in each geofence

anybody who can help me with that?

thanks
Wolf.

Politeness dictates it to write his name on a post
2

little sample code?

Re: little sample code?

Did you tried http://sdk.wialon.com/playground/ ?

At the dark side of telematics...
3

little sample code?

Re: little sample code?

Hi Shal,
yes, i tried but the "geofence" test is empty as there are no geofences in the sample accounts and i can not use my own sample account.
as i am not a developer i am not able to setup a webserver and develop this pages by myself.
but i will forward this playground url to our customer and he must try byhimself.

thanks
Wolf

Politeness dictates it to write his name on a post
4

little sample code?

Re: little sample code?

wwbusch aka Buwo пишет:

Hi Shal,
... and i can not use my own sample account.

In every playground sample you can find login code, something like

wialon.core.Session.getInstance().login("%USER%", "%PASSWORD%", "", function (code) { // login callback
  if (code){ msg(wialon.core.Errors.getErrorText(code)); return; } // exit if error code
  msg("Logged successfully"); // print login succeed message
  ...
});

You can change %USER% and %PASSWORD% to your demo account and press 'Test' button in upper right corner to aply changes. See attached image.

About sample code: i'll try to help you in a couple of days, havent time for it now sad

  • little sample code?
5

little sample code?

Re: little sample code?

Here's sample i promised last week.

Source: https://github.com/ashmigelski/units-inside
Demo: http://ashmigelski.github.io/units-inside

6

little sample code?

Re: little sample code?

Hi Shmi,

great and big thanks,
that was exactly what i was looking for.
I will forward it to our customer and hopefully he will be happy with Wialon.

Thanks again
Wolf.

Politeness dictates it to write his name on a post