New York Attorney General Eric Schneiderman filed a lawsuit Friday to block Lyft, the on-demand ride-sharing app, from operating in New York.

The suit was filed hours before San Francisco-based Lyft planned to enter the New York City market. The suit claims the company operates as a traditional for-hire livery service using mobile technology, not a peer-to-peer transportation platform as claimed.