For ios user, you can spoof your location and walk with joystick by using ianygo on pc and use cmd file on this link below to get infinity trial.
You can spoof your location and using joystick with a condition, that is you cannot spawn too far from your actual location, or you could not claim the resources nor battle the monsters. It is better to spawn near your town or +- 10km from actual location and then move around with joystick anywhere.
It works on ios, i don’t know if it works on android.
The link :
https://www[dot]reddit[dot]com/r/PokemonGoSpoofing/comments/14ud9de/tenorshare_ianygo_infinite_trial_method/