strange accuracy

1 view
Skip to first unread message

glazou

unread,
Feb 10, 2009, 5:17:34 AM2/10/09
to Loki API
Hello. I am using loki in a xulrunner-based application, very
similarly to what the Mozilla Labs did for Firefox3 with Geode.

My current location is precisely 48.893076,2.07268 but loki answers
48,2 as if the double-float longitude and latitude were truncated to
integers...

Any idea what's going on ? Do I have a wrong version of loki.dylib or
Loki.xpt ?

Best,

Daniel Glazman

glazou

unread,
Feb 10, 2009, 9:16:41 AM2/10/09
to Loki API
Forgot to mention this is on Mac OS X reusing loki.dylib. I don't have
this problem on WinXP reusing loki.dll.

Daniel Glazman

Ryan Sarver

unread,
Feb 10, 2009, 9:47:50 AM2/10/09
to loki...@googlegroups.com
Daniel,

Im not entirely sure what is going wrong there. In Geode we used a
special XPT that they wrapped to make the location calls. If you want
to email me directly I can see if we can provide you that (or you can
grab it out of their XPI as long as you maintain the license agreement).

Try that out and let me know if you still have any problems.

Ryan

glazou

unread,
Feb 10, 2009, 10:47:39 AM2/10/09
to Loki API
Thanks Ryan, that'w what I already did, of course. I think the xpt is
probably the source of
the problem. Can you provide me with the corresponding IDLs so I can
rebuild a new xpt ?

I have checked that internally, the values are double floats.

Daniel Glazman

Ryan Sarver

unread,
Feb 10, 2009, 11:12:14 AM2/10/09
to loki...@googlegroups.com
Daniel, I'll look into it and get back to you...

Ryan Sarver

unread,
Feb 10, 2009, 11:30:05 AM2/10/09
to loki...@googlegroups.com
Daniel, attached is the Loki.idl. Let me know if this helps. Sounds
like an implementation or config issue though if you grabbed it right
from Geode...

Loki.idl

glazou

unread,
Feb 10, 2009, 1:38:54 PM2/10/09
to Loki API
Thanks a lot Ryan. Sending you a private email later today.

Daniel Glazman
Reply all
Reply to author
Forward
0 new messages