sinanselimoglu / geocoder-java

Automatically exported from code.google.com/p/geocoder-java
1 stars 0 forks source link

The method getHttpClient() is undefined for the type Geocoder. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(Copied from the project home, and tried with version: 0.9 and 0.11)
final Geocoder geocoder = new Geocoder();
geocoder.getHttpClient().getHostConfiguration().setProxy("proxy.example.com", 
8080);
GeocoderRequest geocoderRequest = new 
GeocoderRequestBuilder().setAddress("Paris, 
France").setLanguage("en").getGeocoderRequest();
GeocodeResponse geocoderResponse = geocoder.geocode(geocoderRequest);

What is the expected output? What do you see instead?
Generates an error at compile time: The method getHttpClient() is undefined for 
the type Geocoder. 

What version of the product are you using? On what operating system?
Both geocoder-java-0.9 and 0.11 on a Debian server

Original issue reported on code.google.com by scavuzzo...@gmail.com on 29 Sep 2012 at 7:46

GoogleCodeExporter commented 9 years ago
You can use AdvancedGeocoder, that does contain the getHttpClient()

Original comment by hinoul.l...@gmail.com on 24 Jan 2013 at 8:19

GoogleCodeExporter commented 9 years ago

Original comment by panchmp on 28 Jan 2013 at 8:17