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
Requires
- gertvdb/distance: ^8.1
Requires (Dev)
- drupal/coder: 8.3.1
- drupal/core: ^8.8
- jakub-onderka/php-parallel-lint: ^1.0
- mockery/mockery: ^1.3
- phpmd/phpmd: 2.7.0
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-12-20 01:07:13 UTC
README
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]);