Reference/Widget
Widgetstatelessdeprecated

Mapmyindia Nearby Covid Places

mapmyindia-nearby-covid-places

MapmyIndia's easy to integrate Nearby COVID Places Search Widget for Apps. Easily integrate the simple JS widget into your codebase and help your users discover Nearby COVID Vaccination Centres. Help your users discover government approved Vaccination Centres across India during this pandemic.

Integration notice

This source is classified as deprecated. Use it for migration context and verify the supported replacement before new development.

Migration plan available

This source is covered by a gated upgrade journey with candidate evidence, compatibility checks, parity proof, production acceptance, and rollback. Open Web maps and plugins: legacy scripts to a governed browser boundary

What this surface enables

MapmyIndia's easy to integrate Nearby COVID Places Search Widget for Apps. Easily integrate the simple JS widget into your codebase and help your users discover Nearby COVID Vaccination Centres. Help your users discover government approved Vaccination Centres across India during this pandemic.

Why this source is classified stateless

No durable provider record or application workflow contract was established from the source identity or bounded document evidence; view, camera, callback, and authentication sessions alone do not make a source stateful.

Authority: Conservative Default · No durable-state signal promoted from incidental vocabulary
Platforms

Web

Product areas

MapsSearch PlacesWidgets Deep LinksCapture Feedback

Languages found

HTMLJavaScriptCSSText

Authentication signals

No explicit authentication signal detected

Prepare the integration

  1. A browser application and an allowed development origin
Production guardrailsPin package versions and record the source fingerprint.Keep server credentials out of client binaries and logs.Test failures, timeouts, quota limits, upgrades, and rollback.Validate legacy examples against current authentication contracts.

Setup and usage examples

These examples were extracted from the canonical public source document and sanitized for credential-like values. Check the source branch and package version before copying into a production application.

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

Topics documented by the source

01DEPRECATED

This repository is no longer in active development & use.

02Introduction

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 MapmyIndia 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 MapmyIndia Move app (mapmyindia.com/move) and MapmyIndia Maps portal (maps.mapmyindia.com) and MapmyIndia 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.

The image is for illustrative purposes only on how the widget might look like once integrated.

033 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 MapmyIndia needs to be loaded.

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

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

That’s it - all done!

On reloading your web page after integrating the code - 1) You should see a MapmyIndia 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).

04Required 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.

05Optional 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.

06Sample CSS

(change NOT recommended)

07How 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.

08Other 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.

09How 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:

10Native Webview

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

11Appendix: 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 |

For any queries and support, please contact:

Email us at apisupport@mapmyindia.com

Support Need support? contact us!

[](http://www.mapmyindia.com/blog/)[](https://github.com/MapmyIndia)

[](https://twitter.com/MapmyIndia)[](https://www.linkedin.com/company/mapmyindia)[](https://www.youtube.com/user/MapmyIndia/)

Service references found

URLs are sanitized during ingestion and may include documentation or legacy hosts. Use them to trace the source, not as a substitute for the current API contract.

https://www.mapmyindia.com/apihttps://github.com/kunalbhartihttps://github.com/rohanverma85https://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.jshttps://maps.mapmyindia.com/covid-places/css/custom.csshttps://maps.mapmyindia.com/covid-places/showNearbyCovidPlacesOnMap.js?category=HSPTMThttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categorieshttps://maps.mapmyindia.com/covid-places/embed?category=HSPVCChttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-vaccination-centreshttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-testing-centreshttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-treatment-centreshttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-quarantine-centreshttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-sample-collection-centreshttps://github.com/MapmyIndia/mapmyindia-nearby-covid-places/wiki/Samples-For-Searching-More-Covid-Categories#sample-search-for-corona-micro-containment-zoneshttps://www.mapmyindia.com/api/index.php#f_conthttps://stackoverflow.com/questions/tagged/mapmyindia-api)[![](https://www.mapmyindia.com/api/img/icons/blog.png)](http://www.mapmyindia.com/blog/)[![](https://www.mapmyindia.com/api/img/icons/gethub.png)](https://github.com/MapmyIndia)[