Program.cs 890 B

123456789101112131415161718192021222324252627282930
  1. using Azylee.YeahWeb.BaiDuWebAPI.GPSAPI;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Test.YeahWeb
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. if (GPSConverter.DeviceGPSToBaiduGPS("iAe652kYOgleRHUYQkW1E8MIHEptnMb5", 120.379235583333, 36.19172925, out double x, out double y))
  14. {
  15. Console.WriteLine($"120.379235583333 - 36.19172925");
  16. Console.WriteLine($"{x} - {y}");
  17. }
  18. GPSInfoWebModel model = GPSInfoTool.GetInfo("iAe652kYOgleRHUYQkW1E8MIHEptnMb5", 40.039669, 252.129464);
  19. if (model != null)
  20. {
  21. GPSInfoModel info = model.ToGPSInfoModel();
  22. Console.WriteLine(info);
  23. }
  24. Console.ReadLine();
  25. }
  26. }
  27. }