]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/detailpage.js
sync with latest Nominatim details-as-json branch
[nominatim-ui.git] / src / assets / js / detailpage.js
index aa3d771e4700cea0cd1148a07c1cb72694be83c3..906cd0358e6f2a27eb8e530308033e1804577ae9 100644 (file)
@@ -54,9 +54,14 @@ 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,
+        osmtype: search_params.get('osmtype'),
+        osmid: search_params.get('osmid'),
+        keywords: search_params.get('keywords'),
+        addressdetails: 1,
+        linkedplaces: 1,
+        childplaces: 1,
+        group_childplaces: 1,
+        polygon_geojson: 1,
         format: 'json'
     };
 
@@ -68,6 +73,6 @@ jQuery(document).ready(function(){
 
         update_data_date();
 
-        init_map_on_detail_page(aFeature.lat, aFeature.lon, aFeature.asgeojson);
+        init_map_on_detail_page(aFeature.lat, aFeature.lon, aFeature.geometry);
     });
 });
\ No newline at end of file