I'm trying to write a simple plugin for Map Monkey, but i keep running into the following problem.
I try to readout the latitude and longitude they way specified in the examples, but all I get is "52" instead of "52.06031" for the latitude. Same goes for the longitute.
Please keep in mind that I do have some experience in C-programming, but this is my first time using Visual Basic.
Here's the relevant code from my project:
A side note, when I use the example application included with Map Monkey I get the same result.
Dim WithEvents mTalk As MonkeyTalk.MonkeyMessenger
Dim MMRunning As Boolean
Dim MMConnected As Boolean
Dim Lat As Double
Dim Lon As Double
Dim Speed As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
mTalk = New MonkeyTalk.MonkeyMessenger
MMRunning = mTalk.IsMapMonkeyRunning
RichTextBox1.AppendText("Map Monkey is running: " & MMRunning & vbNewLine)
mTalk.Connected = True
If mTalk.Connected Then
RichTextBox1.AppendText("Connected to mTalk" & vbNewLine)
Lat = mTalk.Latitude
Lon = mTalk.Longitude
Speed = mTalk.Speed
RichTextBox1.AppendText("Current Langitude is: " & Lat & vbNewLine)
RichTextBox1.AppendText("Current Longitude is: " & Lon & vbNewLine)
RichTextBox1.AppendText("Current Speed is: " & Speed & vbNewLine)
RichTextBox1.AppendText(mTalk.Address.Street & vbNewLine & mTalk.Address.City & vbNewLine)
RichTextBox1.AppendText(Err.Description & vbNewLine)
I'd be very happy with tips/tricks that could help me out.