PHP code example of theoknoep / gpx-difficulty-score
1. Go to this page and download the library: Download theoknoep/gpx-difficulty-score library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
theoknoep / gpx-difficulty-score example snippets
ult_array = Theoknoep\GpxDifficultyScore\GpxDifficultyScore::parse('path/to/file.gpx');
// display difficulty score :
echo $result_array['score']['value'];