Comments (5)
La commande psql à utiliser pour faire un fichier CSV propre et utilisable facilement (en changeant bien sûr les infos de connexion à la base) :
psql -U covid19_fr_6909 -d covid19_fr_6909 -p 10000 -h localhost -c "\copy (SELECT CASE WHEN fid LIKE 'n%' THEN concat('node/', substring(fid, 2)) WHEN fid LIKE 'w%' THEN concat('way/', substring(fid, 2)) WHEN fid LIKE 'r%' THEN concat('relation/', substring(fid, 2)) END AS osm_id, name, cat, brand, brand_wikidata AS wikidata, brand_hours AS url_hours, brand_infos AS infos, status, opening_hours, ST_X(ST_Transform(geom, 4326))::real AS lon, ST_Y(ST_Transform(geom, 4326))::real AS lat FROM poi_osm) TO '/tmp/poi_osm.csv' CSV HEADER"
Tu peux intégrer ça dans un cron sur la machine + rendre dispo via une URL le fichier produit ? On part sur un export par heure ou par jour ?
from caresteouvert.
Structure du fichier en sortie
osm_id,name,cat,brand,wikidata,url_hours,infos,status,opening_hours,lon,lat
node/872470130,Pharmacie Bories,pharmacy,,,,,inconnu,,1.5797248,44.47849
node/872470226,Le Fournil de Saint-Géry,bakery,,,,,inconnu,,1.5807782,44.47803
node/1381848018,,bakery,,,,,inconnu,,1.5808399,44.5687
node/5807621969,,convenience,,,,,inconnu,,1.5619853,44.68736
from caresteouvert.
C'est en place toute les heures a cette adresse: https://download.osmontrouge.fr/caresteouvert/
On peut le mettre sur un domaine associé a ca reste ouvert.
from caresteouvert.
Tant que ça marche c'est l'essentiel
from caresteouvert.
C'est publié sur data.gouv.fr, merci !
from caresteouvert.
Related Issues (20)
- Autocomplétion : impossible de trouver un lieu HOT 5
- changement de wording et de couleurs HOT 4
- Add Plausible analytic HOT 4
- Charcuterie
- Nouvelles version d'objets OSM sans modifications HOT 4
- le rendu qa n'a plus d'url fixe ?
- "Publier" stays grayed out after "Vente à emporter" is enabled HOT 1
- Copier le numéro de téléphone dans le presse-papier sur desktop HOT 1
- Logo pour les centres de santé HOT 4
- Les postes sont en gris
- Erreur de typo bouton "Signaler un changement" HOT 1
- ajouter un indicateur de complétion sur la liste des commerces de la ville HOT 5
- contact:facebook HOT 1
- Nouveaux types de POI post-covid
- Évolutions post-covid
- Faire évoluer le formulaire en mode post-covid HOT 3
- Prioriser l'affichage des tags en fonction du contexte
- Faire évoluer le formulaire en mode post-covid (variante SIRET) HOT 2
- Arrêter le compte OSM ? HOT 2
- German version does not work anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caresteouvert.