Created
August 23, 2024 07:04
-
-
Save kanikash4/418a98a87ed9627e7930b5770109fd77 to your computer and use it in GitHub Desktop.
Check if latitude and longitude is of India
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val longitude = map.getAsOrElse[String]("$payload.longitude}", "0.0").toDouble | |
val latitude = map.getAsOrElse[String]("$payload.latitude}", "0.0").toDouble | |
if((longitude<68.17) || (longitude>97.41) || (latitude<7.96) || (latitude>35.50)) && (longitude!=0.0) && (latitude!=0.0)) | |
{"BLOCK"} | |
else | |
{"PASS"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment