Patent ID: 8090383

Claim:
A method for location-based services, comprising: at a microprocessor, receiving a first report at a first time from at least one of location sensing hardware in a mobile phone and location receiving hardware in the mobile phone, wherein the first report is associated with a first location and the mobile phone; receiving a second report at a second time, wherein the second report is associated with a second location and the mobile phone; determining that the first location corresponds to a facility, wherein the facility is one of a plurality of facilities about which information relating to said facilities are maintained; determining that the first report is associated with entering the facility; updating state information associated with the facility, wherein the modified state information includes an indication of presence of personnel associated with the mobile phone at the facility; determining that the second report is associated with exiting the facility; storing a data record including first data that includes a first identifier for the facility, second data that includes a second identifier for at least one of the mobile phone and the personnel associated with the mobile phone, and third data that includes information relating to the first time and the second time; and executing programmatic instructions to determine an amount of time during which the mobile phone was associated with the facility based at least in part on the third data of the stored data record, wherein the amount of time during which the mobile phone was associated with the facility is to be used in calculating a charge on an invoice to a client, wherein the facility is associated with the client, wherein the charge to the client relates to a service performed by the personnel associated with the mobile phone, and wherein the charge to the client is calculated based at least in part on multiplying the amount of time during which the mobile phone was associated with the facility by a rate for the personnel associated with the mobile phone over a predetermined period of time.