Skip to content

National-Flood-Experts/ncat-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NCAT-PHP

This is a simple implementation for NOAA's NCAT API Service. You can learn more about the National Geodetic Survey from NOAA here.

Here is a simple example on how to use the package.

$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
]);

About

A simple implementation of NOAA's NCAT API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages