Cal. Welf. & Inst. Code § 626.5
If an officer who takes a minor into temporary custody under the provisions of Section 625 determines that the minor should be brought to the attention of the juvenile court, he or she shall thereafter take one of the following actions:
(b) He or she 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 took place or the circumstances exist which are alleged to bring the minor within the provisions of Section 601 or 602, and deliver the custody of the minor to the probation officer. The peace officer shall prepare a concise written statement of the probable cause for taking the minor into temporary custody and the reasons the minor was taken into custody and shall provide that statement to the probation officer at the time the minor is delivered to the probation officer. In no case shall he or she delay the delivery of the minor to the probation officer for more than 24 hours if the minor has been taken into custody without a warrant on the belief that he or she has committed a misdemeanor.
In determining which disposition of the minor he or she will make, the officer shall prefer the alternative which least restricts the minor’s freedom of movement, provided that alternative is compatible with the best interests of the minor and the community.