While lawyers for Mr. Hall and Mr. Martins have never said explicitly that the encounter was consensual, they have moved twice — unsuccessfully — to dismiss the indictment, claiming that the prosecutors allowed the young woman to lie in front of a grand jury, adding that her story of assault is “uncorroborated.”

The defense lawyers have also contended that the woman has repeatedly changed her account about details of the attack, including the clothes she was wearing, the make and model of the vehicle she rode in and which of the defendants assaulted her first.

It is a common phenomenon for rape victims, because of shame or trauma, to make incomplete or inconsistent statements in the hours — even days — after their attacks. Although her statements to the police did contain contradictions, the woman at the center of the charges against the two detectives has never wavered in her insistence that they forcibly raped her, court papers show.

But at the hearing on Thursday, Mr. Martins’s lawyer, Mark A. Bederow, added the cellphone tracking data to the body of evidence that he suggested proved the prosecution’s theory of the case was false.

According to the district attorney’s office, the woman was in her car with two friends at Calvert Vaux Park near Coney Island last September when Mr. Hall and Mr. Martins approached her in plain clothes while conducting operations as part of an antidrug unit, Brooklyn South Narcotics.

After finding marijuana and a few pills of Klonopin, an anti-anxiety medication, in the car, the men detained her, prosecutors said, placing her in their police van, handcuffed. The woman claimed that the two defendants drove her through the streets of Bay Ridge, Brooklyn, near the bridge and up Shore Road past her grandmother’s home. During the ride, she said, Mr. Hall forced her to perform oral sex on him. Mr. Martins raped her, she said.

But in court on Thursday, Mr. Bederow said that the analysis of the defendants’ cellphone data proved with “scientific certainty” that the officers were never in Bay Ridge. Mr. Bederow added that if prosecutors called her to testify at trial about this so-called “ride from hell,” they would be “suborning perjury.”