{"id":22050,"date":"2013-02-15T01:09:09","date_gmt":"2013-02-15T01:09:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/nearby-map\/"},"modified":"2013-05-16T19:09:02","modified_gmt":"2013-05-16T19:09:02","slug":"nearby-map","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/nearby-map\/","author":7706864,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9.3","stable_tag":"0.9.3","tested":"3.5.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Nearby Map by Wabeo","header_author":"Willy Bahuaud","header_description":"","assets_banners_color":"102a32","last_updated":"2013-05-16 19:09:02","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=A4P2WCN4TZK26&lc=FR&item_name=Wabeo&item_number=3","header_plugin_uri":"http:\/\/nearbymap.wabeo.fr","header_author_uri":"http:\/\/wabeo.fr","rating":3.8,"author_block_rating":0,"active_installs":100,"downloads":5890,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":"2","5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"668393","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9.1","0.9.2","0.9.3"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"668161","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"669217","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"669218","resolution":"3","location":"assets"}},"screenshots":{"1":"View of the main map, during a route animation","2":"Some example of custom map styles","3":"View of a place block information"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[45344,27773,4595,2909,45343],"plugin_category":[49],"plugin_contributors":[80157],"plugin_business_model":[],"class_list":["post-22050","plugin","type-plugin","status-publish","hentry","plugin_tags-around","plugin_tags-geolocalization","plugin_tags-leaflet","plugin_tags-map","plugin_tags-nearby-map","plugin_category-maps-and-location","plugin_contributors-willybahuaud","plugin_committers-juliobox","plugin_committers-willybahuaud"],"banners":{"banner":"https:\/\/ps.w.org\/nearby-map\/assets\/banner-772x250.jpg?rev=668393","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/nearby-map_102a32.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/nearby-map\/assets\/screenshot-1.jpg?rev=668161","caption":"View of the main map, during a route animation"},{"src":"https:\/\/ps.w.org\/nearby-map\/assets\/screenshot-2.jpg?rev=669217","caption":"Some example of custom map styles"},{"src":"https:\/\/ps.w.org\/nearby-map\/assets\/screenshot-3.jpg?rev=669218","caption":"View of a place block information"}],"raw_content":"<!--section=description-->\n<p>Nearby Map allow you to easily insert a Map into your content. With it, you can show a main location and every interesting places around it.<\/p>\n\n<p>The map is dynamic. You can show to users the best way to travel from your main location to any other one.\nNearby Map also includes SEO optimisation with Schema.org markup.<\/p>\n\n<h4>Should I use Nearby Map ?<\/h4>\n\n<p>Here's a few example to show you what you can do with Nearby Map<\/p>\n\n<ul>\n<li>You're planning an event, and you want to show every location involved in it (for example a wedding or a trip)<\/li>\n<li>You own a camping or an hotel, and you want to show to every customer what's around it<\/li>\n<li>You are planning a seminar, and you want to give to everyone informations about restaurants and hotels for this event.<\/li>\n<li>And everything else involving a map of course...<\/li>\n<\/ul>\n\n<h4>Features<\/h4>\n\n<ol>\n<li>It creates a custom post type to handle every location, with an easy metabox to enter every information about them.<\/li>\n<li>It creates a nice map with custom markers and informations.<\/li>\n<li>It adds a full interactive list of each place with more information for users.<\/li>\n<li>Users have access to a navigation system betwen every location on the map.<\/li>\n<li>for each place, Nearby Map creates a new page with more detail and geographical information<\/li>\n<\/ol>\n\n<h4>How does Nearby Map works ?<\/h4>\n\n<p>Nearby Map does not use Google Map, beacause there is other good librairies :<\/p>\n\n<ul>\n<li><a href=\"http:\/\/leafletjs.com\/\">Leaflet<\/a>, in order to create the map and every Location (under <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Licence_BSD\">BSD open-source licence<\/a>)<\/li>\n<li><a href=\"http:\/\/www.openstreetmap.org\/\">OpenStreetMap<\/a>, to gather geograhpical information (under <a href=\"http:\/\/opendatacommons.org\/licenses\/odbl\/\">Open Data Commons Open Database License<\/a>)<\/li>\n<li><a href=\"http:\/\/cloudmade.com\/\">CloudMade<\/a> to retrieve GPS coordinates, and in order to generate every route from one location to another <a href=\"http:\/\/creativecommons.org\/licenses\/by\/2.0\/\">Creative Commons Attribution 2.0 License<\/a><\/li>\n<li>An <a href=\"http:\/\/fontello.com\">icon font<\/a> for every custom Markers (<a href=\"https:\/\/github.com\/mapbox\/maki\/blob\/gh-pages\/LICENSE.txt\">maki, by MapBox (BSD)<\/a>,<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\">Typicons, by Stephen Hutchings (CC BY-SA 3.0)<\/a> and <a href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\">Font Awesome, by Dave Gandy (CC BY 3.0)<\/a>)<\/li>\n<li>For Pins Maps , i've drawn my inspiration from <a href=\"http:\/\/medialoot.com\/item\/free-vector-map-location-pins\/\">those icons<\/a><\/li>\n<\/ul>\n\n<h4>Nearby Map is optimised for SEO<\/h4>\n\n<p>When a map is displayed, structured data from <a href=\"http:\/\/schema.org\/\">schema.org<\/a> is included for each location.<\/p>\n\n<h4>An adaptable plugin<\/h4>\n\n<p>Nearby Map has been created with custom hooks and filter : you can override every data and action to improve or adapt the plugin to suit your needs. <a href=\"http:\/\/wordpress.org\/extend\/plugins\/nearby-map\/faq\/\">FAQ<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin's folder into <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use <code>[maps]<\/code> into your content area, or use <code>&lt;?php echo nbm_render_map(); ?&gt;<\/code> into one template file to render the map<\/li>\n<li>Use <code>[place]<\/code> into your place content area, or use <code>&lt;?php echo nbm_place_information(); ?&gt;<\/code> into your single place (or specified CPT) template file to show information about current place<\/li>\n<li>For working correctly, you need to enter at least 1 place, and you also need to define 1 of places as the central place<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How can I use an existing post type, instead of let the plugin creating one ?<\/dt>\n<dd><p>Using <em>nbm_post_type<\/em>. You just have to modify then paste this following code into your functions.php theme file.\n    <\/p><\/dd>\n<dt>I want to change map style, is it possible ?<\/dt>\n<dd><p>Tired of the same old maps? CloudMade give ability for users to <a href=\"http:\/\/maps.cloudmade.com\/editor\">use custom map or build thier own<\/a>.\nAfter choosing, you juste have to precise the id of your custom style into your functions.php, by the way of the filter cloudmade_style.<\/p>\n\n<pre><code>&lt;?php add_filter( 'cloudmade_style', 'my_custom_style' );\nfunction my_custom_style(){\n    \/\/If I want to use \"midnight Comander coloration\" style\n    return 999;\n} ?&gt;\n<\/code><\/pre>\n\n<p>Loading time tiles is still faster if you opt for a custom style proposed by CloudMade (8 possibilities).<\/p>\n\n<p>You can see some examples at <a href=\"http:\/\/wordpress.org\/extend\/plugins\/nearby-map\/screenshots\/\">screenshots section<\/a>.<\/p><\/dd>\n<dt>Is there a way to use another tile provider than CloudMade ?<\/dt>\n<dd><p>Yes, there are other tile provider than CloudMade (used by default in this plugin). To chose for another, simply paste this function into your functions.php.<\/p>\n\n<pre><code>&lt;?php add_filter( 'maps_datas', 'function_for_alter' );\nfunction function_for_alter( $maps_datas ){\n    $maps_datas['tiles'] = \"http:\/\/{s}.mqcdn.com\/tiles\/1.0.0\/map\/{z}\/{x}\/{y}.jpg\";\n    $maps_datas['attribution'] = \"attribution I want\/use to show\";\n    $maps_datas['subdomains'] = array('otile1','otile2','otile3','otile4');\n    return $maps_datas;\n} ?&gt;\n<\/code><\/pre>\n\n<p>I tested some tiles providers, and I confirm they work with Nearby Map :<\/p>\n\n<ul>\n<li>mapquest (this one need to precise subdomains) :\n\n<ul>\n<li>http:\/\/otile1.mqcdn.com\/tiles\/1.0.0\/map\/{z}\/{x}\/{y}.jpg<\/li>\n<li>http:\/\/otile1.mqcdn.com\/tiles\/1.0.0\/sat\/{z}\/{x}\/{y}.jpg \n\n<ul>\n<li>this one dont deliver tiles for high zoom level (except for USA)<\/li>\n<\/ul><\/li>\n<\/ul><\/li>\n<li>openstreetmap :\n\n<ul>\n<li>http:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png<\/li>\n<li>http:\/\/{s}.tile.osm.org\/{z}\/{x}\/{y}.png<\/li>\n<\/ul><\/li>\n<li>mapbox\n\n<ul>\n<li>http:\/\/{s}.tiles.mapbox.com\/v3\/{user}.{map}\/{z}\/{x}\/{y}.png<\/li>\n<\/ul><\/li>\n<li>OpenCycleMap\n\n<ul>\n<li>http:\/\/{s}.tile.opencyclemap.org\/cycle\/{z}\/{x}\/{y}.png<\/li>\n<\/ul><\/li>\n<li>Stamen\n\n<ul>\n<li>http:\/\/{s}.tile.stamen.com\/toner\/{z}\/{x}\/{y}.png<\/li>\n<\/ul><\/li>\n<li>ESRI\n\n<ul>\n<li>http:\/\/server.arcgisonline.com\/ArcGIS\/rest\/services\/World_Street_Map\/MapServer\/tile\/{z}\/{y}\/{x}.png<\/li>\n<li>http:\/\/server.arcgisonline.com\/ArcGIS\/rest\/services\/World_Shaded_Relief\/MapServer\/tile\/{z}\/{y}\/{x}.png<\/li>\n<\/ul><\/li>\n<li>Open Weather Map\n\n<ul>\n<li>http:\/\/{s}.tile.openweathermap.org\/map\/clouds\/{z}\/{x}\/{y}.png<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>You can also modify many other options using <em>maps_datas<\/em> filter<\/p><\/dd>\n<dt>Can I change default post type properties ?<\/dt>\n<dd><p>Yes, doing this into your functions.php theme file.\n<em>places_args<\/em> filter \n    <\/p><\/dd>\n<dt>Locate places with Nearby Map seem to be imprecise, can I improve precision of returned coordinates ?<\/dt>\n<dd><p>Use the filter namned <em>nbm_try_to_find_with_openstreetmap<\/em>. Just paste this :\n    <\/p><\/dd>\n<dt>I already have a CloudMade API key, can I use it ?<\/dt>\n<dd><p>You can use yours, using <em>cloudmade_key<\/em> filter hook, into your functions.php\n    <\/p><\/dd>\n<dt>I dont want to see a list of all place behind the map, how can I remove it ?<\/dt>\n<dd><p>You can return false on <em>nbm_need_more<\/em> filter hook :\n    <\/p><\/dd>\n<dt>I dont need route system also, how can I remove it ?<\/dt>\n<dd><p>You can return false on <em>nbm_need_route<\/em> filter hook :\n    <\/p><\/dd>\n<dt>I dont have single page for Place, so I want to remove the link. Can I do ?<\/dt>\n<dd><p>Just return false on <em>nbm_places_link<\/em> filter hook :\n    <\/p><\/dd>\n<dt>I want to proceed some change on the place query<\/dt>\n<dd><p>It's easy to rewrite all the query with <em>markers_querys<\/em>.\n     'type_of_place',\n                'field' =&gt; 'id',\n                'term' =&gt; 56\n            )\n        );\n        return $m;\n    } ?&gt;<\/p><\/dd>\n<dt>I want to alter something in HTML returned for all places<\/dt>\n<dd><p>There is <em>nbm_map<\/em> for that...\n    <\/p><\/dd>\n<dt>I want to alter something in HTML returned datas of single place information<\/dt>\n<dd><p>Use <em>nbm_place_information<\/em> filter...\n    <\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.3<\/h4>\n\n<ul>\n<li>Solve a bug on post's permalinks which include \"place\" shortcode<\/li>\n<\/ul>\n\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>Different speed for route markers (bicyle, foot or car)<\/li>\n<li>Solve a minor bug when you donesn't want a central place<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Deliver a new filter hook for customize map styles (to choose from http:\/\/maps.cloudmade.com\/editor)<\/li>\n<li>Solve a bug into <em>cloudmade_key<\/em> function<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Allow you to insert a map to show activities, places and services around a given geographical point.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22050"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/willybahuaud"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22050"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22050"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22050"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22050"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22050"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}