oberschulze
New Member
i am googling for an half hour and found some famous solutions, but they are not working for me somehow. \[code\]var latitude = results[0].geometry.location.lat();var longitude = results[0].geometry.location.lng();//alert(latitude + ' - ' + longitude);$('#lat').val(parseFloat(latitude));$('#long').val(parseFloat(longitude));\[/code\]above is my code. i am still becoming error, \[code\]invalid literal for int() with base 10: '48.2767085'\[/code\] in django which is \[code\]lat\[/code\] value. why is this? i am converting string to float and then setting the value, why it is still thinking that this is a string? thanks for any help