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.

Filed under: Everything, Geekery 7 Comments