PHP code example of nationalfloodexperts / ncat
1. Go to this page and download the library: Download nationalfloodexperts/ncat 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/ */
nationalfloodexperts / ncat example snippets
$ncat = new NationalFloodExperts\NCAT\NCAT();
// Make a request to the Latitude-longitude-height service
$data = $ncat->llhRequest([
'lat' => 40.0,
'lon' => -80.0,
'eht' => 100.0,
'inDatum' => 'NAD83(1986)',
'outDatum' => 'NAD83(2011)'
]);
// Make a request to the U.S. National Grid service
$data = $ncat->usngRequest([
'usng' => '15SWB4788338641',
'inDatum' => 'NAD83(2011)',
'outDatum' => 'NAD83(NSRS2007)',
'eht' => 100.0
]);