Design url for search


#1

I’m a frontend dev and new to designing applications where the url is the base.

I want to implement a search page similar to expedia.com and kayak.com. I just don’t know what is a good url design for this functionality. Here is an examples from the above sites.

Expedia
http://www.expedia.com/Flights-Search?trip=oneway&leg1=from:Cochin,%20India%20(COK-Cochin%20Intl.),to:Dallas,%20TX,%20United%20States%20(DFW-All%20Airports),departure:05/10/2014TANYT&passengers=children:1[1],adults:2,seniors:0,infantinlap:Y&mode=search

Kayak

From what I understand above, Expedia is using query params and Kayak is using dynamic segments. Some ember articles say that query params are for state information like sorting. So expedia’s url feels wrong.

Is using dynamic segments the right choice or is there a better design? I could use some opinions from you experienced devs.