{"id":27223579,"url":"https://github.com/r-dent/berlinlocals","last_synced_at":"2025-10-25T19:04:04.195Z","repository":{"id":151170766,"uuid":"254956509","full_name":"r-dent/BerlinLocals","owner":"r-dent","description":"A map of local businesses with delivery service in Berlin.","archived":false,"fork":false,"pushed_at":"2020-04-15T12:10:44.000Z","size":381,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T09:12:42.212Z","etag":null,"topics":["berlin","covid-19","delivery","local","local-business","local-search","localbusiness","location-data","map","restaurant","shopping"],"latest_commit_sha":null,"homepage":"https://r-dent.github.io/BerlinLocals/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-dent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-11T21:13:41.000Z","updated_at":"2020-06-16T09:48:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"651c7f0c-0fea-4db0-a882-01f044c1ce1d","html_url":"https://github.com/r-dent/BerlinLocals","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r-dent/BerlinLocals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dent%2FBerlinLocals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dent%2FBerlinLocals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dent%2FBerlinLocals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dent%2FBerlinLocals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-dent","download_url":"https://codeload.github.com/r-dent/BerlinLocals/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-dent%2FBerlinLocals/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264005172,"owners_count":23542829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["berlin","covid-19","delivery","local","local-business","local-search","localbusiness","location-data","map","restaurant","shopping"],"created_at":"2025-04-10T09:09:37.481Z","updated_at":"2025-10-25T19:04:04.102Z","avatar_url":"https://github.com/r-dent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Berlin Locals - Map\n\nThis project is taking [data about local businesses](https://daten.berlin.de/datensaetze/gastronomien-laden-und-andere-gesch%C3%A4fte-mit-liefer-und-abholservice) from the [Berlin Open Data](https://daten.berlin.de) project and displays it in a customizable map that can be embedded on a website.\n\nYou can embed the map on your own website by adding the following code:\n\n```html\n\u003cdiv id=\"mapid\" style=\"height: 200px;\"\u003e\u003c/div\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/r-dent/BerlinLocals@master/map.js\" onload=\"new LocalBusinessMap('mapid')\"\u003e\u003c/script\u003e\n```\n\nIf you want to customize the map, you can pass some options to the initializer.\n\n```html\n\u003cdiv id=\"mapid\" style=\"height: 200px;\"\u003e\u003c/div\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/r-dent/BerlinLocals@master/map.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var localsMap = new LocalBusinessMap('mapid', {\n        mapBoxKey: 'your_mapbox_key',\n        mapBoxStyle: 'username/your_style_id',\n        clusterBelowZoom: 15,\n        showLocateButton: true,\n        showCategorySelection: true\n    })\n\u003c/script\u003e\n```\n\n### Initializer options\n\n Option | Type | Description | Default\n --- | --- | --- | ---\n `showLocateButton` | `boolean` | If you want to show a button that let´s the user zoom to his/her own location. | `false`\n `showCategorySelection` | `boolean` | Show a category selection dropdown in the top right corner of the map. | `true`\n `clusterBelowZoom` | `number` | You can use clustering to group multiple markers into one for a better overview. To do that just provide a zoom level below which items will get clustered. | `undefined`\n `onDataReady` | `function` | A Handler that will be called after loading is done and the map is ready. The resutling categories will be passed as data. | `undefined`\n `mapBoxStyle` | `string` | If you have customized your own map style with [Mapbox](https://www.mapbox.com/), you can use it for rendering by providing this parameter together with your Mapbox API key. If your Mapbox Style URL is something like `mapbox://styles/username/your_style_id`, use `username/your_style_id` for this parameter. If you don´t have a Mapbox account, [OpenStreetMap](https://www.openstreetmap.org) will be used as fallback. | `undefined`\n `mapBoxKey` | `string` | Your API key from [Mapbox](https://www.mapbox.com/). | `undefined`\n\n ### Custom category selection\n\n Here´s an example how to create custom controls for the category selection.\n\n ```html\n\u003cdiv id=\"mapid\" style=\"height: 200px\"\u003e\u003c/div\u003e\n\u003cdiv id=\"button-container\"\u003e\u003c/div\u003e\n\u003cscript src=\"map.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var map = new LocalBusinessMap('mapid', {\n        showCategorySelection: false,\n        onDataReady: function(categories) {\n            var buttonsHTML = ''\n            for (index in categories) {\n                category = categories[index]\n                buttonsHTML += '\u003cbutton onclick=\"map.selectCategory(\\''+ category +'\\')\"\u003e'+ category +'\u003c/button\u003e\\n'\n            }\n            document.getElementById('button-container').innerHTML = buttonsHTML\n        }\n    })\n\u003c/script\u003e\n ```\n\nPlease [file an issue](https://github.com/r-dent/BerlinLocals/issues/new) or [contact me](https://romangille.com/#contact) if you have feedback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-dent%2Fberlinlocals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-dent%2Fberlinlocals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-dent%2Fberlinlocals/lists"}