fix issue when using floatin point coordinates

Was causing error if latitude or longitude where float
Signed-off-by: Felix Dumit <felix.dumit@gmail.com>