mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 06:15:31 +00:00
add geocoding module, resolve threads
This commit is contained in:
parent
575e44ae54
commit
4aea7b5d78
6 changed files with 291 additions and 100 deletions
53
docu/docs/modul/geocoding.md
Normal file
53
docu/docs/modul/geocoding.md
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# <center>Geocoding</center>
|
||||
---
|
||||
|
||||
## Beschreibung
|
||||
Mit diesem Modul können einem Paket die Koordinaten eines Ortes oder einer Adresse angefügt werden.
|
||||
|
||||
## Unterstützte Alarmtypen
|
||||
- Pocsag
|
||||
|
||||
## Resource
|
||||
`geocoding`
|
||||
|
||||
## Konfiguration
|
||||
|
||||
|Feld|Beschreibung|Default|
|
||||
|----|------------|-------|
|
||||
apiProvider|Der Provider für das Geocoding|
|
||||
apiToken|Der Api-Token fuer die Geocoding-Api|
|
||||
geoRegex|Regex Capture-Group zum Herausfiltern der Adresse|
|
||||
|
||||
#### Verfügbare Geocoding Provider
|
||||
|
||||
|Name|Einstellungswert|
|
||||
|----|------------|
|
||||
|Mapbox|mapbox|
|
||||
|Google Maps|google|
|
||||
|
||||
**Beispiel:**
|
||||
```yaml
|
||||
- type: module
|
||||
name: Geocoding Module
|
||||
res: geocoding
|
||||
config:
|
||||
apiProvider: "{{ Provider für Geocoding }}"
|
||||
apiToken: "{{ API-Key für Provider }}"
|
||||
regex: "((?:[^ ]*,)*?)"
|
||||
```
|
||||
|
||||
---
|
||||
## Abhängigkeiten
|
||||
|
||||
- geocoder
|
||||
- re
|
||||
|
||||
---
|
||||
## Paket Modifikationen
|
||||
|
||||
- Im Paket werden die Felder `lat` und `lng` hinterlegt
|
||||
|
||||
---
|
||||
## Zusätzliche Wildcards
|
||||
|
||||
- keine
|
||||
Loading…
Add table
Add a link
Reference in a new issue