Program.cs 743 B

1234567891011121314151617181920212223
  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. http://api.map.baidu.com/geocoder/v2/?location=36.1981373852607,120.390842831702&output=json&ak=iAe652kYOgleRHUYQkW1E8MIHEptnMb5
  19. Console.ReadLine();
  20. }
  21. }
  22. }