I'm trying to geocode a few addresses ussing the HTTP Geocoding Service. I make the request using JSP and then have it print the result and the URL used. The problem is that the result returned to me this way have an accuracy of 4 for queries that if done manually(type the URL in the browser) return accuracy 8. This is an example of a query that when I run on the browser gives me acuracy 8, put when I run using JSP gives me acurracy 4. http://maps.google.com/maps/geo?key=<KEY>&sensor=false&output=csv&gl=br&oe=utf8&q=R 9 B 130,74110120,GOIANIA,GO,Brazil
I don't know if this is relevant, but this is the JSP code used to make the query: private static final String opts = key +"&sensor=false&output=csv&gl=br&oe=utf8&q="; private static final String urlbase = "http://maps.google.com/maps/ geo?"; URL url = new URL(urlbase+opts+address); URLConnection conn = url.openConnection(); conn.setUseCaches(false); conn.setDoInput(true); conn.setDoOutput(false); BufferedReader rd = new BufferedReader(new InputStreamReader (conn.getInputStream())); String line = rd.readLine(); rd.close(); Does anyone know what my problem might be? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
