This presumes that this is all happening out on the streets, not in some specialized area where sex workers are in the privacy of their home/business.
I challenge any sane place that allows homeless to sleep in kids parks as a safe place to live.
I have never lived in a city where the argument you're attempting could be made in good faith.
OK now I get it. Virtue signalling.
Maybe we have a different environment imagined. I was talking about rather rich central Europe, where you never really see more than 5 homeless people at once. Sex workers on the street are limited to certain areas and times of day. Outside these times they can only meet customers inside. So kids living in areas nearby are normally not influenced by sex work.
Sorry if you feel trolled, but it seems I couldn't imagine what a shithole you guys seem to be living in.