ArnoldV/Our.Umbraco.GMaps

Coordinates are not parsed correctly on non-en-US cultures

Closed this issue · 2 comments

arknu commented

The parsing of coordinates don't specify the InvariantCulture, which means that on non-en-US cultures, the value "55.10694050000001" gets parsed as "5510694050000001", which obviously messes up the coordinates rather badly.

I suspect the problem is this line:

if (double.TryParse(pair[0], out double latitude) && double.TryParse(pair[1], out double longitude))

I'm working on a PR to address this issue.

arknu commented

PR is here: #124

And thank you for a very useful package

Thanks @arknu :)