From f219570c872537dc1863ca9c64b287798fcedd48 Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 18 Jul 2024 01:33:34 +0200 Subject: [PATCH] include zoom --- .../converter/resources/ConverterResourcePhoton.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/graphhopper/converter/resources/ConverterResourcePhoton.java b/src/main/java/com/graphhopper/converter/resources/ConverterResourcePhoton.java index 16e36c0..eba707a 100644 --- a/src/main/java/com/graphhopper/converter/resources/ConverterResourcePhoton.java +++ b/src/main/java/com/graphhopper/converter/resources/ConverterResourcePhoton.java @@ -39,6 +39,7 @@ public Response handle(@QueryParam("q") @DefaultValue("") String query, @QueryParam("locale") @DefaultValue("default") String locale, @QueryParam("bbox") @DefaultValue("") String bbox, @QueryParam("location_bias_scale") @DefaultValue("") String locationBiasScale, + @QueryParam("zoom") @DefaultValue("16") int zoom, @QueryParam("osm_tag") List osmTags, @QueryParam("reverse") @DefaultValue("false") boolean reverse, @QueryParam("point") @DefaultValue("") String point @@ -57,6 +58,7 @@ public Response handle(@QueryParam("q") @DefaultValue("") String query, target = target.queryParam("radius", radius); } else { target = buildForwardTarget(query); + target = target.queryParam("zoom", zoom); } target = target.queryParam("limit", limit);