Program.cs 928 B

12345678910111213141516171819202122232425262728293031
  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. GPSInfoWebModel model = GPSInfoTool.GetInfo("iAe652kYOgleRHUYQkW1E8MIHEptnMb5", 40.039669, 252.129464);
  20. if (model != null)
  21. {
  22. GPSInfoModel info = model.ToGPSInfoModel();
  23. Console.WriteLine(info);
  24. }
  25. Console.ReadLine();
  26. }
  27. }
  28. }