Skip to content

Commit 6ba4a52

Browse files
authored
Merge pull request #589 from lonvia/change-default-zoom
Change default for search parameter zoom to 14
2 parents 22d8cf0 + e28f085 commit 6ba4a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/de/komoot/photon/query/PhotonRequestFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public PhotonRequest create(Request webRequest) throws BadRequestException {
5656
throw new BadRequestException(400, "invalid parameter 'location_bias_scale' must be a number");
5757
}
5858

59-
int zoom = 16;
59+
int zoom = 14;
6060
String zoomStr = webRequest.queryParams("zoom");
6161
if (zoomStr != null && !zoomStr.isEmpty()) {
6262
try {

src/test/java/de/komoot/photon/ApiIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testSearchForBerlin() throws Exception {
9898
public void testApiWithLocationBias() throws Exception {
9999
App.main(new String[]{"-cluster", TEST_CLUSTER_NAME, "-listen-port", Integer.toString(LISTEN_PORT), "-transport-addresses", "127.0.0.1"});
100100
awaitInitialization();
101-
HttpURLConnection connection = (HttpURLConnection) new URL("http://127.0.0.1:" + port() + "/api?q=berlin&limit=1&lat=52.54714&lon=13.39026")
101+
HttpURLConnection connection = (HttpURLConnection) new URL("http://127.0.0.1:" + port() + "/api?q=berlin&limit=1&lat=52.54714&lon=13.39026&zoom=16")
102102
.openConnection();
103103
JSONObject json = new JSONObject(
104104
new BufferedReader(new InputStreamReader(connection.getInputStream())).lines().collect(Collectors.joining("\n")));

0 commit comments

Comments
 (0)