ALBANY – The car service Uber has agreed to limit prices during emergencies, natural disasters or other unusual market disruptions consistent with New York’s law against price gouging, the company and state attorney general said Tuesday.

Uber, which uses a mobile application to connect riders with vehicles for hire, has its rates rise and fall with demand, but it has been criticized for “surge pricing” that’s sometimes exponentially higher than base fares. Prices usually increase weekdays during rush hour in New York City, on Saturday nights, special occasions like New Year’s Eve and during bad weather.