jeff yen

4Mar/097

GMap GPS Link

Update: Because I'm a bored sucker, I went back in and added support for multiple GPS coordinate sets. Now you can add any number of links you like, and they should work. The only caveat is, the plugin is kinda dumb, so it'll just hack away at anything that has two colons side-by-side and try to turn it into a link. So yeah, I guess look out for that.

:gps:And here's proof you can now do more than one link in a post. Gee, I wonder who lives in that house?::38.920863601444516:: -77.06569075584412:gps:

-------------------------------------------------

All right, well, I wrote a plugin for WordPress. I'm officially a big dork. More so, I mean.

I was looking around for a simple way to post my location on Google Maps from my GPS-enabled handheld to WordPress, and I couldn't find any simple plugins that had that functionality.

So I wrote a simple string replacement plugin, with a standard of code that would probably make any programmer worth the name pass out in his own sick.

You'll install and activate it just like any other WP plugin, then type the appropriately formatted string (I can't give the format here, since the plugin's activated on this site and it'll just do wacky stuff with the page). Check the plugin page for proper instructions.

It will replace your string with a link to a Google map (in _blank) of those coordinates at zoom level 14. I guess I could add more features later, which is why it's at v0.1. It should also only accept one set of coordinates; you can put in all you want, but it'll only see the first one.

:gps:And this is where I was earlier today, whee.::32.970705 ::-116.955461:gps:

Download.

Comments (7) Trackbacks (0)
  1. Hm. After writing and posting this, I found WP Geo, which kinda does the same thing except it’s unspeakably more advanced and feature-rich.

    I think it depends on the use of the WP admin frontend though, which isn’t really practical on my handheld. Pretty sweet plugin, though.

  2. influential blogger from the blogosphere seeking mindless writer.

  3. hi
    I like your plugin, but can I use it more than once by post ?

    • @v1dz: Haha, that’s awesome! Too bad it was just me cleaning up the readme.

      @yann: Unfortunately, there’s no provision in it yet to use it more than once per post. It shouldn’t be too hard to add… oh well, I have a lot of free time lately; I’ll take another look at it today.

  4. Great plugin!!
    Yeppers you created a WordPress milestone with this plugin.

    The WordPress plugins subversion repository received it’s 100000 check-in that was your plugin!:D

    http://westi.wordpress.com/2009/03/06/wordpress-plugins-milestone/

  5. Jeff – can you get in touch with me via my blog? I’d like to send you something.

  6. thanks for your work

    may the force be with you


Leave a comment

(required)

No trackbacks yet.