Code example for BasicResponseHandler

0
    public Stations makeGeoLookup( final double lat, final double lon, final double defaultSearchRadiusMiles ) {
        final HttpClient client = new DefaultHttpClient();
        final HttpGet get = new HttpGet( "http://hhpt-search.appspot.com/search?lat=" + lat + "&lng=" + lon +  "&radius=" + defaultSearchRadiusMiles );
         
        try { 
            final ResponseHandler<String> responseHandler = new BasicResponseHandler();
 
            final String body = client.execute( get, responseHandler  );
             
            return parse( body );
             
             
             
             
        } catch ( final ClientProtocolException e ) {
            e.printStackTrace();
             
        } catch ( final IOException e ) {
            e.printStackTrace();