intothedarkness / GPS-Simulator

28 stars 5 forks source link

Added us localization. If default uses "," instead of "." #7

Open ouzture opened 3 years ago

ouzture commented 3 years ago

Added us localization. If default uses "," instead of ".", map api call fails.

intothedarkness commented 3 years ago

why this change is needed?

ouzture commented 3 years ago

My country local settings uses comma for decimals. I mean we use 1,12 instead of 1.12. So program keeps coordinates with commas. When I do something that needs to call rest api, it sends those comma used coordinates. Then gets result 404 and crashes.

So this setting wont be needed for everyone but for some locales. There might be a better way to handle this of course. This was my quick and dirty solution.