-
Notifications
You must be signed in to change notification settings - Fork 18
/
php_geospatial.stub.php
48 lines (36 loc) · 1.51 KB
/
php_geospatial.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/** @generate-function-entries */
/**
* @var float
* @cvalue GEO_EARTH_RADIUS
*/
const GEO_EARTH_RADIUS = UNKNOWN;
/**
* @var float
* @cvalue GEO_WGS84
*/
const GEO_WGS84 = UNKNOWN;
/**
* @var int
* @cvalue GEO_AIRY_1830
*/
const GEO_AIRY_1830 = UNKNOWN;
/**
* @var int
* @cvalue GEO_WGS84
*/
const GEO_WGS84 = UNKNOWN;
function dms_to_decimal(float $degrees, float $minutes, float $seconds, string $direction = ""): float {}
function decimal_to_dms(float $decimal, string $coordinate): array {}
function helmert(float $x, float $y, float $z, int $from_reference_ellipsoid = 0, int $to_reference_ellipsoid = 0): array {}
function polar_to_cartesian(float $latitude, float $longitude, int $reference_ellipsoid = 0): array {}
function cartesian_to_polar(float $x, float $y, float $z, int $reference_ellipsoid = 0): array {}
function transform_datum(array $coordinates, int $from_reference_ellipsoid, int $to_reference_ellipsoid): array {}
function haversine(array $from, array $to, float $radius = GEO_EARTH_RADIUS): float {}
function vincenty(array $from, array $to, float $reference_ellipsoid = GEO_WGS84): float {}
function fraction_along_gc_line(array $from, array $to, float $fraction): array {}
function interpolate_linestring(array $line, float $epsilon): array {}
function initial_bearing(array $from, array $to): float {}
function rdp_simplify(array $points, float $epsilon): array {}
function geohash_encode(array $point, int $precision = 12): string {}
function geohash_decode(string $geohash): array {}