{"id":783,"date":"2019-05-13T13:22:12","date_gmt":"2019-05-13T13:22:12","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs-v2\/?post_type=docs&#038;p=783"},"modified":"2019-05-13T15:05:11","modified_gmt":"2019-05-13T15:05:11","slug":"map-marker","status":"publish","type":"docs","link":"https:\/\/wpgeodirectory.com\/docs-v2\/api\/map-marker\/","title":{"rendered":"Map Marker"},"content":{"rendered":"<p><span class=\"bookmark-index\"><br \/>\n<a href=\"#intro\">Introduction<\/a><br \/>\n<a href=\"#endpoint\">Endpoints<\/a><br \/>\n<a href=\"#list-by-id\">ID<\/a><br \/>\n<\/span><\/p>\n<h3><a href=\"#intro\">Introduction<\/a><\/h3>\n<p>REST API End Points to access map markers data.<\/p>\n<h3><a href=\"#endpoint\">EndPoints<\/a><\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n<p><label class=\"label-get\">GET<\/label><\/p>\n<h6>wp-json\/geodir\/v2\/markers\/?post_type=gd_place<\/h6>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n{\r\n    \"total\": 11,\r\n    \"baseurl\": \"http:\/\/local.newwp.test\/wp-content\/uploads\",\r\n    \"content_url\": \"http:\/\/local.newwp.test\/wp-content\/\",\r\n    \"icons\": {\r\n        \"117\": {\r\n            \"i\": \"2019\/03\/Apartments.png\",\r\n            \"w\": 36,\r\n            \"h\": 45\r\n        },\r\n        \"118\": {\r\n            \"i\": \"2019\/03\/Houses.png\",\r\n            \"w\": 36,\r\n            \"h\": 45\r\n        },\r\n        \"5580\": {\r\n            \"i\": \"2019\/03\/pin-1.png\",\r\n            \"w\": 20,\r\n            \"h\": 34\r\n        }\r\n    },\r\n    \"items\": [\r\n        {\r\n            \"m\": \"6\",\r\n            \"lt\": \"52.4785600000\",\r\n            \"ln\": \"-0.9207500000\",\r\n            \"t\": \"Beta Graphic\",\r\n            \"i\": \"5580\"\r\n        },\r\n        {\r\n            \"m\": \"9\",\r\n            \"lt\": \"52.4785771162\",\r\n            \"ln\": \"-0.9207540751\",\r\n            \"t\": \"Harborough District Council\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"786\",\r\n            \"lt\": \"43.947479830944\",\r\n            \"ln\": \"-79.491696677947\",\r\n            \"t\": \"Eastern Lodge\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"788\",\r\n            \"lt\": \"44.095333133419\",\r\n            \"ln\": \"-79.698034108706\",\r\n            \"t\": \"Daisy Street\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"789\",\r\n            \"lt\": \"44.046827217255\",\r\n            \"ln\": \"-79.697610435615\",\r\n            \"t\": \"Northbay House\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"791\",\r\n            \"lt\": \"44.027228770813\",\r\n            \"ln\": \"-79.540715921723\",\r\n            \"t\": \"Jesmond Mansion\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"793\",\r\n            \"lt\": \"43.959283307934\",\r\n            \"ln\": \"-79.602951574071\",\r\n            \"t\": \"Springfield Lodge\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"795\",\r\n            \"lt\": \"43.986773665705\",\r\n            \"ln\": \"-79.702305299537\",\r\n            \"t\": \"Forrest Park\",\r\n            \"i\": \"118\"\r\n        },\r\n        {\r\n            \"m\": \"797\",\r\n            \"lt\": \"44.030107687149\",\r\n            \"ln\": \"-79.50725730378\",\r\n            \"t\": \"Fraser Suites Test123\",\r\n            \"i\": \"117\"\r\n        },\r\n        {\r\n            \"m\": \"799\",\r\n            \"lt\": \"43.980225694074\",\r\n            \"ln\": \"-79.589865156145\",\r\n            \"t\": \"Richmore Apartments Test123 Food\",\r\n            \"i\": \"117\"\r\n        },\r\n        {\r\n            \"m\": \"871\",\r\n            \"lt\": \"44.012415575653726\",\r\n            \"ln\": \"-79.58547458052635\",\r\n            \"t\": \"Richmore Apartments Test123 Food2\",\r\n            \"i\": \"118\"\r\n        }\r\n    ]\r\n}\r\n<\/pre>\n<h3 id=\"list-by-id\">List by Id<\/h3>\n<div class=\"api-endpoint\">\n<div class=\"endpoint-data\">\n<p><label class=\"label-get\">GET<\/label><\/p>\n<h6>wp-json\/geodir\/v2\/markers\/< id ><\/h6>\n<\/div>\n<\/div>\n<p><strong>Output<\/strong><\/p>\n<pre>\r\n{\r\n    \"html\": \"<div class=\\\"gd-bubble\\\" style=\\\"\\\">\\n\\t<div class=\\\"gd-bubble-inside\\\">\\n\\t\\t<div class=\\\"geodir-bubble_desc\\\">\\n\\t\\t\\t<div class=\\\"geodir-post-title\\\" >\\t\\t<h4 class=\\\"geodir-entry-title\\\">\\n\\t\\t\\t<a href=\\\"http:\/\/local.newwp.test\/places\/canada\/ontario\/king\/houses\/richmore-apartments-test123-food2\/\\\" title=\\\"View: Richmore Apartments Test123 Food21\\\">Richmore Apartments Test123 Food21<\/a>\\n\\t\\t<\/h4>\\n\\t\\t<\/div>\\n\\t\\t\\t<div class=\\\"geodir-bubble_image\\\">\\n\\t\\t\\t\\t\\n\\t\\t\\t<\/div>\\n\\t\\t\\t<div class=\\\"geodir-bubble-meta-top\\\">\\n\\t\\t\\t\\t<div class=\\\"geodir-post-rating\\\" ><div class=\\\"geodir_post_meta gd-rating-info-wrap gd-align-left\\\" >        <span class=\\\"gd-list-rating-stars\\\">\\n           <div class=\\\"gd-rating-outer-wrap gd-rating-output-wrap\\\">\\t\\t<div class=\\\"gd-rating gd-rating-output gd-rating-type-font-awesome\\\">\\n\\t\\t\\t<span class=\\\"gd-rating-wrap\\\" title=\\\"5 star rating\\\">\\n\\t\\t\\t\\t<span class=\\\"gd-rating-foreground\\\" style='width:100%; '>\\n\\t\\t\\t\\t<i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i>\\t\\t\\t\\t<\/span>\\n\\t\\t\\t\\t<span class=\\\"gd-rating-background\\\" >\\n\\t\\t\\t\\t<i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i><i class=\\\"fas fa-star fa-fw\\\" aria-hidden=\\\"true\\\" ><\/i>\\t\\t\\t\\t<\/span>\\n\\t\\t\\t<\/span>\\n\\t\\t\\t\\t\\t<\/div>\\n\\t\\t<\/div>        <\/span>\\n                <span class=\\\"gd-list-rating-text\\\">\\n                        <a href=\\\"http:\/\/local.newwp.test\/places\/canada\/ontario\/king\/houses\/richmore-apartments-test123-food2\/#reviews\\\" class=\\\"gd-list-rating-link\\\">\\n                2 Reviews            <\/a>\\n        <\/span>\\n        <\/div><\/div>\\n\\t\\t\\t\\t<div class=\\\"geodir-post-fav\\\" ><div class=\\\"geodir_post_meta gd-fav-info-wrap gd-align-right\\\" >        <span class=\\\"gd-list-favorite\\\">\\n            <span class=\\\"geodir-addtofav favorite_property_871\\\"><a class=\\\"geodir-addtofav-icon\\\"\\n\\t\\t                                                                             href=\\\"javascript:void(0);\\\"\\n\\t\\t                                                                             onclick=\\\"javascript:gd_fav_save(871)\\\"\\n\\t\\t                                                                             title=\\\"Add to Favorites\\\"><i\\n\\t\\t\\t\\tclass=\\\"fas fa-heart\\\"><\/i> <span class=\\\"geodir-fav-text\\\">Favorite<\/span><\/a><\/span>\\n\\t        <\/span>\\n        <\/div><\/div>\\n\\t\\t\\t<\/div>\\n\\t\\t\\t<div class=\\\"geodir-bubble-meta-side\\\">\\n\\t\\t\\t\\t<div class=\\\"geodir-output-location\\\" ><div class='geodir-output-location geodir-output-location-mapbubble' ><div class=\\\"geodir_post_meta  geodir-field-address\\\"><span class=\\\"geodir_post_meta_icon geodir-i-address\\\" style=\\\"\\\"><i class=\\\"fas fa-map-marker-alt\\\" aria-hidden=\\\"true\\\"><\/i><\/span><span itemprop=\\\"streetAddress\\\">3324 19th Sideroad<\/span><br>  <span itemprop=\\\"addressLocality\\\">King<\/span><br> <span itemprop=\\\"addressRegion\\\">Ontario<\/span><br> <span itemprop=\\\"postalCode\\\">L0G 1J0<\/span><br> <span itemprop=\\\"addressCountry\\\">Canada<\/span><\/div><\/div><\/div>\\n\\t\\t\\t<\/div>\\n\\t\\t<\/div>\\n\\t<\/div>\\n<\/div>\"\r\n}\r\n<\/pre>\n","protected":false},"featured_media":0,"parent":750,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/783"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/783\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/docs\/750"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs-v2\/wp-json\/wp\/v2\/doc_tag?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}