fix distance query when lat/lng does not come from browser