2

I am using the deCarta Android API to find the GPS Lat/Lng of a street address. However, whenever I try to use the geocode method of the Geocoder class it always throws the exception:

Protocol not found 

I am passing in a StructuredAddress object populated with the street address for Google:

address.toString():

1600 Amphitheatre Pkwy Mountainview, CA 94043

ArrayList<GeocodeResponse> results = Geocoder.geocode(address,false);

Please advise.

2
  • This should work quite easily. I am not a technical person but if you post your question to the deCarta Dev Zone, you will get an answer. developer.decarta.com/forum Thanks, Mike Cottle
    – user13071
    Commented Nov 24, 2012 at 15:19
  • I have cross-posted this issue in the dev forum of deCarta. I agree, this should be a no-brainer, but... Commented Nov 24, 2012 at 16:19

1 Answer 1

0

The answer it turns out was that I missed setting up the values in the config file:

CONFIG.clientName="YOUR_CLIENT_NAME";
CONFIG.clientPassword="YOUR_CLIENT_PASSWORD"; 
CONFIG.host="YOUR_HOST";
CONFIG.configuration="YOUR_CONFIGURATION";
CONFIG.transparentConfiguration="YOUR_TRANSPARENT_CONFIGURATION";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.