sleepcat / laravel-hgt-reader
Installs: 4 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
This package is not auto-updated.
Last update: 2025-02-02 05:33:32 UTC
README
Installation For Laravel
Require this package with Composer
$ composer require sleepcat/laravel-hgt-reader
for laravel
your config/app.php
'providers' => [ SleepCat\LaravelHgtReader\ReaderServiceProvider::class, ]
Add the facade to your config/app.php
file:
'aliases' => array( //... 'HgtReader' => SleepCat\LaravelHgtReader\Facades\HgtReader::class, ),
Usage
Laravel usage
use HgtReader; // Set Hgt files path in /storage $hgtPath = "/hgt"; HgtReader::init($hgtPath, 3); // Get elevation $el = HgtReader::getElevation($lat, $lon);
Download htg files
Download xxx.hgt to storage/hgt