EasyGeo
Adds simplest geocoding features to WP posts (description, lat, long). Adds nothing to the front-end, but has tools for you to do so in your themes.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 5355 days ago
Is EasyGeo abandoned?
Possibly abandoned (last update 5355 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This plugin is extremely simple, and intended for someone who wants to add geocoding to their blog, but without the bloat of a big fat plugin. This lets you tag each post with a location (description, latitude, longitude) which can then be used in your custom theme.
This plugin also provides a feature to track of a single location not associated with any posts. This is useful in order to create a “Where Am I?” feature on your blog where you control the level of detail (just to share the city, rather than pluggin in foursquare data). This is especially nice if you’re running a travel blog or a website for some kind of tour.
Installation
- Upload
easygeo.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Use
EasyGeo :: getCoordinates($post->ID)to get the coordinates in tuple (description, lat, lon) - Or use
EasyGeo :: getCoordinatesString($post->ID)to get “lat,lon” andEasyGeo :: getLocationString($post->ID)to get the description - Use
EasyGeo :: getCurrentCoordinates()and getCurrent… to get the single location tracked from the dashboard
Frequently Asked Questions
How do I actually add a map to my template?
You can use the google static maps API to get a static image. Heres an example:
<?php if ( EasyGeo :: getCoordinates($post->ID) != null ) : ?>
<div>
<img src="http://maps.google.com/maps/api/staticmap?center=<?php echo EasyGeo::getCoordinatesString($post->ID); ?>&zoom=6&size=219x220&maptype=hybrid&markers=color:blue|<?php echo SimpleGeo::getCoordinatesString($post->ID); ?>&sensor=false" width="219" height="220" />
<span id="where_label"><?php echo SimpleGeo::getLocationString($singlepostid); ?></span>
</div>
Or you can use the regular API to get an interactive map. It’s all pretty straightforward.
What else does this plugin do?
Nothing. The point is that it’s dead simple, and easy to use in the backend. From this, you can build all kinds of crazy interactive map browsers for your blog and this plugin will just handle the tagging on the backend.
Enjoy!
Review feed
Changelog
1.0
- Initial Release
