I used to have same problem. I went bulk barn bought few dollars chilli powder and spread it on the front lawn near the walkway ( about 1 meter wide) and .......
It would last few days if there is no rain. Dog learn the lesson very quickly. And if you could take a video off person and know where he live. Call 311 he would get a fine from bylaw.