[openstreetmap/openstreetmap-website] Avoid use of scientific notation in geocoder results (PR #4961)
Anton Khorev
notifications at github.com
Fri Jul 12 12:48:17 UTC 2024
@AntonKhorev commented on this pull request.
> @@ -60,6 +60,19 @@ def test_identify_latlon_ne_d
end
end
+ ##
+ # Test identification of integer lat/lon pairs using N/E with degrees
+ def test_identify_latlon_ne_d_int_deg
+ [
+ "N50 E14",
+ "N50° E14°",
+ "50N 14E",
+ "50°N 14°E"
+ ].each do |code|
+ latlon_check code, 50, 14
+ end
+ end
+
If we don't want to identify them, we can change `\.\d*` to `\.\d+` in regexps.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4961#discussion_r1675796856
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4961/review/2174646223 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240712/b78b7881/attachment.htm>
More information about the rails-dev
mailing list