Change to use the tempURI #5

Merged
adsu7578 merged 1 commits from test into develop 2022-05-23 11:25:02 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import static java.time.temporal.ChronoUnit.SECONDS;
@Service
public class OpenVenueService {
final String tempURI = "https://openstreetgs.stockholm.se/geoservice/api/b8e20fd7-5654-465e-8976-35b4de902b41/wfs?service=wfs&version=2.0.0&request=GetFeature&typeName=Markupplatelse&CQL_FILTER=Kategorityp=%271.411I,%20Uteservering%20B-läge%27%20&outputFormat=application/json";
final String apiKey = "b8e20fd7-5654-465e-8976-35b4de902b41";
final static int NO_DAYS_BETWEEN_FETCH = 14;
private List<VenueObject> data;
@ -104,7 +104,7 @@ public class OpenVenueService {
HttpRequest request = null;
try {
request = HttpRequest.newBuilder()
.uri(new URI(uri))
.uri(new URI(tempURI))
.timeout(Duration.of(60, SECONDS))
.GET()
.build();

View File

@ -77,7 +77,7 @@ public class VenueObject implements Serializable {
return venue;
}
public String toString() {
return "DataVO {" +
return "Venue {" +
name + ":" +
address + ":" +
streetNo + ":" +