In one embodiment, the invention provides a method and an apparatus for generating a way in a map, and solves the problems that in the prior art, way distribution status cannot be clearly presented in an electronic map. The method includes the steps of: 1) acquiring navigation data of at least two users in a target zone in a map, the target zone including at least two grid units; 2) according to the navigation data, determining moving status of all users passing through every grid unit in the target zone, wherein the moving status includes walking status and driving status; 3) according to the moving status, determining the grid type of every grid unit, the grid type including walking grid and driving grid; and 4) according to the grid units, which are adjacent to each other and belong to the type of walking grid, in the target zone, generating a sidewalk way, and/or according to the grid units, which are adjacent to each other and belong to the type of driving grid, in the target zone, generating a lane way.