No, surge pricing would be "lots of people want to travel right now and we don't have the capacity, increase the price to maximise return". The averaging there is "all users in a wide area" rather than "all people that need to go to local place X". Both may cause ethical issues but the latter has a specific kind of problem.
What a smarter but unethical system may discover is "people having a heart attack will pay almost any amount of money to get to hospital". Substitute heart attack for any other medical issue, if that is something you'd say should require an ambulance.
Location based pricing may be fine, charging more for airport travel because there's less competition (due to waiting times, etc) could be fine. Charging more for getting medical treatment is not.
Optimising blindly for profit is not something we want to do, but can easily be what we task a machine to do.