2OF1 · the depletionmode zineLinkedIn · X
← back to the issue

28 July 2010

LocateMe Wordpress plugin

Originally published on the old depletionmode / 2of1 blog (archived copy).

I've started coding a Wordpress plugin called 'LocateMe', the aim being more to learn about Wordpress plugin development than anything else. As of yesterday, I've got the plugin part working quite nicely (take a look at the sidebar). The plugin basically enables a widget to be shown in the sidebar. This widget displays a Google map of my current location and the geolocation data for my current location. I use the Google Maps V3 JavaScript API for the geolocation and mapping data. The data is updated with a simple HTTP GET to my blog in the following form: http://blog.2of1.org/?lat=&lon=&accuracy= So for example, the following tells LocateMe that I'm within 400 metres of latitude 14.5, longitude 31.2: http://blog.2of1.org/?lat=14.5&lon=31.2&accuracy=400 So how do I get this data? Well that's the next part of the project. I hope to code a simple service for my Symbian S60 phone that will use the Qt Mobility Location API to get my location and then perform the above GET request ov

I’ve started coding a WordPress plugin called ‘LocateMe’, the aim being more to learn about WordPress plugin development than anything else.

As of yesterday, I’ve got the plugin part working quite nicely (take a look at the sidebar).

The plugin basically enables a widget to be shown in the sidebar.
This widget displays a Google map of my current location and the geolocation data for my current location.
I use the Google Maps V3 JavaScript API for the geolocation and mapping data.

The data is updated with a simple HTTP GET to my blog in the following form:

listing text
http://blog.2of1.org/?lat=<lat>&lon=<lon>&accuracy=<accuracy>

So for example, the following tells LocateMe that I’m within 400 metres of latitude 14.5, longitude 31.2:

listing text
http://blog.2of1.org/?lat=14.5&lon=31.2&accuracy=400

So how do I get this data? Well that’s the next part of the project.
I hope to code a simple service for my Symbian S60 phone that will use the Qt Mobility Location API to get my location and then perform the above GET request over 3G every X minutes.

The wordpress plugin code is available from the locateme repository.

→ end of entry

2/1
@depletionmode
security research & systems engineering