fix issue when using floatin point coordinates

Signed-off-by: Felix Dumit <felix.dumit@gmail.com>
Merge pull request #453 from felix-dumit/location

fix issue when using floatin point coordinates