{"id":12966,"date":"2011-05-03T01:57:57","date_gmt":"2011-05-03T01:57:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/easygeo\/"},"modified":"2011-05-03T01:57:57","modified_gmt":"2011-05-03T01:57:57","slug":"easygeo","status":"publish","type":"plugin","link":"https:\/\/ceb.wordpress.org\/plugins\/easygeo\/","author":6215279,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"2.1","requires":"2.0.2","requires_php":"","requires_plugins":"","header_name":"EasyGeo","header_author":"Theo Ephraim","header_description":"","assets_banners_color":"","last_updated":"2011-05-03 01:57:57","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/theoephraim.com\/","header_plugin_uri":"http:\/\/theoephraim.com\/projects\/easygeo\/","header_author_uri":"http:\/\/theoephraim.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2568,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539234","resolution":"1","location":"plugin"}},"screenshots":{"1":"The extra meta-box that appears while editing posts. A similar box appears on the dashboard if you choose to enable the \"Where Am I\" tracker."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2591,3528,6110,25216,25217],"plugin_category":[49],"plugin_contributors":[91786],"plugin_business_model":[],"class_list":["post-12966","plugin","type-plugin","status-publish","hentry","plugin_tags-geo","plugin_tags-geocode","plugin_tags-geocoding","plugin_tags-lat","plugin_tags-lon","plugin_category-maps-and-location","plugin_contributors-theozero","plugin_committers-theozero"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/easygeo.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/easygeo\/trunk\/screenshot-1.png?rev=1539234","caption":"The extra meta-box that appears while editing posts. A similar box appears on the dashboard if you choose to enable the \"Where Am I\" tracker."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>easygeo.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use <code>EasyGeo :: getCoordinates($post-&gt;ID)<\/code> to get the coordinates in tuple (description, lat, lon)<\/li>\n<li>Or use <code>EasyGeo :: getCoordinatesString($post-&gt;ID)<\/code> to get \"lat,lon\" and <code>EasyGeo :: getLocationString($post-&gt;ID)<\/code> to get the description<\/li>\n<li>Use <code>EasyGeo :: getCurrentCoordinates()<\/code> and getCurrent... to get the single location tracked from the dashboard<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I actually add a map to my template?<\/dt>\n<dd><p>You can use the google static maps API to get a static image. Heres an example:<\/p>\n\n<pre><code>&lt;?php if ( EasyGeo :: getCoordinates($post-&gt;ID) != null ) : ?&gt;\n&lt;div&gt;\n    &lt;img src=\"http:\/\/maps.google.com\/maps\/api\/staticmap?center=&lt;?php echo EasyGeo::getCoordinatesString($post-&gt;ID); ?&gt;&amp;zoom=6&amp;size=219x220&amp;maptype=hybrid&amp;markers=color:blue|&lt;?php echo SimpleGeo::getCoordinatesString($post-&gt;ID); ?&gt;&amp;sensor=false\" width=\"219\" height=\"220\" \/&gt;\n    &lt;span id=\"where_label\"&gt;&lt;?php echo SimpleGeo::getLocationString($singlepostid); ?&gt;&lt;\/span&gt;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n<p>Or you can use the regular API to get an interactive map. It's all pretty straightforward.<\/p><\/dd>\n<dt>What else does this plugin do?<\/dt>\n<dd><p>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.<\/p>\n\n<p><em>Enjoy!<\/em><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"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.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12966"}],"author":[{"embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/theozero"}],"wp:attachment":[{"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12966"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12966"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12966"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12966"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12966"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ceb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}