Menu
Close

NearBy Record Finder

Sample Implementation

 

  <html>
  <head>
    <title>NearBy Record Finder</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="NearBy Record Finder">

        <script src="https://apis.mappls.com/advancedmaps/api/<Token>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script>
          <script src="https://apis.mappls.com/advancedmaps/vapi/<Token>/nearbyRecordFinder?v=3.0"></script>
              <style>
        body {
            margin: 0;
        }

        #map {
            width: 100%;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
    </style>
    </head>

    <body>
        <div id="nearby_search" style=" margin: 5px;width:99%;height:250px;overflow-y: auto;border-radius: 10px;"></div>
        <div id="map"></div>
                <script>
            var map;
            function initMap1() {
                map = new mappls.Map("map", {
                    center: [28.62, 77.09],
                    zoom: 5,
                    search: false
                });
                mappls.getnearBySearch({
                        /* recordType: "MAMTAS",
                            refLocation: "28.5592587342742,77.26922088234888", */
                        recordType: "BFLMER",
                        refLocation: "18.564038,73.9234125"
                        // radius: "5000",
                        // page:2, //default is 1
                        // sortBy: "desc", // Default is asc
                        // radius: "250", Minimum is 250m and maximum is 50000m.
                        // filter:"cop:TAVI5S",
                        // bounds:"28.639256,77.211133;28.625214,77.237483",
                        // itemCount:5, no of items per page
                        // createdTime:1636959587 // an epoch value in seconds.
                        // modifiedTime:1636438652 // an epoch value in seconds.
                    },
                    function(data) {
                        console.log(data);
                        setTimeout(() => {
                           alert('Data: ' + JSON.stringify(data, null, 2));
                        }, 3000);

                    }
                );
            }
        </script>
        </body>
  </html>

Call at Mappls
Request Call Back

Personalisation SDK, by Mappls, is India's first O2O engagement tool that can 3X your customer engagement, retention and conversion.

There's so much that Mappls MapmyIndia can do for your enterprise or individual requirements. Explore our website to learn more or request a callback/email if you'd like us to connect with you.

or