https://github.com/cquest/metaddok
Frontend to query multiple addok backend API at once
https://github.com/cquest/metaddok
Last synced: 11 months ago
JSON representation
Frontend to query multiple addok backend API at once
- Host: GitHub
- URL: https://github.com/cquest/metaddok
- Owner: cquest
- License: agpl-3.0
- Created: 2017-10-22T15:05:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T16:02:07.000Z (over 8 years ago)
- Last Synced: 2025-04-15T22:08:57.852Z (about 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metaddok
A very simpler multiple addok frontend.
Can be used to query several addok geocoding API managing different address/POI databases with a single request.
The query is sent to each backend, then results are gathered, reorganized, sorted by descending score and finally returned to the client.
## Install
Requirements:
- python 3.5
```
git clone https://github.com/cquest/metaddok.git
cd metaddok
pip install -r requirements.txt
```
## Run using gunicorn
`gunicorn metaddok:app -b 0.0.0.0:7676 -w 8`
## Demo instances
You can query all.addok.xyz, which queries 4 addok backend running:
- BANO addresses
- BAN addresses
- OSM POI
- SIRENE POI
Examples:
- http://all.addok.xyz/search?q=Aeroport+roissy
- http://all.addok.xyz/search?q=39+quai+andre+citroen+paris
- http://all.addok.xyz/search?q=71+place+corneille+poissy