For a complete c # show that the application of GPS latitude and longitude coordinates


CodePudding user response:
String s=COM1. ReadLine ();If (s.C ontains (" GNGGA "))
{
String [] PosString=Data [I] the Split (', ');
Try
{
Double Temp=double. Parse (PosString [2]).
Double Temp1=(int) (Temp/100) + Temp % 100/60;
TextBox2. Text=Temp1. ToString (" 0.000000 ");
Temp=double. Parse (PosString [4]);
Temp1=(int) (Temp/100) + Temp % 100/60;
TextBox3. Text=Temp1. ToString (" 0.000000 ");
Console. WriteLine (textBox2. Text + "" + textBox3. Text);
}
Catch
{}
}
CodePudding user response:
Excuse me the string [] PosString what is behind the Data and I