I am using Directions API to get a route segment (list of destinations to reach a particular destination).
origin = "New York"
destination = "Ohio"
output: ['2 Murray Street, New York, NY 10007, USA', '50 14th St, Jersey City, NJ 07310, USA', '5710 Newark - Jersey City Tpke, Kearny, NJ 07032, USA', 'US 46, 07058, , New Jersey, United States', '192 Waring Dr, Delaware Water Gap, PA 18327, USA', '4891 E County Line Rd, Mineral Ridge, OH 44440, USA', ', 44451, , Ohio, United States', '914&, 916 Rosamond Ave, Akron, OH 44307, USA', '1090 W Wilbeth Rd, Akron, OH 44314, USA', 'US 224, 44273, , Ohio, United States', 'I 71, 43334, , Ohio, United States', '3970 OH-229, Marengo, OH 43334, USA', '2390 OH-229, Ashley, OH 43003, USA']
the desired output: The above list shows each and every address I need to go through to reach Ohio from New York. I wish to get only the HIGHWAY/EXPRESSWAY/MAJOR ROADS
I have an origin and a destination. I wish to get a list of Highways which I have to take in order to reach the destination from the origin (mode=driving).