Cal. Welf. & Inst. Code § 307
A peace officer or probation officer who takes a minor into temporary custody under the provisions of Section 305 shall thereafter proceed as follows:
(c) The officer may take the minor without unnecessary delay before the probation officer of the county in which the minor was taken into custody, or in which the minor resides, or in which the acts take place or the circumstances exist which are alleged to bring the minor within the provisions of Section 300, and deliver the minor into the custody of the probation officer.
In determining which disposition of the minor shall be made, the officer shall give preference to the alternative which least interferes with the parents’ or guardians’ custody of the minor if this alternative is compatible with the safety of the minor. The officer shall also consider the needs of the minor for the least restrictive environment and the protective needs of the community.