private static final String URL = "http://maps.googleapis.com/maps/api/geocode/xml"; public static RemoteCommand getLocation(String theAddress){ RemoteCommand result = new RemoteCommand(); result.setType(Type.GET); result.setUrl(URL); result.addGetParam("address", theAddress); result.addGetParam("sensor", "false"); result.addGetParam("language", "en"); // See description about GeocoderXMLHandler result.setXmlHandler(new GeocoderXMLHandler()); return result; }