FOSTER CITY -- A 17-year-old girl was badly injured Friday morning after she was hit by a car on her way to school in Foster City.

The teen, a Foster City resident who has not been identified, was headed to meet her carpool at 6:49 a.m. when she was hit by a 2014 BMW 528i while crossing Edgewater Boulevard at Port Royal, Foster City police Capt. Joe Pierucci said. Medical crews found the girl in the roadway with significant injuries, and they immediately began treating her at the scene.

The girl was then taken by ambulance to Stanford University Medical Center, where she was hospitalized in an unknown condition, Pierucci said. Officials are investigating whether she was in a crosswalk when she was hit.

The driver of the BMW, who is not being identified at this time, is not suspected to have been under the influence, Pierucci said. That person stayed on scene and is cooperating with police investigators.

"This tragic incident punctuates the need for drivers to always be aware of pedestrians in and around roadways and be prepared to yield for them," Pierucci said. "Pedestrians can be very hard to see, especially in bad weather or during times of darkness."

In light of Friday's accident, Foster City police issued tips on staying safe for drivers and pedestrians alike. They urged drivers to not try to overtake or pass other vehicles who have stopped for pedestrians, and noted pedestrians should make eye contact with drivers before crossing at corners or designated crosswalks.

Anyone with additional information about the accident is asked to contact Foster City police at 650-286-3300, or the anonymous tip line at 650-286-3323.

Contact Erin Ivie at eivie@bayareanewsgroup.com. Follow her at Twitter.com/erin_ivie.