Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
    
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 Nov 24 '12 at 15:19
    
I have cross-posted this issue in the dev forum of deCarta. I agree, this should be a no-brainer, but... –  Android Addict Nov 24 '12 at 16:19
add comment

1 Answer 1

up vote 0 down vote accepted

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";
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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