Get Nearby data
var res=new MapmyIndia.nearby({keywords:"FINATM",refLocation:'123ZRR'});
var data=res.data;
// Response {data: Array(10)}

Category & Location Selection Widget
new MapmyIndia.nearby({map:map,divId:'nearbDv',keywords:{"FINATM":"ATMs","FODCOF;FODIND;FODOTH":"Restaurant"}, 
fitbounds:true,click_callback:function(d){console.log(d);}});
    
//map & icons are optional, set icons like icon:{'FINATM':{url:'atm.png',width:30,height:45},'FODCOF':{url:'3.png',width:30,height:38}}

Response
      <html>
     <head>
        <title>MapmyIndia Plugin - Nearby Plugin</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="desciption" content="Mapmyindia Nearby Plugin">
        <script src="https://apis.mapmyindia.com/advancedmaps/v1/<token>/map_load?v=1.5"></script>
        <script src="https://apis.mapmyindia.com/advancedmaps/api/<token>/map_sdk_plugins"></script>
        <style>
            body{margin: 0}
            #map{
                width: 99%; height: 300px;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>
             /*Map Initialization*/
              var map = new MapmyIndia.Map('map', {center: [28.09, 78.3], zoom: 5, search: false});

              /*Nearby plugin initialization*/
                var options={
                        divId:'nearby_search',
                        map:map,
                        keywords:'atm',
                        refLocation:"28.632735,77.219696",
                        fitbounds:true,
                        click_callback:function(d){if(d){var l="Name: "+d.placeName+"\nAddress: "+d.placeAddress+"\neLoc: "+d.eLoc; alert(l);}
                }
    
                 var nr=MapmyIndia.nearby(options);
           </script>
        </body>
        </html>