Change to use the tempURI #5
@ -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();
|
||||
|
@ -77,7 +77,7 @@ public class VenueObject implements Serializable {
|
||||
return venue;
|
||||
}
|
||||
public String toString() {
|
||||
return "DataVO {" +
|
||||
return "Venue {" +
|
||||
name + ":" +
|
||||
address + ":" +
|
||||
streetNo + ":" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user