Program.cs 781 B

123456789101112131415161718192021222324
  1. using Azylee.Core.IOUtils.ImageUtils;
  2. using Azylee.YeahWeb.BaiDuWebAPI.GPSAPI;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Test.YeahWeb
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. if (GPSConverter.DeviceGPSToBaiduGPS("iAe652kYOgleRHUYQkW1E8MIHEptnMb5", 120.379235583333, 36.19172925, out double x, out double y))
  15. {
  16. Console.WriteLine($"120.379235583333 - 36.19172925");
  17. Console.WriteLine($"{x} - {y}");
  18. }
  19. http://api.map.baidu.com/geocoder/v2/?location=36.1981373852607,120.390842831702&output=json&ak=iAe652kYOgleRHUYQkW1E8MIHEptnMb5
  20. Console.ReadLine();
  21. }
  22. }
  23. }