-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathGeotools.php
More file actions
44 lines (38 loc) · 1.06 KB
/
Geotools.php
File metadata and controls
44 lines (38 loc) · 1.06 KB
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
<?php
/**
* This file is part of the Geotools-laravel library.
*
* (c) Antoine Corcy <contact@sbin.dk>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Toin0u\Geotools;
use League\Geotools\Geotools as BaseGeotools;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
/**
* Geotools package for Laravel
*
* @author Antoine Corcy <contact@sbin.dk>
*/
class Geotools extends BaseGeotools
{
/**
* Version.
* @see http://semver.org/
*/
const VERSION = '1.0.1-dev';
/**
* Set the latitude and the longitude of the coordinates into an selected ellipsoid.
*
* @param ResultInterface|array|string $coordinates The coordinates.
* @param Ellipsoid $ellipsoid The selected ellipsoid (WGS84 by default).
*
* @return Coordinate
*/
public function coordinate($coordinates, Ellipsoid $ellipsoid = null)
{
return new Coordinate($coordinates, $ellipsoid);
}
}