{"id":35294612,"url":"https://github.com/bopen/ckanext-mapsearch","last_synced_at":"2026-04-07T06:32:38.196Z","repository":{"id":15446166,"uuid":"18179017","full_name":"bopen/ckanext-mapsearch","owner":"bopen","description":"A CKAN extension to add an scale-aware map-centred search","archived":false,"fork":false,"pushed_at":"2014-11-07T11:53:36.000Z","size":1672,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-03-13T04:51:03.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bopen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-27T14:38:59.000Z","updated_at":"2020-07-27T01:25:56.000Z","dependencies_parsed_at":"2022-08-26T05:21:37.973Z","dependency_job_id":null,"html_url":"https://github.com/bopen/ckanext-mapsearch","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bopen/ckanext-mapsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bopen%2Fckanext-mapsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bopen%2Fckanext-mapsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bopen%2Fckanext-mapsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bopen%2Fckanext-mapsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bopen","download_url":"https://codeload.github.com/bopen/ckanext-mapsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bopen%2Fckanext-mapsearch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31503382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-30T16:16:53.701Z","updated_at":"2026-04-07T06:32:38.190Z","avatar_url":"https://github.com/bopen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CKAN Mapsearch extension\n========================\n\nABOUT\n-----\n\nMapsearch is a CKAN-extension to add a scale-aware, map-centered search\nto the *CKAN spatial extension* [(ckanext-spatial)](https://github.com/ckan/ckanext-spatial).\n\n![Full screenshot](https://raw.githubusercontent.com/bopen/ckanext-mapsearch/master/ckanext-mapsearch/ckanext/mapsearch/public/mapsearch_shot.png)\n\nFEATURES\n--------\n\nIts main distinguishing factor is the scale-awareness of the\nsearch-engine.\n\nThis scale-awareness lets you see how many results there are on 5\ndifferent scales for the same geographic area of interest, by using an\nextra area field during indexing. see [this](#4-prepare-the-schema-for-the-extension) paragraph below.\n\n![screenshot scales](https://raw.githubusercontent.com/bopen/ckanext-mapsearch/master/ckanext-mapsearch/ckanext/mapsearch/public/mapsearch_scales.png)\n\nDEMO\n----\n\nsee a working demo on [bopen.eu](http://ckan.bopen.eu/mapsearch).\n\nINSTALLATION\n------------\n\n*ckanext-mapsearch* is installed like any ckan extension. However, as it\ndepends on *ckanext-spatial* to be installed, make sure mapsearch comes\nafter ckanext-spatial in the plugin list (see [below](#2-add-the-extension-as-a-plugin)).\n\nIt also requires solr \u003e= 3.1, as per http://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#choosing-a-backend-for-the-spatial-search.\n\n### 1. install the extension with pip\n\n```\npip install -e  git+https://github.com/bopen/ckanext-mapsearch.git#egg=ckanext-mapsearch\n```\n\n### 2. add the extension as a plugin\n\nadd the plugin to the plugins-line in your configuration *.ini* file.\n\n**NB. It must be included with, but after *spatial\\_query***\n\n```\nckan.plugins = stats text_preview resource_proxy recline_preview spatial_metadata spatial_query harvest csw_harvester ckan_harvester mapsearch\n```\n\n### 3. configure the extension\n\n-   set the initial mapextent\n\n    add a line to your ini-file specifying the initial map extent ([bottom-left, upper-right]). To show Europe area on loadpage add the following line:\n\n```\nckanext.mapsearch.initial_map_extent = [[30.4806, -12.9449], [72.9295, 40.7210]]\n```\n\n-   make sure the spatial extension uses solr-spatial field as the\n    backend.\n\n    **NB.: the search-backend of the spatial extension *must* be set to\n    ‘solr-spatial-field’, as with simple ‘solr’ the extension will work\n    poorly and with ‘postgis’ it will not work at all!**\n\n```\nckanext.spatial.search_backend = solr-spatial-field\n```\n\n### 4. prepare the schema for the extension\n\nthe extension needs an extra field in the solr index, add the following\nline to the schema.xml file in the ‘\\\u003cfields\\\u003e’ section.\n\n```\n\u003cfields\u003e\n    \u003c!-- ... --\u003e\n    \u003cfield name=\"spatial_area\" type=\"float\" indexed=\"true\" stored=\"true\" /\u003e\n\u003c/fields\u003e\n```\n\n### 5. restart solr\n\nTESTS\n-----\n\nthere are few basic selenium webdriver tests in `tests` folder. \n\nNB: \n- You will need full working instance with a minimum of data to run the tests. \n- The tests assume you have an instance running on 'http://localhost:5000/mapsearch'. \nHowever, you can override this by setting the *environment variable* MAPSEARCH_INSTANCE_URL appropriately.\n\n```\nexport MAPSEARCH_INSTANCE_URL=\"http://ckan.bopen.eu/mapsearch\"\n```\n\nLICENSE\n=======\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program. If not, see http://www.gnu.org/licenses/.\n\nAcknowledgements\n================\nThe development of this software, up to version *0.1.2*, has been partially funded by `Filas \u003chttp://www.filas.eu\u003e`_ under `POR FESR Lazio 2007-2013 \u003chttp://porfesr.lazio.it\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbopen%2Fckanext-mapsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbopen%2Fckanext-mapsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbopen%2Fckanext-mapsearch/lists"}