From: marc tobias Date: Fri, 2 Mar 2018 10:37:43 +0000 (+0100) Subject: detail page: support &osmtype, &osmid X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/f804f166cee5cdb2c8a3d10dd4f20f4bfb2eb615 detail page: support &osmtype, &osmid --- diff --git a/TODO.md b/TODO.md index 6f53272..a445427 100644 --- a/TODO.md +++ b/TODO.md @@ -12,7 +12,6 @@ * reverse: zoom not set http://localhost:8000/reverse.html?format=html&lat=52.3755991766591&lon=7.646484374999999&zoom= * error message on API error or timeout -* detail: support `osm_type`, `osm_id` paramters * search page: add pagination, moreurl * search page: add viewbox * details page: add "There are more child objects which are not shown" back in @@ -59,5 +58,4 @@ http://localhost:8000/reverse.html?format=html&lat=52.3755991766591&lon=7.646484 * aResults vs aPlace vs aFeature variable naming * use CSS preprocessor and linter * use eslint -* add a /vendor directory for third-party files diff --git a/src/assets/js/nominatim-ui.js b/src/assets/js/nominatim-ui.js index 8c8c8af..d6b8c65 100755 --- a/src/assets/js/nominatim-ui.js +++ b/src/assets/js/nominatim-ui.js @@ -444,6 +444,8 @@ jQuery(document).ready(function(){ var api_request_params = { place_id: search_params.get('place_id'), + place_id: search_params.get('osmtype'), + place_id: search_params.get('osmid'), group_parents: 1, format: 'json' };