A method for obtaining a map comprises: capturing a map image from a physical map, obtaining a plurality of geographical coordinates corresponding to a plurality of reference points from one of the physical map and the map image, calculating a corresponding geographical coordinate of each pixel in the map image, and embedding a relationship between each pixel and its corresponding geographical coordinate into the map image.