Jump to content

Recommended Posts

Posted (edited)

Hey guys you know that location finder that's in the Iphone and the Ipod Touch well know you can use it with almost any platform.

This is a cool plugin for firefox to show how it works: http://loki.com/

They also have a cool and simple web api for it if you have it installed

If you want to write your own script for this you need the sdk from skyhook found here: http://www.skyhookwireless.com/developers/sdk.php

This is what I need help with. The docs show example using and include but they supply a dll. I couldn't find much info about the dll calls and I'm really bad at dll calling to.

If someone can get me started or wants to help make a nice plugin/UDF let me know, any comments and questions are welcome.

Here is the SDK/DLL/Docs: http://cyberzerocool.com/wpsapi-2.5.0.02-winxp.zip

You need authentication, you could use my user name and realm:

username: cyberzerocool

realm: cyberzerocool.com

Here's one of their examples:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "wpsapi.h"

int main(int argc, char *argv[])
{
    WPS_SimpleAuthentication authentication;
    authentication.username = argv[1];
    authentication.realm = argv[2];

    WPS_Location* location;
    int rc = WPS_location(&authentication, WPS_NO_STREET_ADDRESS_LOOKUP, &location);

  if (rc == WPS_OK)
    printf("%f, %f\n", location->latitude, location->longitude);

    WPS_free_location(location);

    return 0;
}
Edited by CyberZeroCool
Check out ConsultingJoe.com
Posted

Who wrote the dll? skyhook? I LOVE the concept. I wish the source was in au3 so I could implement it without dlls though...

Yes it was included with the sdk. There is an include file with it too but I don't know how to use it. It is a .h file extention.

You can get the full sdk and documentation on their site: http://www.skyhookwireless.com/developers/sdk.php

Check out ConsultingJoe.com

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...