for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ballen\Cartographer\Core;
/**
* Cartographer
*
* Cartographer is a PHP library providing the ability to programmatically
* generate GeoJSON objects.
* @author Bobby Allen <[email protected]>
* @license http://www.gnu.org/licenses/gpl-3.0.html
* @link https://github.com/allebb/cartographer
* @link http://bobbyallen.me
*/
class LatLong extends \Ballen\Distical\Entities\LatLong
{
* Create a new latitude and longitude object.
* @param double $lat The latitude co-ordinate.
* @param double $lng The longitude co-ordinate.
public function __construct($lat, $lng)
parent::__construct($lat, $lng);
}
* Returns a GeoJSON compatible LatLng array in the reversed format.
* @return array
public function lngLatArray()
return [$this->lng(), $this->lat()];