Nblum\Geocodefield\Forms\GeoCodeField
Class GeoCodeField
Synopsis
class GeoCodeField
extends TextField
{
- // members
- private static array $allowed_actions = ;
- protected string $identifier = '';
- protected bool $editableAddress = true;
- protected bool $apiAddressVisible = true;
- protected TextField $address = NULL;
- protected TextField $lon = NULL;
- protected TextField $lat = NULL;
- protected array $referencedFields = ;
- // methods
- public void __construct()
- public string Identifier()
- public void setAddressNotEditable()
- public void setApiAddressInvisible()
- public TextField getAddress()
- public GeoCodeField setAddress()
- public TextField getLon()
- public GeoCodeField setLon()
- public TextField getLat()
- public GeoCodeField setLat()
- public array getReferencedFields()
- public void addAddressReference()
- public string Field()
- public string AjaxUrl()
- public HTTPResponse validateAddress()
- public array validateAddressWithGoogle()
- public array validateAddressWithOsm()
Hierarchy
Extends
- SilverStripe\Forms\TextField
Members
private
- $allowed_actions
protected
- $address — SilverStripe\Forms\TextField
- $apiAddressVisible — Nblum\Geocodefield\Forms\bool
- $editableAddress — Nblum\Geocodefield\Forms\bool
- $identifier — string
- $lat — SilverStripe\Forms\TextField
- $lon — SilverStripe\Forms\TextField
- $referencedFields — array
Methods
public
- __construct() — GeoCodeField constructor.
- AjaxUrl() — returns the xhr request url for address validation
- Field()
- Identifier() — returns a unique identifier
- addAddressReference()
- getAddress()
- getLat()
- getLon()
- getReferencedFields()
- setAddress()
- setAddressNotEditable() — address input field will be not editable
- setApiAddressInvisible() — address input field will be not editable
- setLat()
- setLon()
- validateAddress()
- validateAddressWithGoogle() — Get Geodata from nominatim.openstreetmap.org Note: we provide a referer to not get blocked (so quickly)
- validateAddressWithOsm() — Get Geodata from nominatim.openstreetmap.org Note: we provide a referer to not get blocked (so quickly)