A method of updating location information, said location information representing a physical location of a communication device, wherein said location information is generated by a location source, and wherein said location information is sent from the location source via a location object generating unit and a cache unit to a location consumer, the location consumer being comprised of an electronic device having hardware comprising a processor and non-transitory memory, the method comprising:
- caching a first location information in the cache unit,
- monitoring a second location information received subsequently to the first location information at the location object generating unit by the location object generating unit to detect an invalid location information included in the second location information, and,
- upon detection of the invalid location information included in the second location information, sending a location object generated by the location object generating unit from the location object generating unit to the cache unit, wherein the location object comprises invalidation information indicating that location information of the first location information is invalid so that the cached first location information is discarded by the cache unit in response to the location object.