generating array for as-you-type location completion