Cal. Welf. & Inst. Code § 207.2
A minor who is held in temporary custody in a law enforcement facility that contains a lockup for adults pursuant to subdivision (b) of Section 207.1 may be released to a parent, guardian, or responsible relative by the law enforcement agency operating the facility, or may at the discretion of the law enforcement agency be released into their own custody, provided that a minor released into their own custody is furnished, upon request, with transportation to their home or to the place where the minor was taken into custody.