The Android Geocoder does not appear to understand intersections like the web-based Google Maps API. For example, a street intersection, “aviation and bataan”, from Google maps returns a valid geopoint:
http://maps.googleapis.com/maps/api/geocode/json?address=aviation%20and%20battan&sensor=false
Using the Geocoder in Android, this same intersection search (“aviation and bataan”) returns no results. My Android code below does returns results when I enter a more specific address instead of an intersection. Does the Android Geocoder not understand intersections or do I need to do something else?
Geocoder geocoder = new Geocoder(this);
try {
foundAdresses = geocoder.getFromLocationName(query, MAX_SEARCH_RESULTS);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
thanks
It does not, you should ignore the faulty incomplete GeoCoder object and just use the online version in a get request
http://maps.googleapis.com/maps/api/geocode/json?address=DESIREDADDRESS&sensor=trueit returns a JSON object