A computer-implemented method, comprising: determining (201, 520), based on a geometrical criterion and at least one map object of a plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316), whether a map element of a first map element type or a second map element type shall be created; wherein according to the geometrical criterion it is determined whether a dimension of an area associated with the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) represents a narrow dimension, and if yes, it is determined that a map element of the first map element type shall be created, and if not, it is determined that a map element of the second map element type shall be created, wherein elements of the first map element type represent one-dimensional routes and wherein elements of the second map element type represent two-dimensional elements representing open spaces; wherein the geometrical criterion comprises a distance threshold, and wherein said determining (201, 520) based on a geometrical criterion and at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) whether a map element of a first map element type or a second map element type shall be created comprises checking whether a distance associated with the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) is below the distance threshold; wherein the distance associated with the at least one map object of the plurality of map objects is a distance between two opposing sides of the area associated with the at least one map object; and creating (202, 530) a map element (402', 411) according to the determined map element type based on the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316), the created map element being (402', 411) associated with the at least one map object (301, 302, 311, 312, 313, 314, 315, 316). determining (201, 520), based on a geometrical criterion and at least one map object of a plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316), whether a map element of a first map element type or a second map element type shall be created; wherein according to the geometrical criterion it is determined whether a dimension of an area associated with the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) represents a narrow dimension, and if yes, it is determined that a map element of the first map element type shall be created, and if not, it is determined that a map element of the second map element type shall be created, wherein elements of the first map element type represent one-dimensional routes and wherein elements of the second map element type represent two-dimensional elements representing open spaces; wherein the geometrical criterion comprises a distance threshold, and wherein said determining (201, 520) based on a geometrical criterion and at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) whether a map element of a first map element type or a second map element type shall be created comprises checking whether a distance associated with the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316) is below the distance threshold; wherein the distance associated with the at least one map object of the plurality of map objects is a distance between two opposing sides of the area associated with the at least one map object; and creating (202, 530) a map element (402', 411) according to the determined map element type based on the at least one map object of the plurality of map objects (301, 302, 311, 312, 313, 314, 315, 316), the created map element being (402', 411) associated with the at least one map object (301, 302, 311, 312, 313, 314, 315, 316).