Skip to content

gertvdb/location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

location

Provide a standard way to store a location and work with it.

Usage

Initialising the classes.


use Drupal\location\Location;
use Drupal\location\LocationCollection;
use Drupal\country\Country;
use Drupal\continent\Continent;

$country = new Country('US');
$continent = new Continent('NA');
$coordinate = new Coordinate(37.419857, -122.078827);

$location = new Location(
  'Google Inc.',
  'Second floor',
  'Amphitheatre Parkway',
  1600,
  'B2',
  '94043',
  'Mountain View',
  'San Francisco',
  'California',
  $country,
  $continent,
  $coordinate
);
$collection = new LocationCollection([$location]);

Release notes

1.0.0

  • Basic setup of the module.
  • Provide location and location collection class.

About

Provide a class to work with a location

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages