Dude I also rode around for at least a week to find all the information to do my way. But I did and it’s working a lot. I’m going to code for you.
The comments are in English, use google to translate.
See example there on my platform soamigo.com.br
See the ready code just put in the functions.php file of your theme.