Input how ? GPS ?
Google maps running where ? On Pi ?
Getting directions as text, voice, graphics ??
I got more questions than answers so maybe you should take the time to describe your project in more detail.
Checking out googles Directions API seems relevant:
https://developers.google.com/maps/docu ... ions-panel