backend: fix lat/lon processing