A computer-implemented method, comprising: determining , based on a geometrical criterion and at least one map object of a plurality of map objects , 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 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 based on a geometrical criterion and at least one map object of the plurality of map objects 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 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 a map element according to the determined map element type based on the at least one map object of the plurality of map objects , the created map element being associated with the at least one map object . determining , based on a geometrical criterion and at least one map object of a plurality of map objects , 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 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 based on a geometrical criterion and at least one map object of the plurality of map objects 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 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 a map element according to the determined map element type based on the at least one map object of the plurality of map objects , the created map element being associated with the at least one map object . <EOS>