You can choose the default mode of transportation for getting directions in the Maps app .
Go to Settings > Maps.
Tap Driving, Walking, Transit, or Cycling (below Preferred Type of Travel).