Provides a GeoLocation
(for coordinates) field editable with a map.
Uses Google Places API to display the map.
Maps JavaScript API is used to display the map.
Places API is used to let you find things there by typing an address.
Check out the following links to get it working
Then put the key into your .env file:
PLACES_API_KEY="the-key"
class Foo extends DataObject {
private static $db = [
'Location' => 'GeoLocation',
];
}
# OR
class Foo extends DataObject {
private static $db = [
'Location' => DBGeoLocation::class,
];
}
You can then refer to it as
$obj->Location->Latitude;
$obj->Location->Longitude;
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem