PHP code example of gurucomkz / geopicker
1. Go to this page and download the library: Download gurucomkz/geopicker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gurucomkz / geopicker example snippets
class Foo extends DataObject {
private static $db = [
'Location' => 'GeoLocation',
];
}
# OR
class Foo extends DataObject {
private static $db = [
'Location' => DBGeoLocation::class,
];
}
$obj->Location->Latitude;
$obj->Location->Longitude;