Package Data | |
---|---|
Maintainer Username: | Roger-Chang |
Maintainer Contact: | ga796324@gmail.com.tw (roger-chang) |
Package Create Date: | 2017-07-03 |
Package Last Update: | 2017-08-02 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2025-02-06 03:05:54 |
Package Statistics | |
---|---|
Total Downloads: | 4,193 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 1 |
Require this package with Composer
$ composer require sleepcat/laravel-hgt-reader
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,
),
use HgtReader;
// Set Hgt files path in /storage
$hgtPath = "/hgt";
HgtReader::init($hgtPath, 3);
// Get elevation
$el = HgtReader::getElevation($lat, $lon);
Download xxx.hgt to storage/hgt