38 |
AdressSearch search = (AdressSearch) this.getServletContext().getAttribute("search"); |
AdressSearch search = (AdressSearch) this.getServletContext().getAttribute("search"); |
39 |
if (search == null) { |
if (search == null) { |
40 |
response.setContentType("text/xml; charset=UTF-8"); |
response.setContentType("text/xml; charset=UTF-8"); |
41 |
response.getWriter().print( |
response.getWriter().print( |
42 |
|
"<result>" + |
43 |
"<status>error</status>" + |
"<status>error</status>" + |
44 |
"<error>Service not ready</error>" |
"<error>Service not ready</error>" + |
45 |
|
"<result>" |
46 |
); |
); |
47 |
return; |
return; |
48 |
|
|
78 |
Address t = result.address.extTarget; |
Address t = result.address.extTarget; |
79 |
sb.append("<extaddr>").append(t.vejnavn + " " + t.husnr + t.husnrbogstav + ", " + t.postnr).append("</extaddr>"); |
sb.append("<extaddr>").append(t.vejnavn + " " + t.husnr + t.husnrbogstav + ", " + t.postnr).append("</extaddr>"); |
80 |
} |
} |
81 |
|
sb.append("<osm>").append(result.osm).append("</osm>"); |
82 |
sb.append("<google>").append(result.google).append("</google>"); |
sb.append("<google>").append(result.google).append("</google>"); |
83 |
|
|
84 |
|
|