From tower-block dwellers to the disabled, toilet training a dog is almost impossible if you have to trek long distances before the dog can perform. The answer could well be to designate a dog toilet area indoors and keep it clean with a covering of newspaper or puppy pads. Indeed, with a little time, patience, and persistence it's perfectly possible to train the dog to pee on a patch of newspaper, which minimizes the mess and keeps everyone happy.
Training a dog to do this depends on consistency so that he understands what's required of him. In turn, this means you need to have tactics in place to either make him want to choose the newspaper or to praise him when he happens to visit the right spot.
This task is made considerably easier when you eliminate the possibility of the dog making the wrong choice! Again, this can be via method one in which you start with a room tiled with newspaper or you watch the dog constantly to prevent accidents.
Any dog, even a puppy from 8 weeks onwards, can learn to pee on paper. However, adult dogs may have ingrained habits which are difficult to break. But even old dogs can learn new tricks, so be patient and consistent and eventually, the penny will drop in the right place.
In addition, you'll need (depending on your chosen method):