Posts Tagged: latitude


3
Dec 08

Wordpress – Google Maps Geocoder

Download WPGMG

Okay, I couldn’t find a plugin that would easily Geocode my posts. So here it is, plugin # 3,181 on Wordpress.org, and one very dear to my heart. WPGMG Why, GeoCode to custom fields? 1. Google only allows 10,000 geocodes per URL per day. 2. Calculate distances based on lattitude and longitude. Anyhow, this is version 0.1. Simply replaces the XXXXXXXX’s with your Google Maps API key and your ready to role. I guess you want to know how to make it work? Just released, WPGMG ver 0.2. I’ve noticed people are actually downloading the plugin from Wordpress.org, so I added a settings menu to make it easier to input your Google Maps API Key, and enable/disable the plugin. WPGMG looks for four custom field keys: street, city,state, zip WPGMG queries Google Maps API for the latitude and longitude, from that it will create 2 new custom fields for that post: lat & lng ‘lat’ obviously being Latitude and ‘lng’ being Longitude. You will need a Google Maps API Key, you can get here: http://code.google.com/apis/maps/signup.html As you can see the code is very simple, and easily manipulated. It’s licensed under DWIWYW (Do with it what you will). I hope this helps you as much as it could have helped me if someone would have done it first. Please feel free to leave any suggestions or complaints, a donation would be greatly appreciated by my wife.

Download WPGMG


New OSM Plugin support WPGMG: Shortcode : [osm_map import="WPGMG"] Render map: [osm_map marker_all_posts=*"WPGMG"*]* Configurable – Check it out:

OSM Pluginpage:
http://www.Fotomobil.at/wp-osm-plugin

OSM & WPGMG:
http://www.Fotomobil.at/wp-osm-plugin-how-to-import-data