See the Mappls COVID-19 Guide live in action. Click here →

Nearby COVID Vaccine Centres, Hospitals etc Search Widget

This is an easy & FREE to integrate Nearby COVID Places Search (such as Vaccine Centres, Hospitals, Testing Centres, Isolation Centres etc) Widget by MapmyIndia.

Every person can benefit from being able to easily find nearby COVID vaccination centres, hospitals, testing centres etc - see them on a map, get directions, and get more information about them.

We at Mappls are continuously updating the database of COVID-related places, such as vaccine centres, treatment centres/hospitals, containment zones, testing centres, isolation centres etc. This is the most comprehensive pan India covid related map database, and we've released it for free through our Mappls Move app (mapmyindia.com/move) and Mappls Maps portal (maps.mapmyindia.com) and Mappls Corona guide (maps.mapmyindia.com/corona).

We're helping ANY website or app developer to easily integrate this information, as a FREE widget, for the benefit of your users and visitors.

The widget can be used to search for vaccination centres, testing centres, sample collection centres, treatment centres, quarantine centres and micro containment zones across India.

Nearby COVID Vaccine Centres, Hospitals etc Search Widget (FREE)

3 Step process to integrate Nearby COVID Places widget in any Web App

1. Step 1

Inside the section of HTML of web page, define a div into which the nearby COVID places widget from Mappls needs to be loaded.

 <div id=“nearby-covid-places-mapmyindia”></div> 

2. Step 2

Inside the section of HTML of web page, or wherever else you find more suitable, include the following Mappls javascript code.

 <script src=“https://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.js”></script> 

3. Step 3

To load up the nearby COVID places widget from MapmyIndia, call the following javascript code AFTER the Mappls javascript file (as defined in step 2) has loaded.

loadNearbyCovidCentresMapmyIndiaDiv(document.getElementbyId(“nearby-covid-places-mapmyindia”));

That’s it - all done!

On reloading your web page after integrating the code -

  1. You should see a Mappls Map on left, search box on top right, and based on current location the nearest COVID places in right panel.
  2. The first time the code loads, the user may be prompted to share current location to browser so that the map and search results can be localised to the user
  3. User can type into search box, any place of his/her interest, and as he/she types, suggested search results will get populated. Upon clicking of any, new map location with markers of the nearby COVID places, and search results in the panel will get updated.
  4. In the search results panel (and on clicking a marker on the map) - details of the COVID places will show up AND a ‘Get Directions’ button will be there, clicking on which user will be directed to the the directions page (external link).
loadNearbyCovidCentresMapmyIndiaDiv() Method

Required Parameters

  1. divID: This is a mandatory parameter which allows the widget to recognise the div where the content of the widget is to be loaded.

Optional Parameters

  1. Params:
    • css(string): css' absolute URL as per the design of the target web app. This is ONLY required if and only if the target app wishes to over-ride the default css which is implicitly part of the plugin. NOT RECOMMENDED TO CHANGE. Please change only if absolutely necessary.

Sample Code

<html> <head> <!-- Include the following Mappls javascript code into your webpage --> <script src="https://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.js"></script> </head> <body> <!-- define the div into which the nearby COVID places widget from Mappls needs to be loaded --> <div id="nearby-covid-places-mapmyindia"></div> <!-- call the following code AFTER the Mappls javascript file has loaded --> <script type="text/javascript"> loadNearbyCovidCentresMapmyIndiaDiv(document.getElementById("nearby-covid-places-mapmyindia")); </script> </body> </html>

How to customize CSS to match the style of the plugin with your web app

Sample CSS

(change NOT recommended)

 https://maps.mapmyindia.com/covid-places/css/custom.css

To be passed as


loadNearbyCovidCentresMapmyIndiaDiv(document.getElementById("nearby-covid-places-mapmyindia"),{css:"https://maps.mapmyindia.com/covid-places/css/custom.css"});

How to Search for Different Categories of COVID Places

The Nearby COVID Places Widget already has the capabilities to search for not only nearby vaccination centres, but other important COVID places as well. To search for other categories of COVID places, a simple additional parameter in the script URL of the widget enables you to specify which category you want the widget to search for.

Sample Search for Corona Treatment Centres

Script URL

<script src="https://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.js?category=HSPTMT"></script>

Sample

 <html>
<head>
 <!-- Include the following Mappls javascript code into your webpage -->
 <script src="https://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.js?category=HSPTMT"></script>
</head>
<body>
<!-- define the div into which the nearby COVID places widget from Mappls needs to be loaded -->
<div id="nearby-covid-places-mapmyindia"></div>
<!-- call the following code AFTER the Mappls javascript file has loaded -->
 <script type="text/javascript">
      loadNearbyCovidCentresMapmyIndiaDiv(document.getElementById("nearby-covid-places-mapmyindia"));
 </script>
</body>
</html>

Other Samples for COVID Nearby Places

Read the following Wiki article to see more sample of how to search for other types of COVID places using the Nearby Search Widget.

How to Embed the Widget as an iFrame

The most important thing to remember while embedding this widget in an iFrame is that, an iFrame by default, does NOT allow for geolocation access. This means that the widget won't get the current location of the user of the web page to allow searching for COVID places near his location.

To overcome this, please ALWAYS add attribute of allowing geolocation in the iFrame tag as follows:

Sample for iFrame embedding of Nearby COVID Places Widget

 <iframe width="100%" height="100%" src="https://maps.mapmyindia.com/covid-places/embed?category=HSPVCC" allow="geolocation" >
</iframe< 

Native Webview

The same URL can also be used for Native WebView implmentation of the Nearby COVID Places Widget.

Appendix: COVID Places Categories Supported

Category Code Description
HSPVCC Corona Vaccination Centres
HSPTST Corona Testing Centres
HSPTMT Corona Treatment Centres
HSPCOV Corona Quarantine Centre
HSPSCC Corona Sample Collection Centre
CNTZON Corona Micro Containment Zones

Embed Corona Information Dashboard Links onto your Website/ App

Easily integrate & inform your users !

Introduction

In the current scenario, where social distancing is paramount, technology is playing a key role in maintaining daily communication and information transfer. Mappls is serving individuals, companies and the government alike, to spread critical information related to COVID-19 through deeply informative, useful and free-to-integrate geo-visualized COVID-19 dashboards, map search guides, and reporting tools, powered by Move.

Simply plug these easy-to-integrate and rich dashboards into your applications or websites, and offer a seamless information experience to your users. Join Mappls' small contribution towards making a safe and informed India, and help alleviate everyone out of this unprecedented crisis.

Dashboards Available for Integration

State Wise Corona Cases

Dashboard Image
State Wise
State Wise
How to embed

See the dashboard https://maps.mapmyindia.com/corona

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona" ></ iframe>

Corona Treatment Centres

Dashboard Image
Treatment Centres
Treatment Centres
How to embed

See the dashboard https://maps.mapmyindia.com/corona?corona_treatment_centre

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?corona_treatment_centre" > </iframe >

Corona Testing Labs

Dashboard Image
Testing Lab
Testing Lab
How to embed

See the dashboard https://maps.mapmyindia.com/corona?corona_testing_centre

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?corona_testing_centre" > </iframe >

Corona Sample Collection Centres

Dashboard Image
Sample Collection Center
Sample Collection Center
How to embed

See the dashboard https://maps.mapmyindia.com/corona?corona_sample_collection_centre

Embed within youriframe as follows
< iframe src="https://maps.mapmyindia.com/corona?corona_sample_collection_centre" > </iframe>

Corona Isolation Centres

Dashboard Image
Isolation Centres
Isolation Centres
How to embed

See the dashboard https://maps.mapmyindia.com/corona?corona_isolation_ward

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?corona_isolation_ward"></iframe>

Relief Camps for Migrant Workers | Source NDMA

Dashboard Image
Relief Camps
Relief Camps
How to embed

See the dashboard https://maps.mapmyindia.com/corona?relief_centers_ndma

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?relief_centers_ndma"></iframe>

Delhi Government Ration Shops

Dashboard Image
Delhi Government Ration Shops
Delhi Government Ration Shops
How to embed

See the dashboard https://maps.mapmyindia.com/corona?government_ration_distribution

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?government_ration_distribution"></iframe>

Containment Zones

Dashboard Image
Containment Zones
Containment Zones
How to embed

See the dashboard https://maps.mapmyindia.com/corona?containment_zone_gradient

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?containment_zone_gradient"></iframe>

District Containment Zone

Dashboard Image
District Containment Zone
District Zone
How to embed

See the dashboard https://maps.mapmyindia.com/corona?districts_containment_zone

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?districts_containment_zone"></iframe>

Food & Shelter Homes

Dashboard Image
Food & Shelter Homes
Food & Shelter Homes
How to embed

See the dashboard https://maps.mapmyindia.com/corona?food-shelter-homes

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?food-shelter-homes"></iframe>

Hunger Relief Centres

Dashboard Image
Hunger Relief Centres
Hunger Relief Centres
How to embed

See the dashboard https://maps.mapmyindia.com/corona?hunger-relief-centers

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?hunger-relief-centers"></iframe>

Corona Lockdown Issues

Dashboard Image
Corona Lockdown Issues
Corona Lockdown Issues
How to embed

See the dashboard https://maps.mapmyindia.com/corona?issues-nearby

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?issues-nearby"></iframe>

Coronavirus in India: Graphical Representation

Dashboard Image
Graphical Representation
Graphical Representation
How to embed

See the dashboard https://maps.mapmyindia.com/covid-19?graph

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/covid-19?graph"></iframe>

Custom View: now with Lat/Long and Zoom Level

All our dashboard URLs now accept values to be passed in two parameters - Lat/Long and Zoom Level.
Now, pass these two parameters in your calls to open custom views of the dashboards at a predefined location (lat/long) and zoom level of your choice.

Dashboard Image
Custom View
Custom View
How to embed

See the dashboard https://maps.mapmyindia.com/corona?lat=26.8749616&lng=75.7361819&zoom=9

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?lat=26.8749616&lng=75.7361819&zoom=9"></iframe>

Filter Layers according to States / Districts / UTs

The new filter controls allow each Covid-19 layer available on Mappls dashboard to be filtered to a more granular level till state/UT or district levels.

Dashboard Image
Regional Granularity
Regional Granularity
How to embed

See the dashboard https://maps.mapmyindia.com/corona/Delhi?state_corona_stats

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona/Delhi?state_corona_stats"></iframe>

Safety Check

Find out how far you are from the nearest containment zone.

Dashboard Image
Input screen
Safety Plugin
Output screen
Safety Check
How to embed

See the dashboard https://maps.mapmyindia.com/corona?safety_alert

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/corona?safety_alert"></iframe>

FAQs about Covid-19

Dashboard Image
frequently ask question
frequently ask question
How to embed

See the dashboard https://maps.mapmyindia.com/covid19/faq/

Embed within youriframe as follows
<iframe src="https://maps.mapmyindia.com/covid19/faq/"> </iframe>

COVID Layer Plugin (Web SDK)

This plug-in allows one to render corona layers, being offered to customers as JS based plugin to overlay on top of Mappls Raster Maps for Web. The plugin is an integral part of our Maps SDK for Web and the base maps will always be Mappls' if this plugin is used.

Dashboard Image
Custom View

COVID Safety Plugin (Mobile SDK)

Mappls Safety Plugin will alert when a user is in or near to a containment zone. If an app, with Mappls Safety plugin integrated, is running on a phone, Mappls Safety plugin will push a local notification when the user goes in or near to the containment zone, which can be seen from the notification panel.

Dashboard Image
COVID Safety Plugin

COVID Safety Alert (web SDK)

Mappls Safety Alert as a JS plugin for use with our Web SDK.

Dashboard Image
COVID Safety Alert (web SDK)

#STAYSAFE

If you wish to use some other map APIs or want a customized solution, please check out

www.mapmyindia.com/api

For any queries and support, please contact:
Email us at
MapmyIndia
Ask a question under the mapmyindia-maps
Mappls Blog
Read about the latest updates & customer stories
Mappls Support
Need support? contact us!

Be The First To know