mattrossman / forecaswatch2

Open source revival of the beloved ForecasWatch Pebble watchface
https://apps.rebble.io/en_US/application/5dcdca6ac393f50cf6dbc264
GNU General Public License v3.0
36 stars 13 forks source link

support lat/long in override location and avoid location lookup #59

Closed clach04 closed 2 years ago

clach04 commented 2 years ago

From https://github.com/mattrossman/forecaswatch2/issues/57

Use a regex to id that latitude and longitude have been specified (rather than a place name).

E.g.:

/([-+]?[\d\.]*),([-+]?[\d\.]*)/gm

Test data set:

123.45,987.654
123.45,-987.654
-123.45,987.654
-123.45,-987.654
123.45,987.654
123.45,+987.654
+123.45,987.654
+123.45,+987.654