Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neighborhood-outlines

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neighborhood-outlines - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

berlin/charlottenburgWilmersdorf/bezirk.js

4

berlin/charlottenburgWilmersdorf/index.js

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in charlottenburgWilmersdorf

const halensee = require('./halensee');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [charlottenburg,wilmersdorf,schmargendorf,grunewald,westend,charlottenburgNord,halensee];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
charlottenburg,

@@ -19,0 +21,0 @@ wilmersdorf,

// list of individual neighborhoods (Ortsteile) in friedrichshainKreuzberg
const friedrichshain = require('./friedrichshain');
const kreuzberg = require('./kreuzberg');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [friedrichshain,kreuzberg];

@@ -11,4 +12,5 @@

allNeighborhoods,
bezirk,
friedrichshain,
kreuzberg
};

@@ -1,3 +0,1 @@

// list of individual neighborhoods (Ortsteile) in berlin
// so you can use import { kreuzberg, neukoelln } from 'neighborhood-outlines/berlin';
const mitte = require('./mitte').mitte;

@@ -101,22 +99,27 @@ const moabit = require('./mitte').moabit;

// list of Bezirke in berlin
// so you can use import { bezirkCharlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkMitte = require('./mitte').allNeighborhoods;
const bezirkFriedrichshainKreuzberg = require('./friedrichshainKreuzberg').allNeighborhoods;
const bezirkPankow = require('./pankow').allNeighborhoods;
const bezirkCharlottenburgWilmersdorf = require('./charlottenburgWilmersdorf').allNeighborhoods;
const bezirkSpandau = require('./spandau').allNeighborhoods;
const bezirkSteglitzZehlendorf = require('./steglitzZehlendorf').allNeighborhoods;
const bezirkTempelhofSchoeneberg = require('./tempelhofSchoeneberg').allNeighborhoods;
const bezirkNeukoelln = require('./neukoelln').allNeighborhoods;
const bezirkTreptowKoepenick = require('./treptowKoepenick').allNeighborhoods;
const bezirkMarzahnHellersdorf = require('./marzahnHellersdorf').allNeighborhoods;
const bezirkLichtenberg = require('./lichtenberg').allNeighborhoods;
const bezirkReinickendorf = require('./reinickendorf').allNeighborhoods;
// so you can use import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkMitte = require('./mitte').bezirk;
const bezirkFriedrichshainKreuzberg = require('./friedrichshainKreuzberg').bezirk;
const bezirkPankow = require('./pankow').bezirk;
const bezirkCharlottenburgWilmersdorf = require('./charlottenburgWilmersdorf').bezirk;
const bezirkSpandau = require('./spandau').bezirk;
const bezirkSteglitzZehlendorf = require('./steglitzZehlendorf').bezirk;
const bezirkTempelhofSchoeneberg = require('./tempelhofSchoeneberg').bezirk;
const bezirkNeukoelln = require('./neukoelln').bezirk;
const bezirkTreptowKoepenick = require('./treptowKoepenick').bezirk;
const bezirkMarzahnHellersdorf = require('./marzahnHellersdorf').bezirk;
const bezirkLichtenberg = require('./lichtenberg').bezirk;
const bezirkReinickendorf = require('./reinickendorf').bezirk;
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [bezirkMitte,bezirkFriedrichshainKreuzberg,bezirkPankow,bezirkCharlottenburgWilmersdorf,bezirkSpandau,bezirkSteglitzZehlendorf,bezirkTempelhofSchoeneberg,bezirkNeukoelln,bezirkTreptowKoepenick,bezirkMarzahnHellersdorf,bezirkLichtenberg,bezirkReinickendorf]);
// Flattened array of all bezirks
// so you can use import { allBezirks } from 'neighborhood-outlines/berlin';
// You can also import a single Bezirk: import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';}
const allBezirks = [].concat.apply([], [bezirkMitte,bezirkFriedrichshainKreuzberg,bezirkPankow,bezirkCharlottenburgWilmersdorf,bezirkSpandau,bezirkSteglitzZehlendorf,bezirkTempelhofSchoeneberg,bezirkNeukoelln,bezirkTreptowKoepenick,bezirkMarzahnHellersdorf,bezirkLichtenberg,bezirkReinickendorf]);
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [mitte,moabit,hansaviertel,tiergarten,wedding,gesundbrunnen,friedrichshain,kreuzberg,prenzlauerberg,weissensee,blankenburg,heinersdorf,karow,stadtrandsiedlungMalchow,pankow,blankenfelde,buch,franzoesischBuchholz,niederschoenhausen,rosenthal,wilhelmsruh,charlottenburg,wilmersdorf,schmargendorf,grunewald,westend,charlottenburgNord,halensee,spandau,haselhorst,siemensstadt,staaken,gatow,kladow,hakenfelde,falkenhagenerFeld,wilhelmstadt,steglitz,lichterfelde,lankwitz,zehlendorf,dahlem,nikolassee,wannsee,schoeneberg,friedenau,tempelhof,mariendorf,marienfelde,lichtenrade,neukoelln,britz,buckow,rudow,gropiusstadt,altTreptow,plaenterwald,baumschulenweg,johannisthal,niederschoeneweide,altglienicke,adlershof,bohnsdorf,oberschoeneweide,koepenick,friedrichshagen,rahnsdorf,gruenau,mueggelheim,schmoeckwitz,marzahn,biesdorf,kaulsdorf,mahlsdorf,hellersdorf,friedrichsfelde,karlshorst,lichtenberg,falkenberg,malchow,wartenberg,neuHohenschoenhausen,altHohenschoenhausen,fennpfuhl,rummelsburg,reinickendorf,tegel,konradshoehe,heiligensee,frohnau,hermsdorf,waidmannslust,luebars,wittenau,maerkischesViertel,borsigwalde]);
module.exports = {
allNeighborhoods,
allNeighborhoods,
mitte,

@@ -218,2 +221,3 @@ moabit,

borsigwalde,
allBezirks,
bezirkMitte,

@@ -230,3 +234,3 @@ bezirkFriedrichshainKreuzberg,

bezirkLichtenberg,
bezirkReinickendorf
bezirkReinickendorf
};

@@ -12,5 +12,6 @@ // list of individual neighborhoods (Ortsteile) in lichtenberg

const rummelsburg = require('./rummelsburg');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [friedrichsfelde,karlshorst,lichtenberg,falkenberg,malchow,wartenberg,neuHohenschoenhausen,altHohenschoenhausen,fennpfuhl,rummelsburg];

@@ -20,2 +21,3 @@

allNeighborhoods,
bezirk,
friedrichsfelde,

@@ -22,0 +24,0 @@ karlshorst,

@@ -7,5 +7,6 @@ // list of individual neighborhoods (Ortsteile) in marzahnHellersdorf

const hellersdorf = require('./hellersdorf');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [marzahn,biesdorf,kaulsdorf,mahlsdorf,hellersdorf];

@@ -15,2 +16,3 @@

allNeighborhoods,
bezirk,
marzahn,

@@ -17,0 +19,0 @@ biesdorf,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in mitte

const gesundbrunnen = require('./gesundbrunnen');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [mitte,moabit,hansaviertel,tiergarten,wedding,gesundbrunnen];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
mitte,

@@ -18,0 +20,0 @@ moabit,

@@ -7,5 +7,6 @@ // list of individual neighborhoods (Ortsteile) in neukoelln

const gropiusstadt = require('./gropiusstadt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [neukoelln,britz,buckow,rudow,gropiusstadt];

@@ -15,2 +16,3 @@

allNeighborhoods,
bezirk,
neukoelln,

@@ -17,0 +19,0 @@ britz,

@@ -15,5 +15,6 @@ // list of individual neighborhoods (Ortsteile) in pankow

const wilhelmsruh = require('./wilhelmsruh');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [prenzlauerberg,weissensee,blankenburg,heinersdorf,karow,stadtrandsiedlungMalchow,pankow,blankenfelde,buch,franzoesischBuchholz,niederschoenhausen,rosenthal,wilhelmsruh];

@@ -23,2 +24,3 @@

allNeighborhoods,
bezirk,
prenzlauerberg,

@@ -25,0 +27,0 @@ weissensee,

@@ -13,5 +13,6 @@ // list of individual neighborhoods (Ortsteile) in reinickendorf

const borsigwalde = require('./borsigwalde');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [reinickendorf,tegel,konradshoehe,heiligensee,frohnau,hermsdorf,waidmannslust,luebars,wittenau,maerkischesViertel,borsigwalde];

@@ -21,2 +22,3 @@

allNeighborhoods,
bezirk,
reinickendorf,

@@ -23,0 +25,0 @@ tegel,

@@ -11,5 +11,6 @@ // list of individual neighborhoods (Ortsteile) in spandau

const wilhelmstadt = require('./wilhelmstadt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [spandau,haselhorst,siemensstadt,staaken,gatow,kladow,hakenfelde,falkenhagenerFeld,wilhelmstadt];

@@ -19,2 +20,3 @@

allNeighborhoods,
bezirk,
spandau,

@@ -21,0 +23,0 @@ haselhorst,

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in steglitzZehlendorf

const wannsee = require('./wannsee');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [steglitz,lichterfelde,lankwitz,zehlendorf,dahlem,nikolassee,wannsee];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
steglitz,

@@ -19,0 +21,0 @@ lichterfelde,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in tempelhofSchoeneberg

const lichtenrade = require('./lichtenrade');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [schoeneberg,friedenau,tempelhof,mariendorf,marienfelde,lichtenrade];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
schoeneberg,

@@ -18,0 +20,0 @@ friedenau,

@@ -17,5 +17,6 @@ // list of individual neighborhoods (Ortsteile) in treptowKoepenick

const schmoeckwitz = require('./schmoeckwitz');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [altTreptow,plaenterwald,baumschulenweg,johannisthal,niederschoeneweide,altglienicke,adlershof,bohnsdorf,oberschoeneweide,koepenick,friedrichshagen,rahnsdorf,gruenau,mueggelheim,schmoeckwitz];

@@ -25,2 +26,3 @@

allNeighborhoods,
bezirk,
altTreptow,

@@ -27,0 +29,0 @@ plaenterwald,

@@ -1,5 +0,9 @@

const berlin = require('./berlin').allNeighborhoods;
const leipzig = require('./leipzig').allNeighborhoods;
const potsdam = require('./potsdam').allNeighborhoods;
const berlin = require('./berlin').allBezirks;
const leipzig = require('./leipzig').allBezirks;
const potsdam = require('./potsdam').allBezirks;
module.exports = { berlin, leipzig, potsdam };
const berlinNeighborhoods = require('./berlin').allNeighborhoods;
const leipzigNeighborhoods = require('./leipzig').allNeighborhoods;
const potsdamNeighborhoods = require('./potsdam').allNeighborhoods;
module.exports = { berlin, leipzig, potsdam, berlinNeighborhoods, leipzigNeighborhoods, potsdamNeighborhoods };

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in altWest

const burghausenRueckmarsdorf = require('./burghausenRueckmarsdorf');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [lindenau,altlindenau,neulindenau,leutzsch,boehlitzEhrenberg,burghausenRueckmarsdorf];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
lindenau,

@@ -18,0 +20,0 @@ altlindenau,

@@ -1,3 +0,1 @@

// list of individual neighborhoods (Ortsteile) in leipzig
// so you can use import { kreuzberg, neukoelln } from 'neighborhood-outlines/berlin';
const zentrum = require('./mitte').zentrum;

@@ -68,20 +66,25 @@ const zentrumOst = require('./mitte').zentrumOst;

// list of Bezirke in leipzig
// so you can use import { bezirkCharlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkMitte = require('./mitte').allNeighborhoods;
const bezirkNordost = require('./nordost').allNeighborhoods;
const bezirkOst = require('./ost').allNeighborhoods;
const bezirkSuedost = require('./suedost').allNeighborhoods;
const bezirkSued = require('./sued').allNeighborhoods;
const bezirkSuedwest = require('./suedwest').allNeighborhoods;
const bezirkWest = require('./west').allNeighborhoods;
const bezirkAltWest = require('./altWest').allNeighborhoods;
const bezirkNordwest = require('./nordwest').allNeighborhoods;
const bezirkNord = require('./nord').allNeighborhoods;
// so you can use import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkMitte = require('./mitte').bezirk;
const bezirkNordost = require('./nordost').bezirk;
const bezirkOst = require('./ost').bezirk;
const bezirkSuedost = require('./suedost').bezirk;
const bezirkSued = require('./sued').bezirk;
const bezirkSuedwest = require('./suedwest').bezirk;
const bezirkWest = require('./west').bezirk;
const bezirkAltWest = require('./altWest').bezirk;
const bezirkNordwest = require('./nordwest').bezirk;
const bezirkNord = require('./nord').bezirk;
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [bezirkMitte,bezirkNordost,bezirkOst,bezirkSuedost,bezirkSued,bezirkSuedwest,bezirkWest,bezirkAltWest,bezirkNordwest,bezirkNord]);
// Flattened array of all bezirks
// so you can use import { allBezirks } from 'neighborhood-outlines/berlin';
// You can also import a single Bezirk: import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';}
const allBezirks = [].concat.apply([], [bezirkMitte,bezirkNordost,bezirkOst,bezirkSuedost,bezirkSued,bezirkSuedwest,bezirkWest,bezirkAltWest,bezirkNordwest,bezirkNord]);
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [zentrum,zentrumOst,zentrumSuedost,zentrumSued,zentrumWest,zentrumNordwest,zentrumNord,schoenefeldAbtnaundorf,schoenefeldOst,mockauSued,mockauNord,thekla,plaussigPortitz,neustadtNeuschoenefeld,volkmarsdorf,angerCrottendorf,sellerhausenStuenz,paunsdorf,heiterblick,moelkau,engelsdorf,baalsdorf,althenKleinpoesna,reudnitzThonberg,stoetteritz,probstheida,meusdorf,liebertwolkwitz,holzhausen,suedvorstadt,connewitz,marienbrunn,loessnig,doelitzDoesen,schleussig,plagwitz,kleinzschocher,grosszschocher,knautkleebergKnauthain,hartmannsdorfKnautnaundorf,schoenau,gruenauOst,gruenauMitte,gruenauSiedlung,lausenGruenau,gruenauNord,miltitz,lindenau,altlindenau,neulindenau,leutzsch,boehlitzEhrenberg,burghausenRueckmarsdorf,moeckern,wahren,luetzschenaStahmeln,lindenthal,gohlisSued,gohlisMitte,gohlisNord,eutritzsch,seehausen,wiederitzsch]);
module.exports = {
allNeighborhoods,
allNeighborhoods,
zentrum,

@@ -150,2 +153,3 @@ zentrumOst,

wiederitzsch,
allBezirks,
bezirkMitte,

@@ -160,3 +164,3 @@ bezirkNordost,

bezirkNordwest,
bezirkNord
bezirkNord
};

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in mitte

const zentrumNord = require('./zentrumNord');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [zentrum,zentrumOst,zentrumSuedost,zentrumSued,zentrumWest,zentrumNordwest,zentrumNord];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
zentrum,

@@ -19,0 +21,0 @@ zentrumOst,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in nord

const wiederitzsch = require('./wiederitzsch');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [gohlisSued,gohlisMitte,gohlisNord,eutritzsch,seehausen,wiederitzsch];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
gohlisSued,

@@ -18,0 +20,0 @@ gohlisMitte,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in nordost

const plaussigPortitz = require('./plaussigPortitz');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [schoenefeldAbtnaundorf,schoenefeldOst,mockauSued,mockauNord,thekla,plaussigPortitz];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
schoenefeldAbtnaundorf,

@@ -18,0 +20,0 @@ schoenefeldOst,

@@ -6,5 +6,6 @@ // list of individual neighborhoods (Ortsteile) in nordwest

const lindenthal = require('./lindenthal');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [moeckern,wahren,luetzschenaStahmeln,lindenthal];

@@ -14,2 +15,3 @@

allNeighborhoods,
bezirk,
moeckern,

@@ -16,0 +18,0 @@ wahren,

@@ -12,5 +12,6 @@ // list of individual neighborhoods (Ortsteile) in ost

const althenKleinpoesna = require('./althenKleinpoesna');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [neustadtNeuschoenefeld,volkmarsdorf,angerCrottendorf,sellerhausenStuenz,paunsdorf,heiterblick,moelkau,engelsdorf,baalsdorf,althenKleinpoesna];

@@ -20,2 +21,3 @@

allNeighborhoods,
bezirk,
neustadtNeuschoenefeld,

@@ -22,0 +24,0 @@ volkmarsdorf,

@@ -7,5 +7,6 @@ // list of individual neighborhoods (Ortsteile) in sued

const doelitzDoesen = require('./doelitzDoesen');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [suedvorstadt,connewitz,marienbrunn,loessnig,doelitzDoesen];

@@ -15,2 +16,3 @@

allNeighborhoods,
bezirk,
suedvorstadt,

@@ -17,0 +19,0 @@ connewitz,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in suedost

const holzhausen = require('./holzhausen');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [reudnitzThonberg,stoetteritz,probstheida,meusdorf,liebertwolkwitz,holzhausen];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
reudnitzThonberg,

@@ -18,0 +20,0 @@ stoetteritz,

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in suedwest

const hartmannsdorfKnautnaundorf = require('./hartmannsdorfKnautnaundorf');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [schleussig,plagwitz,kleinzschocher,grosszschocher,knautkleebergKnauthain,hartmannsdorfKnautnaundorf];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
schleussig,

@@ -18,0 +20,0 @@ plagwitz,

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in west

const miltitz = require('./miltitz');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [schoenau,gruenauOst,gruenauMitte,gruenauSiedlung,lausenGruenau,gruenauNord,miltitz];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
schoenau,

@@ -19,0 +21,0 @@ gruenauOst,

{
"name": "neighborhood-outlines",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -14,3 +14,6 @@ "main": "index.js",

"json-beautify": "1.1.0"
},
"devDependencies": {
"geojson-dissolve": "3.1.0"
}
}

@@ -5,5 +5,6 @@ // list of individual neighborhoods (Ortsteile) in babelsberg

const babelsbergSued = require('./babelsbergSued');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [kleinGlienicke,babelsbergNord,babelsbergSued];

@@ -13,2 +14,3 @@

allNeighborhoods,
bezirk,
kleinGlienicke,

@@ -15,0 +17,0 @@ babelsbergNord,

@@ -1,3 +0,1 @@

// list of individual neighborhoods (Ortsteile) in potsdam
// so you can use import { kreuzberg, neukoelln } from 'neighborhood-outlines/berlin';
const potsdamWest = require('./westlicheVorstaedte').potsdamWest;

@@ -39,19 +37,24 @@ const kleinGlienicke = require('./babelsberg').kleinGlienicke;

// list of Bezirke in potsdam
// so you can use import { bezirkCharlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkWestlicheVorstaedte = require('./westlicheVorstaedte').allNeighborhoods;
const bezirkBabelsberg = require('./babelsberg').allNeighborhoods;
const bezirkPotsdamNord = require('./potsdamNord').allNeighborhoods;
const bezirkJaegervorstadt = require('./jaegervorstadt').allNeighborhoods;
const bezirkPotsdamSued = require('./potsdamSued').allNeighborhoods;
const bezirkPotsdamSuedost = require('./potsdamSuedost').allNeighborhoods;
const bezirkNordlicheOrtsteile = require('./nordlicheOrtsteile').allNeighborhoods;
const bezirkInnenstadt = require('./innenstadt').allNeighborhoods;
const bezirkNordlicheVorstaedte = require('./nordlicheVorstaedte').allNeighborhoods;
// so you can use import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';
const bezirkWestlicheVorstaedte = require('./westlicheVorstaedte').bezirk;
const bezirkBabelsberg = require('./babelsberg').bezirk;
const bezirkPotsdamNord = require('./potsdamNord').bezirk;
const bezirkJaegervorstadt = require('./jaegervorstadt').bezirk;
const bezirkPotsdamSued = require('./potsdamSued').bezirk;
const bezirkPotsdamSuedost = require('./potsdamSuedost').bezirk;
const bezirkNordlicheOrtsteile = require('./nordlicheOrtsteile').bezirk;
const bezirkInnenstadt = require('./innenstadt').bezirk;
const bezirkNordlicheVorstaedte = require('./nordlicheVorstaedte').bezirk;
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [bezirkWestlicheVorstaedte,bezirkBabelsberg,bezirkPotsdamNord,bezirkJaegervorstadt,bezirkPotsdamSued,bezirkPotsdamSuedost,bezirkNordlicheOrtsteile,bezirkInnenstadt,bezirkNordlicheVorstaedte]);
// Flattened array of all bezirks
// so you can use import { allBezirks } from 'neighborhood-outlines/berlin';
// You can also import a single Bezirk: import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';}
const allBezirks = [].concat.apply([], [bezirkWestlicheVorstaedte,bezirkBabelsberg,bezirkPotsdamNord,bezirkJaegervorstadt,bezirkPotsdamSued,bezirkPotsdamSuedost,bezirkNordlicheOrtsteile,bezirkInnenstadt,bezirkNordlicheVorstaedte]);
// Flattened array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin';
const allNeighborhoods = [].concat.apply([], [potsdamWest,kleinGlienicke,sacrow,golm,jaegervorstadt,brandenburgerVorstadt,industriegelaende,forstPotsdamSued,drewitz,uetzPaaren,marquardt,satzkorn,grossGlienicke,nedlitz,wildpark,noerdlicheInnenstadt,babelsbergNord,eiche,grube,berlinerVorstadt,kirchsteigfeld,fahrland,babelsbergSued,teltowerVorstadt,schlaatz,waldstadtIi,bornim,bornstedt,suedlicheInnenstadt,nauenerVorstadt,stern,neuFahrland,templinerVorstadt,waldstadtI]);
module.exports = {
allNeighborhoods,
allNeighborhoods,
potsdamWest,

@@ -91,2 +94,3 @@ kleinGlienicke,

waldstadtI,
allBezirks,
bezirkWestlicheVorstaedte,

@@ -100,3 +104,3 @@ bezirkBabelsberg,

bezirkInnenstadt,
bezirkNordlicheVorstaedte
bezirkNordlicheVorstaedte
};
// list of individual neighborhoods (Ortsteile) in innenstadt
const noerdlicheInnenstadt = require('./noerdlicheInnenstadt');
const suedlicheInnenstadt = require('./suedlicheInnenstadt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [noerdlicheInnenstadt,suedlicheInnenstadt];

@@ -11,4 +12,5 @@

allNeighborhoods,
bezirk,
noerdlicheInnenstadt,
suedlicheInnenstadt
};
// list of individual neighborhoods (Ortsteile) in jaegervorstadt
const jaegervorstadt = require('./jaegervorstadt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [jaegervorstadt];

@@ -10,3 +11,4 @@

allNeighborhoods,
bezirk,
jaegervorstadt
};

@@ -8,5 +8,6 @@ // list of individual neighborhoods (Ortsteile) in nordlicheOrtsteile

const neuFahrland = require('./neuFahrland');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [uetzPaaren,marquardt,satzkorn,grossGlienicke,fahrland,neuFahrland];

@@ -16,2 +17,3 @@

allNeighborhoods,
bezirk,
uetzPaaren,

@@ -18,0 +20,0 @@ marquardt,

// list of individual neighborhoods (Ortsteile) in nordlicheVorstaedte
const berlinerVorstadt = require('./berlinerVorstadt');
const nauenerVorstadt = require('./nauenerVorstadt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [berlinerVorstadt,nauenerVorstadt];

@@ -11,4 +12,5 @@

allNeighborhoods,
bezirk,
berlinerVorstadt,
nauenerVorstadt
};

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in potsdamNord

const bornstedt = require('./bornstedt');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [sacrow,golm,nedlitz,eiche,grube,bornim,bornstedt];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
sacrow,

@@ -19,0 +21,0 @@ golm,

@@ -9,5 +9,6 @@ // list of individual neighborhoods (Ortsteile) in potsdamSued

const waldstadtI = require('./waldstadtI');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [industriegelaende,forstPotsdamSued,teltowerVorstadt,schlaatz,waldstadtIi,templinerVorstadt,waldstadtI];

@@ -17,2 +18,3 @@

allNeighborhoods,
bezirk,
industriegelaende,

@@ -19,0 +21,0 @@ forstPotsdamSued,

@@ -5,5 +5,6 @@ // list of individual neighborhoods (Ortsteile) in potsdamSuedost

const stern = require('./stern');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [drewitz,kirchsteigfeld,stern];

@@ -13,2 +14,3 @@

allNeighborhoods,
bezirk,
drewitz,

@@ -15,0 +17,0 @@ kirchsteigfeld,

@@ -5,5 +5,6 @@ // list of individual neighborhoods (Ortsteile) in westlicheVorstaedte

const wildpark = require('./wildpark');
const bezirk = require('./bezirk');
// Array of all neighborhoods
// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';
// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';
const allNeighborhoods = [potsdamWest,brandenburgerVorstadt,wildpark];

@@ -13,2 +14,3 @@

allNeighborhoods,
bezirk,
potsdamWest,

@@ -15,0 +17,0 @@ brandenburgerVorstadt,

@@ -7,10 +7,21 @@ ### Introduction

Inside each of these folders is a single JSON file for each of the neighborhoods (Ortsteile).
You can choose to pull in an entire city with all the neighborhoods, or import each one as needed. You can also pull in a single district at a time.
You can choose to pull in an entire city with all the districts, or import each one as needed.
You can also pull in the entire city with all the nieghborhoods, or import each one as needed.
```
import { moabit, wedding, schoeneberg } from 'neighborhood-outlines/berlin';
// importing a single Bezirk for a city
import { bezirkLichtenberg } from 'neighborhoods-outlines/berlin';
// importing ALL the Bezirke for a city
import { berlin, leipzig } from 'neighborhood-outlines';
or
import { allBezirks } from 'neighborhood-outlines/berlin;
// importing a selection of Ortsteile for a city
import { moabit, wedding, schoeneberg } from 'neighborhood-outlines/berlin';
// importing ALL the Ortsteile for a city
import { berlinNeighborhoods, leipzigNeighborhoods } from 'neighborhood-outlines';
or
import { allNeighborhoods } from 'neighborhood-outlines/berlin;
```

@@ -17,0 +28,0 @@

const beautify = require("json-beautify");
const fs = require('fs');
const dissolve = require('geojson-dissolve');

@@ -48,3 +49,2 @@ const berlinFeatureCollection = require('./geoJSON/berlin.json');

const neighborhoodNames = shapedFeatures.filter(shape => removeUmlauts(snakeToCamel(shape.bezirk)) === bezirk).map(shape => removeUmlauts(snakeToCamel(shape.ortsteil)));
let string = `// list of individual neighborhoods (Ortsteile) in ${bezirk}\n`;

@@ -55,4 +55,5 @@ neighborhoodNames.forEach(name => {

string += `\n// Array of all neighborhoods\n// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin/friedrichshainKreuzberg';`
string += `\nconst allNeighborhoods = [${neighborhoodNames}];\n\nmodule.exports = { \n allNeighborhoods, \n ${neighborhoodNames.join(",\n ")}\n};\n`;
string += `const bezirk = require('./bezirk');\n`
string += `\n// Array of all neighborhoods\n// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin/friedrichshainKreuzberg';`
string += `\nconst allNeighborhoods = [${neighborhoodNames}];\n\nmodule.exports = { \n allNeighborhoods, \n bezirk,\n ${neighborhoodNames.join(",\n ")}\n};\n`;
return string;

@@ -64,8 +65,24 @@ }

bezirke.forEach(bezirk => {
const ortsteileForBezirk = featureCollections[cityName].features.filter(feature => removeUmlauts(snakeToCamel(feature.properties.BEZIRK)) === bezirk);
const combinedGeoJSON = dissolve(ortsteileForBezirk);
const geometryType = combinedGeoJSON.type;
const bezirkJSON = {
bezirk,
type: geometryType,
coordinates: geometryType === 'MultiPolygon'
? combinedGeoJSON.coordinates.map(coordsArr => coordsArr[0].map(coords => ({ lat: coords[1], lng: coords[0] })))
: combinedGeoJSON.coordinates[0].map(coords => ({ lat: coords[1], lng: coords[0] }))
};
fs.writeFile(`${__dirname}/${cityName}/${bezirk}/bezirk.js`, `module.exports = ${beautify(bezirkJSON, null, 2, 100)}\n`, (err) => console.log('err', err));
fs.writeFile(`${__dirname}/${cityName}/${bezirk}/index.js`, createIndex(bezirk), (err) => console.log('err', err));
});
const capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
// creates the main index
const createMainIndex = (bezirke) => {
let string = `// list of individual neighborhoods (Ortsteile) in ${cityName}\n// so you can use import { kreuzberg, neukoelln } from 'neighborhood-outlines/berlin';\n`;
let string = '';
const neighborhoods = shapedFeatures.reduce((neighborhoodsList, nextShape) => {

@@ -80,14 +97,16 @@ const bezirk = removeUmlauts(snakeToCamel(nextShape.bezirk));

string += `\n// list of Bezirke in ${cityName}\n// so you can use import { bezirkCharlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';\n`;
string += `\n// list of Bezirke in ${cityName}\n// so you can use import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';\n`;
const bezirks = bezirke.reduce((bezirkList, nextBezirk) => {
const capitalizedBezirk = `${nextBezirk.charAt(0).toUpperCase()}${nextBezirk.slice(1)}`;
string += `const bezirk${capitalizedBezirk} = require('./${nextBezirk}').allNeighborhoods;\n`;
bezirkList.push(`bezirk${capitalizedBezirk}`);
string += `const bezirk${capitalize(nextBezirk)} = require('./${nextBezirk}').bezirk;\n`;
bezirkList.push(`bezirk${capitalize(nextBezirk)}`);
return bezirkList;
}, [])
string += `\n// Flattened array of all neighborhoods\n// so you can use import { allNeighborhoods } from 'neighborhoods-outlines/berlin';`
string += `\nconst allNeighborhoods = [].concat.apply([], [${bezirks}]);\n\nmodule.exports = {\n allNeighborhoods, \n ${neighborhoods.join(",\n ")}, \n ${bezirks.join(",\n ")}\n};\n`;
string += `\n// Flattened array of all bezirks \n// so you can use import { allBezirks } from 'neighborhood-outlines/berlin';\n// You can also import a single Bezirk: import { charlottenburgWilmersdorf } from 'neighborhood-outlines/berlin';}`
string += `\nconst allBezirks = [].concat.apply([], [${bezirks}]);\n`;
string += `\n// Flattened array of all neighborhoods \n// so you can use import { allNeighborhoods } from 'neighborhood-outlines/berlin';`
string += `\nconst allNeighborhoods = [].concat.apply([], [${neighborhoods}]);\n\nmodule.exports = {\n allNeighborhoods,\n ${neighborhoods.join(",\n ")}, \n allBezirks, \n ${bezirks.join(",\n ") } \n};\n`;
return string;

@@ -94,0 +113,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc