C# history API with queries by location