simplify code surrounding conversion from lat/lon to locator