Author Topic: [DEV] - (DEPRECATED) Locus Data API (BETA)  (Read 18295 times)

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [DEV] - Locus Data API (BETA)
« Reply #45 on: March 23, 2012, 14:32:03 »
hi, simple way :) - try loc.set ... Altitude, Bearing, Speed, Time (as long in millisecs since 1.1.1970)

these values will be then displayed at point info screen in Locus. And auto-refresh? Hmm you may autorefresh these points by your own by sending PointsData object with same name. This will overwrite previous points in Locus memory
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Sputnik

  • More than Newbie
  • *
  • Posts: 16
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #46 on: March 23, 2012, 15:04:08 »
Thanks Menion

Thats a great help. Took a little while to figure out that the time is Milliseconds (Like you said !) and not unixtime like I was doing.
Very happy now. Thanks for the API. Love this software  :D
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline Sputnik

  • More than Newbie
  • *
  • Posts: 16
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #47 on: March 25, 2012, 17:51:33 »
Hi Menion,

Thanks your api is working beautifully. I have one little problem though.  When I import my points, it is as if they arrive in locus at the wrong zoom level.  And initially they are in the wrong position. When I zoom in or out they then jump to the correct location. I was hoping you might have a suggestion for me.

Many thanks once again.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [DEV] - Locus Data API (BETA)
« Reply #48 on: March 26, 2012, 09:11:22 »
Hi,
  this was issue in Locus. Fixed now ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Sputnik

  • More than Newbie
  • *
  • Posts: 16
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #49 on: March 26, 2012, 11:04:15 »
Fantastic,

I guess this will be available in the next update ?

Thanks...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [DEV] - Locus Data API (BETA)
« Reply #50 on: March 26, 2012, 11:14:00 »
exactly. tomorrow probably
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Sputnik

  • More than Newbie
  • *
  • Posts: 16
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #51 on: April 04, 2012, 16:18:06 »
Hi Menion,

I think that problem might still be present. I noticed on a couple of occasions that the points appeared in the wrong position. I loaded the markers while viewing a zoomed in map of my location (200km from where the markers were supposed to appear). The markers showed up in my view (200km error) when I zoom in or out they then jump to their correct position.

Hope that makes sense.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [DEV] - Locus Data API (BETA)
« Reply #52 on: April 04, 2012, 16:30:11 »
hmm still really? .. do you really test in on last version? ok fine, may you describe me which function you use and some short step-by-step to achieve this issue also on my phone? Thanks
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline LunaSela

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #53 on: April 21, 2012, 20:24:26 »
Hi,

what is the actual license of Locus API?

The license information on Google Code says LGPL, but the comment headers in code itself in the repository state GPL.

IMHO both are not suitable for use in non-GPL apps / extensions as AFAIK you cannot easily relink code on Android. A user (not only the App developer) has to be able to modify the Locus API lib and relink the modified version to an app if he wishes, doesn't he?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9914
  • Thanked: 51 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [DEV] - Locus Data API (BETA)
« Reply #54 on: April 21, 2012, 20:39:10 »
ah sorry. I changed license from GPL to LGPL and forget to change headers also.

Anyway why LGPL is not suitable? LGPL just say that you may use it in non-gpl as you want, it's not a problem. Only a changes have to be reflected back to code owner. In this case it's logical. Changing Locus API without reflection to Locus itself don't have much sense.

You just cannot simply change way how Locus communicate over API  with your application without changes in Locus itself, so LGPL make sense here.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline LunaSela

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [DEV] - Locus Data API (BETA)
« Reply #55 on: April 24, 2012, 20:32:22 »
The LGPL requires that anybody who receives the software with a LGPL library in it to be able to change the LGPL library and link it with the application.

Example

1. Mr. Somebody downloads and uses a fictional LocosFoo.apk extension app (not open-sourced)
2. LocusFoo.apk includes Locus data library (LGPL licensed)
3. Mr. Somebody changes the Locus data library (he has access to the sources) - lets say he changes it to swap latitude and longitude before passing it to Locus
4. Mr. Somebody MUST be able to link LocosFoo.apk against the modified library so that LocusFoo.apk runs with the modified version and swaps latitude and longitude when passing data to Locus

In C++ world, this is usually done by shared library linking, the shared library could easily be exchanged. Alternatively one can ship
the non-linked object files and the user can link it against the executable.

In pure Java world, one could unpack the .jar file and exchange the .class files. (when the .jar is not signed)

In Android world is starts to get complicated. You have to open the .apk and the .dex to get the .class files again. Then you have to pack it all together and sign it with your own private key. Before reinstalling the modified version, you have to delete the original .apk as the public key / certificate changed and all stored data of the .apk is lost. I am not sure if that is still ok with LGPL.

Adding an exception like in GNU Classpath http://http://www.gnu.org/software/classpath/license.html might work - or even a more liberal license like the 2 clause BSD license.

Modifing the library itself might be no problem as long as the interface to Locus does not change.But you are correct - most changes do not make sense without changing Locus too. But if the developer does that in an incompatible way, he is simply asking for trouble - and he can do that anyway even with pure GPL
« Last Edit: January 01, 1970, 01:00:00 by Guest »