Its been awhile since I have last posted, but just wanted to drop an update in on what I have been working on lately. I’ve turned down the freelance and have been working on my own projects; my latest project is a wordpress plugin for geocoding. I searched high and low on Google for a wordpress plugin which would take an address, geocode it and return the long/lat.

Dont’ get me wrong, Ive found many, many great geocoding plugins but most of them store the data in an extra table and/or have functions setup to display maps, etc. I dont need all those bells and whistles, just a cut and dry solution. Once the values have been stored in WordPress as custom fields, I will be able to grab the values and display single maps and/or maps with each location plotted!

I have a few requirements:

  • Need to grab data from Custom Fields and store returned values in Custom Fields
  • Use the Google Maps Geocoding Service (just a personal preference)
  • If a value already exists, the plugin will not proceed with Geocoding – the free version of Google Maps Geocoding is limited to 10k requests a day. I dont think I would hit that, but no use in wasting API calls.

The requirements are simple and I have already got the first bit working, which grabs my custom field “address” and sends a request to Google Maps geocoder method and returns a long/lat which are then stored back into WP as custom fields! Perfect!

I’m currently working on adding a custom administration panel, which will allow me/you to:

  • Set a google maps API key (required)
  • Set the custom field names that you wish to use to store long/lat values
  • Choose custom field where the address value is stored

I’m hoping to finish this project in a few weeks and will post my plugin shortly thereafter! I hope its a winner and other people find it useful.

Categories: Open SourceWordPress

3 thoughts on “Building a WordPress Plugin for Geocoding”

ratesConverter · May 22, 2011 at 3:58 am

Does anyone have an experience of running this plugin but not from its main page?
I want to run a search from another of my pages but not sure how to use the capabilities of this plugin.
Would appreciate some help with that.

Thanks,

    jrutter · May 23, 2011 at 8:14 pm

    Hi there,

    I have added the plugin in my latest post. Have you installed it and what are you trying to do?

    Jake

RomeLuv · June 23, 2011 at 6:57 pm

sorry to discover we've been working on the same concept parallely – anyway an opportunity to learn from each other's approach.
http://www.romeluv.com/maps-plugin-testrun/

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

GruntJS

My First GruntJS Plugin: Bust My Cache

GruntJS is a JavaScript Task runner that has been around for about 2+ year, at least as far as I can remember. I started playing around with GruntJS which uses Node.js about a year ago, Read more…

HTML5

HTML5 Local Storage and Web Personalization

I have just finished doing some research on using HTML5 Local storage instead of Cookies for website personalization and have come to the conclusion that everyone should be using HTML5 local storage in place of Read more…

eCommerce

How to implement Bronto Email JavaScript Conversion tracking in Google Tag Manager

This tutorial will show you how to setup Bronto Advanced JavaScript Conversion tracking using Google Tag Manager. Bronto Advanced JavaScript tracking gives you more visibility to all of the products that customers are purchasing, then Read more…