9. The method of claim 1 , wherein the current location has a size corresponding to an accuracy.
1. A method comprising: receiving, by one or more computers, a current location of a mobile device and a context of the current location, the context comprising a pattern of movement of the mobile device; identifying, from a plurality of geofences, two or more geofences intersecting the current location; selecting a geofence from the two or more geofences using the context, wherein selecting the geofence comprises: determining a fence size for each of the two or more geofences; calculating match scores measuring matches between the fence sizes and the pattern of movement of the mobile device; and selecting the geofence based on the match scores; and determining that the mobile device is located in a geofenced area enclosed by the selected geofence.