A method for data processing, comprising: acquiring map data; determining target map elements from the map data, the target map elements being map elements corresponding to a flat mode, wherein a map element corresponding to the flat mode indicates that the map element is actually located on a flat road, the map elements including path point elements and landmark elements, wherein the path points elements are points on roads in the map data; obtaining a map element cluster, by clustering the target map elements based on height information of the target map elements; and performing floor division on the target map elements in accordance with height information corresponding to the map element cluster, wherein the target map elements comprise target path point elements and target landmark elements, and wherein said determining, from the map data, the target map elements corresponding to the flat mode comprises: determining, from the map data, a plurality of path point elements; determining gradient information corresponding to each of the plurality of path point elements, the gradient information being angle information of the plurality of path point elements with respect to a horizontal plane; determining the target path point elements corresponding to the flat mode based on the gradient information; and determining the target landmark elements corresponding to the target path point elements. acquiring map data; determining target map elements from the map data, the target map elements being map elements corresponding to a flat mode, wherein a map element corresponding to the flat mode indicates that the map element is actually located on a flat road, the map elements including path point elements and landmark elements, wherein the path points elements are points on roads in the map data; obtaining a map element cluster, by clustering the target map elements based on height information of the target map elements; and performing floor division on the target map elements in accordance with height information corresponding to the map element cluster, wherein the target map elements comprise target path point elements and target landmark elements, and wherein said determining, from the map data, the target map elements corresponding to the flat mode comprises: determining, from the map data, a plurality of path point elements; determining gradient information corresponding to each of the plurality of path point elements, the gradient information being angle information of the plurality of path point elements with respect to a horizontal plane; determining the target path point elements corresponding to the flat mode based on the gradient information; and determining the target landmark elements corresponding to the target path point elements. determining, from the map data, a plurality of path point elements; determining gradient information corresponding to each of the plurality of path point elements, the gradient information being angle information of the plurality of path point elements with respect to a horizontal plane; determining the target path point elements corresponding to the flat mode based on the gradient information; and determining the target landmark elements corresponding to the target path point elements.