That might be a tough question to answer. You are claiming to be a "below average" student, that alone might make it tougher to get the "desirable" local but then again that in and of itself is subjective. It is also still early so as long as you do well on the COMLEX/USMLE tests that will help. Be active in AAFP or at least try to be, if possible go to the conferences, find the people affiliated with the programs you like and talk to them. This is assuming that you can interact in a normal manner. Show interest in the programs you like and try to set up elective rotations there during your clinical years, particularly during 3rd year so that come interview time in early 4th year they know who you are. Work on building your CV through electives and extracurriculars to show that FM is what YOU want to do.
Side note...a desireable location during residency is not what you should be looking for. You should be looking for a place that will expose you to and prepare you for the desireable place where you want to spend a career AFTER residency. Example....I am currently in Houston. I can not begin to tell you how much I loath Houston, it's traffic, it's vastness, the never ending congestion and construction, etc. I put up with this madness because the Texas Medical Center is an amazing place to learn. I see the uber insured and I see the fresh off the boat immigrants with nothing. There is an unbelievable sports medicine program here and although I dislike my current local and am counting the days until I never have to lay my eyes on the Houston cityscape. I know that I can go back home and be able to treat and care for anything.