Exemplo n.º 1
0
        public async Task TestGetReGeoCode()
        {
            ReGeoParameter reGeoParameter = new ReGeoParameter()
            {
                Location   = "116.481488,39.990464",
                Batch      = false,
                Output     = "JSON",
                Radius     = 1000,
                RoadLevel  = 0,
                Extensions = "base",
                Poitype    = string.Empty
            };

            IAmapWebApi jobsManager = _serviceProvider.GetService <IAmapWebApi>();
            var         jobs        = await jobsManager.GetRegeoAsync(reGeoParameter);

            Assert.True(jobs.ReGeoCode.AddressComponent.Country == "中国");
        }
Exemplo n.º 2
0
 public JobsHttpFunctionInvoker(ILoggerFactory loggerFactory, IJobsManager manager, IAmapWebApi webApi) :
     base(loggerFactory)
 {
     jobsManager = manager;
     amapWebApi  = webApi;
 }