Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Search Functionality to Handle Both Place Names and DIGIPIN #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ronitjadhav
Copy link

@ronitjadhav ronitjadhav commented Jul 25, 2024

Description

This PR enhances the search functionality in the DigiPinMap component to handle both place names and DIGIPINs using a single input field. The updates include:

  1. Input Handling:
  • Modified the existing input field to handle both place names and DIGIPINs.
  • Added logic to determine if the input is a place name or a DIGIPIN.
  1. Search Functionality:
  • If the input is a place name, the Mapbox Geocoding API is used to get the coordinates.
  • If the input is a DIGIPIN, the Get_LatLong function is used to get the coordinates.

Screenshots

image

image

Fix #4

@ronitjadhav
Copy link
Author

I’ve updated the function to retrieve the latitude and longitude value from Digipin, incorporating the new logic for generating Digipin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request to Enhance Search Functionality to Handle Both Place Names and DIGIPINs
2 participants