IN URL Lat = (String: 50.864860)
IN URL Lon = (String: 2.887811)
AFTER FLOAT Lat = (Float: 5.086486E7)
AFTER FLOAT Lon = (Float: 2887811.0)
After conversion values are not correct.
But in english language its working fine.
/en/kantoren?lat=50.864860&lon=2.887811&location=8900
IN URL Lat = (String: 50.864860)
IN URL Lon = (String: 2.887811)
AFTER FLOAT Lat = (Float: 50.86486)
AFTER FLOAT Lon = (Float: 2.887811)
I am using |float filter for coversion and get value from URL using request.query_dict.
In English, 50.864860 is treated as 50 point 864860.
In Dutch, 50.864860 is interpreted differently (it might not parse correctly because . could be considered a thousands separator, leading to 50.864860 being read as 50864860).
Possible Solution:
Set locale to English temporarily
Get values
Set locale back to Dutch
Was I able to help answer your question? Help the community by marking it as a solution.