It makes sense, but as the Directions service is subject to a quota
and a rate limit (to prevent abuse), you may not be able to do it
dynamically with the services available to you from google.
You may need to get road data for your area of interest (accurate data
will cost money) and process it locally on your server.
-- Larry