Change to use the tempURI #5
@ -19,7 +19,7 @@ import static java.time.temporal.ChronoUnit.SECONDS;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class OpenVenueService {
|
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 String apiKey = "b8e20fd7-5654-465e-8976-35b4de902b41";
|
||||||
final static int NO_DAYS_BETWEEN_FETCH = 14;
|
final static int NO_DAYS_BETWEEN_FETCH = 14;
|
||||||
private List<VenueObject> data;
|
private List<VenueObject> data;
|
||||||
@ -104,7 +104,7 @@ public class OpenVenueService {
|
|||||||
HttpRequest request = null;
|
HttpRequest request = null;
|
||||||
try {
|
try {
|
||||||
request = HttpRequest.newBuilder()
|
request = HttpRequest.newBuilder()
|
||||||
.uri(new URI(uri))
|
.uri(new URI(tempURI))
|
||||||
.timeout(Duration.of(60, SECONDS))
|
.timeout(Duration.of(60, SECONDS))
|
||||||
.GET()
|
.GET()
|
||||||
.build();
|
.build();
|
||||||
|
@ -77,7 +77,7 @@ public class VenueObject implements Serializable {
|
|||||||
return venue;
|
return venue;
|
||||||
}
|
}
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "DataVO {" +
|
return "Venue {" +
|
||||||
name + ":" +
|
name + ":" +
|
||||||
address + ":" +
|
address + ":" +
|
||||||
streetNo + ":" +
|
streetNo + ":" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user