show route by search
added getCost function