How to Implement Geofencing with a Circle Shape Using Angular on MapmyIndia Map?

Hello MapmyIndia Developers,

I am currently working on an Angular project where I need to implement geofencing on a MapmyIndia map. The geofence should be in the shape of a circle, based on user input.

**Requirements:

  1. Latitude & Longitude: The user will input the latitude and longitude values.
  2. Radius: The user will specify the radius of the circle (in meters).
  3. Circle Shape: I need to draw a circle geofence on the MapmyIndia map using the given latitude, longitude, and radius.
  4. Angular Framework: Since I am working in Angular, I want to know how to implement this functionality using the Angular framework and integrate it with MapmyIndia APIs.

Goal:

  • When a user enters latitude, longitude, and radius, I want to dynamically draw a circle on the MapmyIndia map representing the geofence.
  • I also want to check when a marker or location enters or exits the defined geofence.

Questions:

  1. How can I draw a circle based on user input (latitude, longitude, and radius) on MapmyIndia using Angular?
  2. Are there any specific MapmyIndia Angular integrations or examples for handling geofence creation and detection?
  3. How do I handle geofence detection (entry and exit of points) with MapmyIndia?

If possible, please share any code snippets, examples, or references that could help me implement this in an Angular project.

Thank you for your help!

Hi Roshan,

Kindly refer to the doc below:

Also, for the second use case under your goal and your queries, i would suggest that you connect with the API Support who can deligently answer your queries for achieving your goal.

Contact api support at : apisupport@mapmyindia.com.