├── .gitignore ├── Locations.ods ├── logPatch.js ├── nbproject ├── project.xml └── project.properties ├── package.json ├── README.md ├── main.js ├── LICENSE └── config.sample.json /.gitignore: -------------------------------------------------------------------------------- 1 | /nbproject/private/ 2 | /config.json 3 | /node_modules 4 | -------------------------------------------------------------------------------- /Locations.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-schild/churchtools-calendarlocations/main/Locations.ods -------------------------------------------------------------------------------- /logPatch.js: -------------------------------------------------------------------------------- 1 | const originalWarn = console.warn; 2 | 3 | console.warn = function(...args) { 4 | 5 | if (!args.some(arg => typeof arg === 'string' && !arg.includes('Trying transparent relogin with login token'))) { 6 | // Only supress this warning 7 | originalWarn.apply(this, args); 8 | } else { 9 | console.debug(args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.web.clientproject 4 | 5 | 6 | churchtools-calendarlocations 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "churchtools-calendarlocations", 3 | "version": "1.0.0", 4 | "keywords": ["churchtools", "ics", "icalendar", "ical", "resources"], 5 | "main": "main.js", 6 | "scripts": { 7 | "start": "node main.js -c" 8 | }, 9 | "author": "a.schild", 10 | "contributors": [], 11 | "dependencies": { 12 | "@churchtools/churchtools-client": "^1.3.12", 13 | "axios-cookiejar-support": "^4.0.0", 14 | "tough-cookie": "^4.0.0", 15 | "pino": "^8.0.0", 16 | "yargs": "^17.7" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | auxiliary.org-netbeans-modules-javascript-nodejs.enabled=true 2 | auxiliary.org-netbeans-modules-javascript-nodejs.node_2e_default=true 3 | auxiliary.org-netbeans-modules-javascript-nodejs.run_2e_enabled=true 4 | auxiliary.org-netbeans-modules-javascript-nodejs.run_2e_restart=true 5 | auxiliary.org-netbeans-modules-javascript-nodejs.start_2e_args=-c 6 | auxiliary.org-netbeans-modules-javascript-nodejs.start_2e_file=main.js 7 | auxiliary.org-netbeans-modules-javascript-nodejs.sync_2e_enabled=true 8 | browser.autorefresh.Chrome.INTEGRATED=true 9 | browser.highlightselection.Chrome.INTEGRATED=true 10 | browser.run=false 11 | files.encoding=UTF-8 12 | run.as=node.js 13 | site.root.folder= 14 | source.folder= 15 | start.file=index.html 16 | web.context.root=/churchtools-calendarlocations 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # churchtools-calendarlocations 2 | Update calendar event location based on bookes resources 3 | 4 | 5 | Churchtool has a calendar system, where you can specify the 6 | location of a calendar entry via the web UI. 7 | 8 | It also has the option to create templates for these calendar entries. 9 | Unfortunally the location is not stored in the template and the process 10 | to add a location to a calendar entry is not that simple. 11 | 12 | When you book resources (More precise some rooms), then you know 13 | the location of this/these room(s) and churchtool could 14 | fill in the location from this place. 15 | 16 | Since churchtool does not do this, we have written this script which 17 | looks for public calendar entries with no location and then 18 | checks if some resources have been booked and fills in the 19 | location from the resource location 20 | 21 | It does not process past calendar entries, no reason to change 22 | the history. 23 | 24 | 25 | ## Installation 26 | ```bash 27 | git clone https://github.com/a-schild/churchtools-calendarlocations.git 28 | cd churchtools-calendarlocations 29 | npm install 30 | ``` 31 | 32 | ## Configuration 33 | Copy over `config.sample.json` to `config.json` and adapt the config values. 34 | 35 | Then you have to specify the addresses associated with the resources. 36 | 37 | For this you can use the `Locations.ods` file, just open it in your spread sheet software 38 | and add/modify the locations. 39 | On the last line, in the last column, you will have the generated json config part 40 | to be put in your `config.json` file. 41 | 42 | (Just make sure that the numeric format it using iso format, and not the , as decimal separator) 43 | 44 | ## Running 45 | ```bash 46 | node main.js [option] 47 | ``` 48 | Usually you start this every day, every hour with a cron job 49 | 50 | ### Options 51 | - -h Help, show this help 52 | - -c List all calendars the user has read rights 53 | - -r List all resources the user has read rights 54 | - --dry-run Process all entries, but don't apply changes to calendar (Simulation mode) 55 | - -d Turn on debug mode, overrides config file settings 56 | 57 | We use this JS client to interact with the CT installation 58 | 59 | https://github.com/churchtools/churchtools-js-client 60 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | // 3 | // Overwrite the log.warn method to not show the transparent login message 4 | // 5 | require('./logPatch.js'); 6 | 7 | const { ChurchToolsClient, activateLogging } = require('@churchtools/churchtools-client'); 8 | const axiosCookieJarSupport = require('axios-cookiejar-support'); 9 | const tough = require('tough-cookie'); 10 | const fs = require('fs'); 11 | const pino = require('pino'); 12 | 13 | 14 | // 15 | // Load config from config.json 16 | // 17 | let rawdata = fs.readFileSync('config.json'); 18 | let config = JSON.parse(rawdata); 19 | // Init logger 20 | const logger = pino({ 21 | level: config.log_level 22 | // level: 'debug' 23 | }); 24 | 25 | 26 | // Main code 27 | const args = require('yargs') 28 | .scriptName("churchtools-calendarlocations") 29 | .usage('$0 [args]') 30 | .help('h') 31 | .alias('h', 'help') 32 | .command('hello [name]', 'welcome to churchtools-calendarlocations') 33 | .option('d',{alias:'debug', describe:"Switch on debug level (Overrides config value)"}) 34 | .option('r',{alias:'resources', describe: "List all resources"}) 35 | .option('c',{alias:'calendars', describe: "List all calendars"}) 36 | .options('dry-run', {describe: "Only show what would be updated"}) 37 | .argv; 38 | 39 | if (args.debug) { 40 | logger.level= "debug"; 41 | } 42 | 43 | const myCT= new ChurchToolsClient(); 44 | myCT.setCookieJar(axiosCookieJarSupport.wrapper, new tough.CookieJar()); 45 | myCT.setBaseUrl(config.site_url); 46 | myCT.setUnauthorizedInterceptor(config.auth_token); 47 | activateLogging(); 48 | 49 | /** Force login */ 50 | function preLogin() { 51 | myCT.get('/whoami?only_allow_authenticated=true').then(whoAmI => { 52 | //console.log(`Hello ${whoAmI.firstName} ${whoAmI.lastName}!`); 53 | }); 54 | } 55 | 56 | preLogin(); 57 | 58 | if (args.resources) { 59 | listResources(); 60 | } else if (args.calendars) { 61 | listCalendars(); 62 | } else { 63 | processAppointsments(); 64 | } 65 | 66 | 67 | function processAppointsments() { 68 | 69 | //myCT.get('/whoami?only_allow_authenticated=true').then(whoAmI => { 70 | // console.dir(whoAmI); 71 | // console.log(`Hello ${whoAmI.firstName} ${whoAmI.lastName}!`); 72 | //}); 73 | 74 | let calList= []; 75 | for (let calConfig in config.process_calendars) { 76 | calList.push(config.process_calendars[calConfig].id); 77 | //logger.debug("Not found in config: "+config.process_calendars[calConfig].id+" "+all_calendars[cal].id); 78 | } 79 | logger.debug("Calendars to process: "+calList); 80 | const now= new Date(); 81 | let fromDate= addDays(now, 0 - config.past_days); 82 | let toDate= addDays(now, config.future_days); 83 | 84 | myCT.get('/calendars/appointments', 85 | {'calendar_ids': calList, 86 | 'from': getISODateStr(fromDate), 87 | 'to': getISODateStr(toDate)} ).then(all_appointments => { 88 | logger.debug('Got '+all_appointments.length+' calendar entries'); 89 | all_appointments.forEach(processCalEntry); 90 | }); 91 | } 92 | 93 | function processCalEntry(currentValue, index) { 94 | if ((currentValue.base.isInternal && config.process_internal_events) || 95 | (!currentValue.base.isInternal && config.process_non_internal_events)) { 96 | logger.trace('Checking: '+index); 97 | logger.trace(currentValue.base); 98 | logger.trace(currentValue.base.address); 99 | if (currentValue.base.address) { 100 | // Has address entry 101 | logger.debug('Has address: '+index); 102 | logger.trace(currentValue.base.address); 103 | } else { 104 | logger.trace('Has NO address, check for resources: '+index); 105 | let startDate= new Date(currentValue.calculated.startDate); 106 | let getURL= '/calendars/'+currentValue.base.calendar.id+'/appointments/'+currentValue.base.id+'/'+getISODateStr(startDate); 107 | logger.trace('Retrieve details from '+getURL); 108 | myCT.get(getURL).then(all_details => { 109 | let bookings= all_details.bookings; 110 | if (bookings.length > 0) { 111 | logger.debug("Got details and "+bookings.length+" bookings"); 112 | let booking1= bookings[0]; 113 | logger.debug("Booking for resource: "+booking1.base.resource.id); 114 | // Now search on config for location details 115 | let foundLocation= false; 116 | let foundLocationDetails= null; 117 | for (let locationIndex in config.locations) { 118 | let locationDetail= config.locations[locationIndex]; 119 | logger.trace("Comparing location with id "+locationDetail.locationID); 120 | logger.trace(locationDetail); 121 | if (locationDetail.locationID === booking1.base.resource.id) { 122 | logger.info('Found location in config '+booking1.base.resource.id); 123 | logger.debug(locationDetail); 124 | foundLocation= true; 125 | foundLocationDetails= locationDetail; 126 | } else { 127 | // logger.debug(locationDetail); 128 | } 129 | } 130 | if (!foundLocation) { 131 | logger.warn("No location found in config for resource id "+booking1.base.resource.id+" "+booking1.base.resource.name); 132 | } else { 133 | // Now update calendar entry with the location/address 134 | logger.info("Updating location from resource id "+booking1.base.resource.id+" in calendar: "+currentValue.base.calendar.id+" bookingID:"+currentValue.base.id); 135 | logger.debug(currentValue); 136 | let entryURL= '/calendars/'+currentValue.base.calendar.id+'/appointments/'+currentValue.base.id; 137 | let jsonText= '{ '+ 138 | '"meetingAt":"'+foundLocationDetails.meetingAt+'",'+ 139 | '"street":"'+foundLocationDetails.street+'",'+ 140 | '"addition": "'+foundLocationDetails.addition+'",'+ 141 | '"district":"'+foundLocationDetails.district+'",'+ 142 | '"zip": "'+foundLocationDetails.zip+'",'+ 143 | '"city": "'+foundLocationDetails.city+'",'+ 144 | '"country": "'+foundLocationDetails.country+'",'+ 145 | '"latitude": "'+foundLocationDetails.latitude+'",'+ 146 | '"longitude": "'+foundLocationDetails.longitude+'"'+ 147 | '}'; 148 | const adrObject = JSON.parse(jsonText); 149 | myCT.get(entryURL).then(one_detail => { 150 | logger.debug("Updating original object"); 151 | logger.debug(one_detail); 152 | logger.debug("with:"); 153 | one_detail.appointment.address= adrObject; 154 | one_detail.appointment.caption= one_detail.appointment.caption+"."; 155 | if (one_detail.appointment.allDay) { 156 | logger.warn("All day event, fix start+end time"); 157 | one_detail.appointment.startDate= one_detail.appointment.startDate+"T00:00:00Z"; 158 | one_detail.appointment.endDate= one_detail.appointment.endDate+"T23:59:59Z"; 159 | } 160 | logger.debug(one_detail); 161 | if (args.dryRun) { 162 | logger.info("Dry run, not updating appointment location"); 163 | } else { 164 | myCT.put(entryURL, one_detail.appointment); 165 | } 166 | }); 167 | } 168 | } 169 | }); 170 | } 171 | } else { 172 | logger.info('Not processing: '+index+" appointment is public/private restricted"); 173 | logger.trace(currentValue.base.id); 174 | logger.trace(currentValue.base); 175 | logger.trace(currentValue.base.isInternal); 176 | logger.trace(index); 177 | } 178 | } 179 | 180 | function addDays(date, days) { 181 | var result = new Date(date); 182 | result.setDate(result.getDate() + days); 183 | return result; 184 | } 185 | 186 | function listCalendars() { 187 | myCT.get('/calendars').then(all_calendars => { 188 | // Loop through all calendars visible for the user 189 | for (var calIndex in all_calendars) { 190 | var thisCalendar= all_calendars[calIndex]; 191 | console.log("Calendar id: ["+thisCalendar.id+"] "+thisCalendar.name); 192 | } 193 | }); 194 | } 195 | 196 | function listResources() { 197 | myCT.get('/resource/masterdata').then(all_masterdata => { 198 | // Loop through all calendars visible for the user 199 | logger.debug(all_masterdata); 200 | for (var typeIndex in all_masterdata.resourceTypes) { 201 | var thisType= all_masterdata.resourceTypes[typeIndex]; 202 | console.log("Resource type id: ["+thisType.id+"] "+thisType.name); 203 | } 204 | for (var resIndex in all_masterdata.resources) { 205 | var thisResource= all_masterdata.resources[resIndex]; 206 | console.log("Resource id: ["+thisResource.id+"] type: ["+thisResource.resourceTypeId+"] "+thisResource.name); 207 | } 208 | }); 209 | } 210 | 211 | function getISODateStr(inDate) { 212 | return inDate.toISOString().split('T')[0]; 213 | } 214 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /config.sample.json: -------------------------------------------------------------------------------- 1 | { 2 | "log_level": "debug", 3 | "site_url": "https://my.church.tools", 4 | "auth_token": "", 5 | "past_days": 0, 6 | "future_days": 370, 7 | "process_private_events": false, 8 | "process_calendars": [ 9 | { 10 | "id": 2 11 | }, 12 | { 13 | "id": 79 14 | }], 15 | "locations": 16 | [{ 17 | "locationID": 38, 18 | "meetingAt": "Pfadi trotz allem", 19 | "street": "Allmendstrasse 33", 20 | "addition": "", 21 | "district": "", 22 | "zip": "2562", 23 | "city": "Port", 24 | "country": "CH", 25 | "latitude": 47.1193, 26 | "longitude": 7.2457 27 | }, { 28 | "locationID": 33, 29 | "meetingAt": "Matthäuszentrum", 30 | "street": "Allmendstrasse 33", 31 | "addition": "", 32 | "district": "", 33 | "zip": "2562", 34 | "city": "Port", 35 | "country": "CH", 36 | "latitude": 47.11724, 37 | "longitude": 7.25555 38 | }, { 39 | "locationID": 32, 40 | "meetingAt": "Kapelle", 41 | "street": "Allmendstrasse 33", 42 | "addition": "", 43 | "district": "", 44 | "zip": "2560", 45 | "city": "Nidau", 46 | "country": "CH", 47 | "latitude": 47.12508, 48 | "longitude": 7.24001 49 | }, { 50 | "locationID": 31, 51 | "meetingAt": "Kirche", 52 | "street": "Allmendstrasse 33", 53 | "addition": "", 54 | "district": "", 55 | "zip": "2560", 56 | "city": "Nidau", 57 | "country": "CH", 58 | "latitude": 47.12508, 59 | "longitude": 7.24033 60 | }, { 61 | "locationID": 30, 62 | "meetingAt": "Kirchgemeindehaus", 63 | "street": "Allmendstrasse 33", 64 | "addition": "", 65 | "district": "", 66 | "zip": "2560", 67 | "city": "Nidau", 68 | "country": "CH", 69 | "latitude": 47.12302, 70 | "longitude": 7.2488 71 | }, { 72 | "locationID": 29, 73 | "meetingAt": "Kirchgemeindehaus", 74 | "street": "Allmendstrasse 33", 75 | "addition": "", 76 | "district": "", 77 | "zip": "2560", 78 | "city": "Nidau", 79 | "country": "CH", 80 | "latitude": 47.12302, 81 | "longitude": 7.2488 82 | }, { 83 | "locationID": 28, 84 | "meetingAt": "Kirchgemeindehaus", 85 | "street": "Allmendstrasse 33", 86 | "addition": "", 87 | "district": "", 88 | "zip": "2560", 89 | "city": "Nidau", 90 | "country": "CH", 91 | "latitude": 47.12302, 92 | "longitude": 7.2488 93 | }, { 94 | "locationID": 27, 95 | "meetingAt": "Kirchgemeindehaus", 96 | "street": "Allmendstrasse 33", 97 | "addition": "", 98 | "district": "", 99 | "zip": "2560", 100 | "city": "Nidau", 101 | "country": "CH", 102 | "latitude": 47.12302, 103 | "longitude": 7.2488 104 | }, { 105 | "locationID": 25, 106 | "meetingAt": "Kirchgemeindehaus", 107 | "street": "Allmendstrasse 33", 108 | "addition": "", 109 | "district": "", 110 | "zip": "2560", 111 | "city": "Nidau", 112 | "country": "CH", 113 | "latitude": 47.12302, 114 | "longitude": 7.2488 115 | }, { 116 | "locationID": 24, 117 | "meetingAt": "Kirchgemeindehaus", 118 | "street": "Allmendstrasse 33", 119 | "addition": "", 120 | "district": "", 121 | "zip": "2560", 122 | "city": "Nidau", 123 | "country": "CH", 124 | "latitude": 47.12302, 125 | "longitude": 7.2488 126 | }, { 127 | "locationID": 23, 128 | "meetingAt": "Kirchgemeindehaus", 129 | "street": "Allmendstrasse 33", 130 | "addition": "", 131 | "district": "", 132 | "zip": "2560", 133 | "city": "Nidau", 134 | "country": "CH", 135 | "latitude": 47.12302, 136 | "longitude": 7.2488 137 | }, { 138 | "locationID": 22, 139 | "meetingAt": "Kirchgemeindehaus", 140 | "street": "Allmendstrasse 33", 141 | "addition": "", 142 | "district": "", 143 | "zip": "2560", 144 | "city": "Nidau", 145 | "country": "CH", 146 | "latitude": 47.12302, 147 | "longitude": 7.2488 148 | }, { 149 | "locationID": 21, 150 | "meetingAt": "Kirchgemeindehaus", 151 | "street": "Allmendstrasse 33", 152 | "addition": "", 153 | "district": "", 154 | "zip": "2560", 155 | "city": "Nidau", 156 | "country": "CH", 157 | "latitude": 47.12302, 158 | "longitude": 7.2488 159 | }, { 160 | "locationID": 20, 161 | "meetingAt": "Matthäus-Zentrum", 162 | "street": "Allmendstrasse 33", 163 | "addition": "", 164 | "district": "", 165 | "zip": "2562", 166 | "city": "Port", 167 | "country": "CH", 168 | "latitude": 47.11724, 169 | "longitude": 7.25555 170 | }, { 171 | "locationID": 19, 172 | "meetingAt": "Matthäus-Zentrum", 173 | "street": "Allmendstrasse 33", 174 | "addition": "", 175 | "district": "", 176 | "zip": "2562", 177 | "city": "Port", 178 | "country": "CH", 179 | "latitude": 47.11724, 180 | "longitude": 7.25555 181 | }, { 182 | "locationID": 18, 183 | "meetingAt": "Matthäus-Zentrum", 184 | "street": "Allmendstrasse 33", 185 | "addition": "", 186 | "district": "", 187 | "zip": "2562", 188 | "city": "Port", 189 | "country": "CH", 190 | "latitude": 47.11724, 191 | "longitude": 7.25555 192 | }, { 193 | "locationID": 17, 194 | "meetingAt": "Matthäus-Zentrum", 195 | "street": "Allmendstrasse 33", 196 | "addition": "", 197 | "district": "", 198 | "zip": "2562", 199 | "city": "Port", 200 | "country": "CH", 201 | "latitude": 47.11724, 202 | "longitude": 7.25555 203 | }, { 204 | "locationID": 16, 205 | "meetingAt": "Matthäus-Zentrum", 206 | "street": "Allmendstrasse 33", 207 | "addition": "", 208 | "district": "", 209 | "zip": "2562", 210 | "city": "Port", 211 | "country": "CH", 212 | "latitude": 47.11724, 213 | "longitude": 7.25555 214 | }, { 215 | "locationID": 15, 216 | "meetingAt": "Matthäus-Zentrum", 217 | "street": "Allmendstrasse 33", 218 | "addition": "", 219 | "district": "", 220 | "zip": "2562", 221 | "city": "Port", 222 | "country": "CH", 223 | "latitude": 47.11724, 224 | "longitude": 7.25555 225 | }, { 226 | "locationID": 14, 227 | "meetingAt": "Matthäus-Zentrum", 228 | "street": "Allmendstrasse 33", 229 | "addition": "", 230 | "district": "", 231 | "zip": "2562", 232 | "city": "Port", 233 | "country": "CH", 234 | "latitude": 47.11724, 235 | "longitude": 7.25555 236 | }, { 237 | "locationID": 13, 238 | "meetingAt": "Matthäus-Zentrum", 239 | "street": "Allmendstrasse 33", 240 | "addition": "", 241 | "district": "", 242 | "zip": "2562", 243 | "city": "Port", 244 | "country": "CH", 245 | "latitude": 47.11724, 246 | "longitude": 7.25555 247 | }, { 248 | "locationID": 12, 249 | "meetingAt": "Matthäus-Zentrum", 250 | "street": "Allmendstrasse 33", 251 | "addition": "", 252 | "district": "", 253 | "zip": "2562", 254 | "city": "Port", 255 | "country": "CH", 256 | "latitude": 47.11724, 257 | "longitude": 7.25555 258 | }, { 259 | "locationID": 7, 260 | "meetingAt": "Kirchgemeindehaus", 261 | "street": "Allmendstrasse 33", 262 | "addition": "", 263 | "district": "", 264 | "zip": "2560", 265 | "city": "Nidau", 266 | "country": "CH", 267 | "latitude": 47.12302, 268 | "longitude": 7.2488 269 | }, { 270 | "locationID": 6, 271 | "meetingAt": "Zentrum Ipsach", 272 | "street": "Allmendstrasse 33", 273 | "addition": "", 274 | "district": "", 275 | "zip": "2563", 276 | "city": "Ipsach", 277 | "country": "CH", 278 | "latitude": 47.11524, 279 | "longitude": 7.2344 280 | }, { 281 | "locationID": 5, 282 | "meetingAt": "Zentrum Ipsach", 283 | "street": "Allmendstrasse 33", 284 | "addition": "", 285 | "district": "", 286 | "zip": "2563", 287 | "city": "Ipsach", 288 | "country": "CH", 289 | "latitude": 47.11524, 290 | "longitude": 7.2344 291 | }, { 292 | "locationID": 4, 293 | "meetingAt": "Zentrum Ipsach", 294 | "street": "Allmendstrasse 33", 295 | "addition": "", 296 | "district": "", 297 | "zip": "2563", 298 | "city": "Ipsach", 299 | "country": "CH", 300 | "latitude": 47.11524, 301 | "longitude": 7.2344 302 | }] 303 | } 304 | --------------------------------------------------------------------------------