Patent ID: 8504059

Claim:
A method executed by a mobile device, comprising: receiving identifiers of one or more access points of a wireless communications network and a current mobile country code (MCC); identifying a polygon that is a bounding box of a geographic area that corresponds to the current MCC; selecting a set of access point locations from a location database using the received identifiers, where the access point locations are inside the identified polygon, wherein selecting the set of access point locations comprises: identifying an outlier from the access point locations, including identifying an access point the identifier of which is received by the mobile device wherein, according to a location record stored on the mobile device, the location of the access point is located outside of the polygon that corresponds to the current MCC; and filtering out the outlier from the set of access point locations; and determining a current location of the mobile device based on an average location of the selected set of access point locations.