Getting coordinates as callback