gertvdb/coordinates

Provide a standard way to store coordinates.

Installs: 53

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 3

Type:drupal-module

8.1.5 2020-10-30 07:54 UTC

README

Build Status

Provide a standard way to store coordinates and coordinate collections.

Usage

Initialising the classes.


use Drupal\coordinates\Coordinate;
use Drupal\coordinates\CoordinateCollection;

$coordinate_1 = new Coordinate(51.363176, 4.473185));
$coordinate_2 = new Coordinate(52.392404, 4.467884));

$coordinate_collection = new CoordinateCollection([$coordinate_1, $coordinate_2]);