A computer-implemented method for generating navigation directions to avoid areas having location-dependent driving restrictions, comprising: receiving, by an electronic device, a user request for navigation directions from an origin location to a destination location; determining, by a navigation application of the electronic device, two or more sets of navigation directions, each of which directs a user of the electronic device from the origin location to the destination location; comparing, by the electronic device, one or more of: the origin location, the destination location, or the two or more sets of navigation directions to locations associated with a plurality of driving restrictions, each of the plurality of driving restrictions associated with a different set of rules, to identify a driving restriction from among the plurality of driving restrictions that applies to the user request for navigation directions; prompting, by the electronic device, the user of the electronic device to provide information related to the identified driving restriction; determining, by the electronic device, based on the information and the set of rules associated with the identified driving restriction, that the identified driving restriction applies to the user of the electronic device; identifying, by the electronic device, a set of navigation directions of the two or more sets of navigation directions that avoids the locations associated with the identified driving restriction that applies to the user of the electronic device; and providing, by the electronic device to the user of the electronic device, the two or more sets of navigation directions including: the identified set of navigation directions to avoid the locations associated with the identified driving restriction, and a set of navigation directions having a segment which is associated with the identified driving restriction; wherein the provided two or more sets of navigation directions are ranked according to a factor associated with the navigation directions and according to association with the identified driving restriction, and provided to the navigation application of the electronic device by a navigation server. receiving, by an electronic device, a user request for navigation directions from an origin location to a destination location; determining, by a navigation application of the electronic device, two or more sets of navigation directions, each of which directs a user of the electronic device from the origin location to the destination location; comparing, by the electronic device, one or more of: the origin location, the destination location, or the two or more sets of navigation directions to locations associated with a plurality of driving restrictions, each of the plurality of driving restrictions associated with a different set of rules, to identify a driving restriction from among the plurality of driving restrictions that applies to the user request for navigation directions; prompting, by the electronic device, the user of the electronic device to provide information related to the identified driving restriction; determining, by the electronic device, based on the information and the set of rules associated with the identified driving restriction, that the identified driving restriction applies to the user of the electronic device; identifying, by the electronic device, a set of navigation directions of the two or more sets of navigation directions that avoids the locations associated with the identified driving restriction that applies to the user of the electronic device; and providing, by the electronic device to the user of the electronic device, the two or more sets of navigation directions including: the identified set of navigation directions to avoid the locations associated with the identified driving restriction, and a set of navigation directions having a segment which is associated the identified set of navigation directions to avoid the locations associated with the identified driving restriction, and a set of navigation directions having a segment which is associated with the identified driving restriction; wherein the provided two or more sets of navigation directions are ranked according to a factor associated with the navigation directions and according to association with the identified driving restriction, and provided to the navigation application of the electronic device by a navigation server.