Skip to content

Commit

Permalink
Parse Lat Long in JHD format
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed May 3, 2024
1 parent 70075ad commit 0d485db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ lat,long = 39n17, 76w37;
return location;
}

function UpdatePlaceLatLong(){
function UpdatePlaceLatLong(){ //Even of Lat Long Change
p=ParseLatLong(document.getElementById("placename").value);
console.log(p);
if(p[0]!=0 && p[0]!= null) document.getElementById("latitude").value=-1*p[0];
//if(p[0]!=0 && p[0]!= null) document.getElementById("latitude").value=-1*p[0];
if(p[1]!=0 && p[1]!= null) document.getElementById("longitude").value=1*p[1];
}

Expand Down

0 comments on commit 0d485db

Please sign in to comment.