Revel said that it was ending its ride-hailing service in New York City and focusing on building an electric-vehicle charging network in a few cities.