From 5e5cff897f2c503b99a054cc053310ab08170655 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 20 Mar 2023 20:47:42 +0100 Subject: [PATCH] minor adjustment to reverse zoom translation Add a 'village' zoom level at 13 between town and neighbourhood and a all locality-like objects for zoom 15. These zoom levels had the same behaviour as the lower level so far. However, the distinction for village and locality may be useful at times. --- docs/api/Reverse.md | 5 ++++- lib-php/ReverseGeocode.php | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/api/Reverse.md b/docs/api/Reverse.md index c133750c..56281d06 100644 --- a/docs/api/Reverse.md +++ b/docs/api/Reverse.md @@ -92,7 +92,10 @@ In terms of address details the zoom levels are as follows: 5 | state 8 | county 10 | city - 14 | suburb + 12 | town / borough + 13 | village / suburb + 14 | neighbourhood + 15 | locality 16 | major streets 17 | major and minor streets 18 | building diff --git a/lib-php/ReverseGeocode.php b/lib-php/ReverseGeocode.php index 712f1480..fddad60d 100644 --- a/lib-php/ReverseGeocode.php +++ b/lib-php/ReverseGeocode.php @@ -40,10 +40,10 @@ class ReverseGeocode 9 => 12, 10 => 17, // City 11 => 17, - 12 => 18, // Town / Village - 13 => 18, - 14 => 22, // Suburb - 15 => 22, + 12 => 18, // Town + 13 => 19, // Village + 14 => 22, // Neighbourhood + 15 => 25, // Locality 16 => 26, // major street 17 => 27, // minor street 18 => 30, // or >, Building -- 2.39.5