A method is disclosed for generating a route in an area covered by an electronic map. The map comprises a plurality of segments representing navigable elements of a navigable network in the area covered by the electronic map. A selection of a profile is received, e.g. from a user, said profile comprising data identifying one or more segments of the electronic map. A route is generated between an origin and a destination in the electronic map using a routing process in which each of the one or more segments identified by the selected profile is penalised. Any segments in the generated route that are segments identified by the selected profile are detected, and data representative of said generated route and said detected segments are output, e.g. for provision to a user.