NOAA的NCAT API的一个简单实现。

1.0.0 2021-08-02 12:44 UTC

This package is not auto-updated.

Last update: 2024-09-25 00:41:48 UTC


README

这是对NOAA的NCAT API服务的一个简单实现。您可以在NOAA的这里了解更多关于国家大地测量调查的信息。

以下是如何使用此包的一个简单示例。

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