I want to ask if the following two regular expressions are good for describing coordinates. Because latitude has just 90 degrees and longitude 180, I have created two seperate regular expressions:
Latitude regex:
\A[+-]?((9[0]?|[0-8][0-9]?([.,][0-9]+)?))\z
Longitude regex:
\A[+-]?(180|(1[0-7][0-9]|[0-9]{1,2})([.,][0-9]+)?)\z
I've tested them with some coordinates in Rubular. I wanted to ask if I miss something important that wouldn't describe valid coordinates.