主权项 |
1. A method comprising:
receiving, by a processor, a request from a user device to access a location-based service via a wireless access point (WAP); determining whether the user device is static or mobile, wherein determining whether the user device is static or mobile includes:
determining a length of time that the user device has accessed the WAP;determining that the user device is mobile when the length of time that the user device has accessed the WAP is less than a threshold amount; anddetermining that the user device is static when the length of time that the user device has accessed the WAP satisfies the threshold amount; identifying, by the processor, a particular WAP identifier associated with the WAP based on the request; determining, by the processor, a particular geographic location based on the identifier and based on determining whether the user device is static or mobile, wherein a first WAP information service (WIS) stores data associating first geographic locations and WAP identifiers corresponding to a plurality of WAPs that include the WAP, wherein a second WIS stores data associating the WAP identifiers and second geographic locations corresponding to other access points, wherein the first geographic locations differ from the second geographic locations, and wherein determining the particular geographic location includes:
querying, based on determining that the user device is static, the first WIS based on the particular WAP identifier to identify, as the particular geographic location, one of the first geographic locations corresponding to the WAP, andquerying, based on determining that the user device is mobile, the second WIS based on the particular WAP identifier to identify, as the particular geographic location, one of the second geographic locations; and establishing, by the processor, a communication between the user device and the location-based service based on the particular geographic location. |