1. Home
  2. API
  3. Map Marker

Map Marker


Introduction
Endpoints
ID

Introduction

REST API End Points to access map markers data.

EndPoints

wp-json/geodir/v2/markers/?post_type=gd_place

Output

{
    "total": 11,
    "baseurl": "http://local.newwp.test/wp-content/uploads",
    "content_url": "http://local.newwp.test/wp-content/",
    "icons": {
        "117": {
            "i": "2019/03/Apartments.png",
            "w": 36,
            "h": 45
        },
        "118": {
            "i": "2019/03/Houses.png",
            "w": 36,
            "h": 45
        },
        "5580": {
            "i": "2019/03/pin-1.png",
            "w": 20,
            "h": 34
        }
    },
    "items": [
        {
            "m": "6",
            "lt": "52.4785600000",
            "ln": "-0.9207500000",
            "t": "Beta Graphic",
            "i": "5580"
        },
        {
            "m": "9",
            "lt": "52.4785771162",
            "ln": "-0.9207540751",
            "t": "Harborough District Council",
            "i": "118"
        },
        {
            "m": "786",
            "lt": "43.947479830944",
            "ln": "-79.491696677947",
            "t": "Eastern Lodge",
            "i": "118"
        },
        {
            "m": "788",
            "lt": "44.095333133419",
            "ln": "-79.698034108706",
            "t": "Daisy Street",
            "i": "118"
        },
        {
            "m": "789",
            "lt": "44.046827217255",
            "ln": "-79.697610435615",
            "t": "Northbay House",
            "i": "118"
        },
        {
            "m": "791",
            "lt": "44.027228770813",
            "ln": "-79.540715921723",
            "t": "Jesmond Mansion",
            "i": "118"
        },
        {
            "m": "793",
            "lt": "43.959283307934",
            "ln": "-79.602951574071",
            "t": "Springfield Lodge",
            "i": "118"
        },
        {
            "m": "795",
            "lt": "43.986773665705",
            "ln": "-79.702305299537",
            "t": "Forrest Park",
            "i": "118"
        },
        {
            "m": "797",
            "lt": "44.030107687149",
            "ln": "-79.50725730378",
            "t": "Fraser Suites Test123",
            "i": "117"
        },
        {
            "m": "799",
            "lt": "43.980225694074",
            "ln": "-79.589865156145",
            "t": "Richmore Apartments Test123 Food",
            "i": "117"
        },
        {
            "m": "871",
            "lt": "44.012415575653726",
            "ln": "-79.58547458052635",
            "t": "Richmore Apartments Test123 Food2",
            "i": "118"
        }
    ]
}

List by Id

wp-json/geodir/v2/markers/< id >

Output

{
    "html": "
\n\t
\n\t\t
\n\t\t\t
\t\t

\n\t\t\tRichmore Apartments Test123 Food21\n\t\t

\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n
" }
Was this helpful to you? Yes 5 No 1