I don't think you're allowed to do so. There's a question and answer about this topic on the website yeshiva.org.il, but the Rabbi doesn't explain his answer.
Dear Yeshiva.org.il,
I have read the previous question and answer on this topic, but I still do not understand the Rabbinic prohibition. Putting that aside for a moment, I have an individual questions: I live 3 miles away from shul, and as we’re a very small community there’s only one service every month. Now, I could walk to and from shul, but I find this very tiring, it is very mundane (meaning that it reminds me of weekday by walking along a road I commute along every day), and it’s not really making Shabbos much of a ’day of rest’. So, in these circumstances, is it not permitted for me to have my friend drive me to and from the synagogue?
Answer:
No, it is not permitted.
Additional answers of Rabbi Yirmiyohu Kaganoff