One of the Major Critical Issues In Vehicular Ad Hoc Networks (Vanets) Is Routing. In This Paper We Are Considering the Issue of Routing In Vehicle to Infrastructure (V2i) and Vehicle to Vehicle (V2v) Communications In Vanets. and Also Proposes a Destination and Moving Direction Based Routing (Demodi) Algorithm For Supporting V2i and V2v Communications. Demodi Takes the Benefit of Both the Destination Location and Moving Directions of Vehicles to Select the Next Hop (Neighbor Vehicle) For Forwarding Data. Without Using Other Control Messages It Only Uses a Single Init Message to Acquire or Revise Routing Information, Which Mainly Reduces the Control Message Counts In Routing. the Packet Delivery Ratio of the Network Can Be Considerably Improving By the Demodi Algorithm.