street-address

Android: Reverse geocoding - getFromLocation

时光总嘲笑我的痴心妄想 提交于 2019-11-26 00:47:49
问题 I am trying to get an address based on the long/lat. it appears that something like this should work? Geocoder myLocation = Geocoder(Locale.getDefault()); List myList = myLocation.getFromLocation(latPoint,lngPoint,1); The issue is that I keep getting : The method Geocoder(Locale) is undefined for the type savemaplocation Any assistance would be helpful. Thank you. Thanks, I tried the context, locale one first, and that failed and was looking at some of the other constructors (I had seen one

How to parse freeform street/postal address out of text, and into components

大兔子大兔子 提交于 2019-11-25 23:43:15
问题 We do business largely in the United States and are trying to improve user experience by combining all the address fields into a single text area. But there are a few problems: The address the user types may not be correct or in a standard format The address must be separated into parts (street, city, state, etc.) to process credit card payments Users may enter more than just their address (like their name or company with it) Google can do this but the Terms of Service and query limits are