Hi, I am calling a nominatim WS through a Java client using this piece of code:
String urls = "http://nominatim.openstreetmap.org/search?q= " + URLEncoder.encode(addressString.trim(), "UTF-8") + "&format=json&polygon=1&addressdetails=1";
URL url = new URL(urls);
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
uc.setRequestProperty("Accept-Charset:", "UTF-8");
uc.setRequestProperty("Content-Type:","application/x-www-form-urlencoded;charset=utf-8");
But i got this error:
'406: Not Acceptable' for url: 'http://nominatim.openstreetmap.org/search?q= %CE%A0%CE%91%CE%A1%CE%99%CE%A3%CE%99&format=json&polygon=1&addressdetails=1'
Thanks and best Regards,
asked
05 Aug '15, 09:49
ricard_3
71●1●1●4
accept rate:
0%