Method and device for searching based on lines

The invention discloses a method and a device for searching based on lines. The method comprises the following steps of according to the line information inputted by a user, obtaining a plurality of sequence points for forming the line; using each sequence point as a center, expanding the sequence points into a sequence surface according to the pre-defined expansion range, collecting all sequence surfaces, and arranging into the information of the sequence surfaces; searching in the information of the sequence surfaces, so as to obtain the search results. The method has the advantages that the requirement of a user on the search method based on the lines can be met, and the accuracy of map search results is improved.