1. A method for obtaining location information, comprising: obtaining street-view image information corresponding to location information; storing correspondingly the street-view image information and the corresponding location information; generating a two-dimensional (2D) bar code containing at least one of the street-view image information and the corresponding location information; scanning the 2D bar code to obtain the at least one of the street-view image information and the location information; when the scanning of the 2D bar code obtains the street-view image information, searching the location information based on the street-view image information; and when the scanning of the 2D bar code obtains the location information, searching the street-view image information based on the location information.