Smarter location input conversion