bsuite_geocode Plugin For WordPress

I’m a big fan of the WP Geo plugin, but I want more.

My biggest complaint is that I want to insert coordinates using Google Maps or MultiMap URLs, rather than insert them in the modified story editor. So I wrote a bit of code that reads through the URLs in a post, finds the “maps.google” or “multimap.com” URLs, fishes the latitude and longitude out of them, and adds some geocoding tags to the body of the post.

Take a look at how it works with these posts in my archive…

You should see one or more blocks of links like the following (from my Osceola Weekend post):

geolocation: geo:lat=44.006336, geo:lon=-71.547260, geotagged, geolocation:44.006336,-71.547260 geobloggers

Go ahead and click the “geobloggers” link. I could have added these links using the old Geo plugin, but I still would have had to insert the coordinates separately. Actually, that brings up a good point: my code also inserts post metadata in the same format the Geo plugin uses, so I can take advantage of all the good functions it has, like the one that inserts the “<meta name=“ICBM” content=“44.006336, -71.547260” />” tag in the header of this post (caveat: I had to disable the add_action code in Geo that feeds the postmeta table, as it was conflicting my code).

I’m releasing this now, to start some public discussion, but please recognize that it’s a very early beta.

Download: bsuite_geocode.zip
Install: place unzipped “bsuite_geocode.php” file in your wp-content/plugins folder and activate it via the WP control panel. See the WordPress Codex for more detail.
Use: write posts as usual, adding links to Google Maps or MultiMap as appropriate. Links to those sites that have latitude and longitude components will be used to geocode the post.

Example of a working URL:

http://maps.google.com/maps?ll=19.355507,-155.072365&spn=.191780,.318003&t=k&hl=en

Example of a URL that won’t work (note how there’s no “ll=”):

http://maps.google.com/maps?q=decker+canyon+rd,+malibu+california&spn=0.019857,0.039750&hl=en

I’ve got a lot of features and uses in mind, so consider this only a start. Please post bugs and suggestions in the comments.

Also, see these previous posts on geolocating the news or geolocating everything or just search the archives to understand why I’m so excited about things like this.

tags: , , , , , , , , , , , , , , , , , , , , , , ,

8 Comments

  1. [...] p.uginssusing bsuite_geocode.php form http://maisonbisson.com/blog/post/10846/ [...]

  2. [...] Here’s a nice geo plugin that makes use of Google Maps. From the author: [...]

  3. Nice blog.I like this.
    Nick
    http://www.yahoo.com

  4. I am interested in gps information

  5. [...] I’ve been amazed at the quality and abilities of the google maps and have wanted to incorporate them in my site for some time. I have been searching for and have yet to find a really good plugin that allows you to map multiple points on one map, assign those points with some data about them, and have multiple maps per page. After looking at plugins like ItHappenedHere! by Kentucky Fried Orphan and bsuite_geocode Plugin For WordPress, I decided to write my own. Well, adapt on for my needs would be more like it. [...]

  6. [...] the post excerpts, “Geo” was used to enter the GPS coordinates into the “wp_postmeta” table, and “bsuite-geocode” was used to search the post text for links to Google Maps, strip out the GPS coordinates and enter [...]

  7. [...] people can cling to a belief… One of the other reasons to make this post was to try out a geocode plugin I have recently installed. Let me know what you [...]

  8. Good idea. I implemented it i my geo-plugin, called wikimap. let me now what you think!


Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

ghostly car adds (74) - plugin (48) - yahoo earth com (33) - wordpress geo plugin (33) - goole maps com (31) - wordpress gps plugin (29) - wordpress geocode (27) - FOTO FREE (27) - foto (23) - wordpress geolocation plugin (16) - wordpress google earth plugin (13) - GEO HEARTH (12) - wordpress google map (12) - gogle foto fashion (12) - free foto (12) - wordpress map plugin (10) - 2591537302490 (10) - video plugin for wordpress (10) - 2809945533878 (10) - wordpress GPS (9) - wordpress gis plugin (9) - scary car adds (8) - powered by wordpress (8) - wordpress google map plugin (8) - word press yahoo map plugin (8) - free foto com (8) - geocode wordpress (8) - wordpress google maps plugin (7) - google maps wordpress (7) - foto eart (7) - s e x foto (7) - goole maps (7) - multimap plugin (6) - geo plugin (6) - geocoding wordpress (6) - geocode wordpress blog (6) - eart fotos (6) - Google earth wordpress plugin (6) - wordpress plugins geolocation (6) - http yahoo earth com (6) - bsuite geocode zip (6) - yahoo world (6) - 3723918381582 (6) - foto google com (6) - wordpress geocoding plugin (6) - wordpress geocoding (5) -