Giter Club home page Giter Club logo

myvelib's Introduction

Velib2018 Tools

Code source du site velib.philibert.info: analyse et interprétation des données du site Velib Métropole www.velib-metropole.fr/map#/

Installation:

--> créer  la base de donnée MySQL à l'aide du script sql suivant: ./setup/CreateVelibToolDatabase.sql 
--> Renseigner le paramétrage Mysql dans ./inc/config.inc.php ($server, $user, $password, $db)
--> Remplacer "API-Key" par une clé d'api google map valide dans ./cron/stationLocationHasMoved.php
--> Remplacer l'identifiant google analystics ou supprimer le js des pages
--> Adapter le .htaccess si le site n'est pas en https (NB: https requis pour la géolocalisation  sur la carte)
--> les scripts du dossier cron sont prévu être appelés périodiquement 
	- velibAPIParser.php : collecte des données depuis Velib-metropole
	- stationLocationHasMoved.php: reverse geocoding: mise à jour des adresses des stations dont les coordonnées ont changé
	- mysqlBackup.php: sauvegarde mysql
--> renommer le fichier no.maintenance en .maintenance active les bandeaux de maintenance

Ressources Open street Map et Leaflet

* Leaflet: https://leafletjs.com/
* Leaflet plugins: https://leafletjs.com/plugins.html
En particulier:
	*** Controles: Leaflet.Control.Custom.js --> fork de https://github.com/yigityuce/Leaflet.Control.Custom
	*** geolocalisation: Leaflet.Locate : https://github.com/domoritz/leaflet-locatecontrol
	*** Basculer en fulscreen: Leaflet.fullscreen: https://github.com/Leaflet/Leaflet.fullscreen
	*** Recherche de lieu: leaflet-control-geocoder: https://github.com/perliedman/leaflet-control-geocoder 

* Le script tiles.php et les dossiers tiles associés sont inspirés du proxy php proposé par le wiki OSM
https://wiki.openstreetmap.org/wiki/ProxySimplePHP afin de réduire la charge sur les server openstreet map

Autres ressources

* Trie des tableaux: --> fork de sortable.js http://www.kryogenix.org/code/browser/sorttable/
* Les markers sont générés à partir d'un fork bourrin de Google-Maps-Markers by Concept211
https://github.com/Concept211/Google-Maps-Markers disponible ici https://github.com/Arno153/Google-Maps-Markers
* graphiques réalisés avec plotly.js: https://plot.ly/javascript/

myvelib's People

Contributors

arno153 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.