Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

validate latitude longitude javascript

function validateLatLng(lat, lng) {    
  let pattern = new RegExp('^-?([1-8]?[1-9]|[1-9]0).{1}d{1,6}');
  
  return pattern.test(lat) && pattern.test(lng);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: find duplicate values in array object javascript 
Javascript :: check if at least one checkbox is checked 
Javascript :: disable eslint specific rule 
Javascript :: global error handling middleware express 
Javascript :: mongoose docs where field exists 
Javascript :: delete from array based on value javascript 
Javascript :: axios timeout post example 
Javascript :: jquery change input value if greater than 
Javascript :: get input type js 
Javascript :: react to string 
Javascript :: how to delete an object from array in reactjs 
Javascript :: simple reactjs login form 
Javascript :: javascript remove last element from array 
Javascript :: jquery array remove element 
Javascript :: print object key value javascript 
Javascript :: mongoose findoneandupdate 
Javascript :: convert json result to datatable c# 
Javascript :: react-native-permissions could not be found within the project or in these directories: 
Javascript :: console.time 
Javascript :: axios.post request with custom headers 
Javascript :: js get json keys 
Javascript :: hasownproperty 
Javascript :: luxon timestamp 
Javascript :: how to find network there is no network react native 
Javascript :: npm run shell script 
Javascript :: font ligature vs code 
Javascript :: how to get data from url in vuejs 
Javascript :: js getelementbyid 
Javascript :: dociql process.env.NODE_TLS_REJECT_UNAUTHORIZED=0 
Javascript :: js input type range get value while sliding 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =