AddressSaveTrait
Code shared by Address create/update/save actions
Table of Contents
Properties
- $fixAddress : bool
- When true, apply various fixes to the address before insert.
- $skipGeocode : bool
- Optional param to indicate you want to skip geocoding (useful when importing a lot of addresses at once, the job Geocode and Parse Addresses can execute this task after the import)
- $streetParsing : bool
- Optional param to indicate you want the street_address field parsed into individual params
Methods
- getFixAddress() : bool
- getSkipGeocode() : bool
- getStreetParsing() : bool
- setFixAddress() : $this
- setSkipGeocode() : $this
- setStreetParsing() : $this
- write() : mixed
Properties
$fixAddress
When true, apply various fixes to the address before insert.
protected
bool
$fixAddress
= TRUE
$skipGeocode
Optional param to indicate you want to skip geocoding (useful when importing a lot of addresses at once, the job Geocode and Parse Addresses can execute this task after the import)
protected
bool
$skipGeocode
= FALSE
$streetParsing
Optional param to indicate you want the street_address field parsed into individual params
protected
bool
$streetParsing
= FALSE
Methods
getFixAddress()
public
getFixAddress() : bool
Return values
boolgetSkipGeocode()
public
getSkipGeocode() : bool
Return values
boolgetStreetParsing()
public
getStreetParsing() : bool
Return values
boolsetFixAddress()
public
setFixAddress([bool $fixAddress = ]) : $this
Parameters
- $fixAddress : bool =
Return values
$thissetSkipGeocode()
public
setSkipGeocode([bool $skipGeocode = ]) : $this
Parameters
- $skipGeocode : bool =
Return values
$thissetStreetParsing()
public
setStreetParsing([bool $streetParsing = ]) : $this
Parameters
- $streetParsing : bool =
Return values
$thiswrite()
protected
write(array<string|int, mixed> $items) : mixed
Parameters
- $items : array<string|int, mixed>