Results 1 to 4 of 4

Thread: MonkeyTalk only reporting limited GPS coords?

  1. #1
    Join Date
    May 2006

    MonkeyTalk only reporting limited GPS coords?


    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:
        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)
            End If
        End Sub
    A side note, when I use the example application included with Map Monkey I get the same result.

    I'd be very happy with tips/tricks that could help me out.

  2. #2
    Constant Bitrate
    Join Date
    Nov 2005
    It doesn't look like a code issue, maybe some system global setting or something.

    I took your code and applied to a new project and looks ok:
    Attached Images Attached Images  

  3. #3
    Join Date
    May 2006
    Thank you for trying, I was already beginning to doubt myself.

    I'm guessing it has something to do with a "." as separator instead of a ",".
    I'll try changing the locale, see if that helps.


  4. #4
    Join Date
    May 2006
    Jep, that's it.
    Most countries write "1,000,000", we crazy Dutchmen write "1.000.000".

    That's not really Map Monkey's fault, but it's a bug anyway :-)

Similar Threads

  1. Replies: 65
    Last Post: 10-13-2009, 07:51 PM
  2. Getting Started with GPS
    By grepzen in forum The FAQ Emporium
    Replies: 12
    Last Post: 09-26-2006, 06:54 AM
  3. Cell Phone GPS
    By EBFoxbat in forum GPS
    Replies: 5
    Last Post: 09-14-2005, 07:45 AM
  4. Replies: 8
    Last Post: 03-26-2005, 11:29 AM
  5. Newbie's guide
    By EBFoxbat in forum Newbie
    Replies: 6
    Last Post: 02-08-2005, 11:06 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts