Skip to content

Coordinate1

Giuseppe Cannella edited this page Feb 19, 2020 · 3 revisions
Type name example
Coordinate1 45°23'36.0" N 10°33'48.0" E
import com.github.gekomad.regexcollection.Coordinate1                                                            
import com.github.gekomad.regexcollection.Validate.validate    
                                                
assert(validate[Coordinate1]("""45°23'36." N 10°33'48.0" E""") == None)                                          
assert(validate[Coordinate1]("""45°23'36.1234567"N 010°33'48"E""") == None)                                                                                                                                         
assert(validate[Coordinate1]("""45°23'36.0" N 10°33'48.0" E""") == Some("""45°23'36.0" N 10°33'48.0" E"""))      
assert(validate[Coordinate1]("""45°23'36.123456"N 010°33'48"E""") == Some("""45°23'36.123456"N 010°33'48"E"""))
assert(validate[Coordinate1]("""45°23′36.0″ N 10°33′48.0″ E""") == Some("""45°23′36.0″ N 10°33′48.0″ E""")) 
Clone this wiki locally