Home Page Forums Raspberry Pi Shields GPS – minutes/seconds don't match with Google maps API

This topic contains 1 reply, has 1 voice, and was last updated by  Mark 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2976

    Mark
    Participant

    Hello,
    I’m using the latest mPCI-E shield for 4G/LTE along with BOTH Verizon(EC25-V) and ATT(EC25-A).
    Extracting Lat/Lon from both GPRMC & GPGGA sentences both raw & formatted successfully.
    When the formatted Lat/Lon are sent to Google maps API the map that is rendered is not my actual location, in fact it is miles away in another town BUT same state.
    The parsed format is correct but I also manually inserted and formatted for the API, the results are the same.
    Yes, I have an a GPS antenna and I am consistently tracking 7+ satellites.
    =========================================================================================
    State: Connecticut
    Test location Lat/Lon from Google: 41.6154448 / -72.6232941
    raw sentences from Verizon: (date not important – output is consistent)
    $GPRMC,210220.00,A,4136.929119,N,07237.383194,W,0.0,64.6,300418,11.6,W,A*34
    $GPGGA,210220.00,4136.929119,N,07237.383194,W,1,08,1.1,48.6,M,-35.0,M,,*6A
    raw sentences from ATT:
    $GPRMC,165428.00,A,4136.926558,N,07237.387243,W,0.0,168.0,230418,11.6,W,A*01
    $GPGGA,154554.00,4136.932564,N,07237.395298,W,1,05,1.2,-11.7,M,-35.0,M,,*4F
    ========================================================================================
    Any assistance would be GREATLY appreciated.

    If anyone else is reading this post and is having same/similar issues please respond.

    Thank you!

    #2979

    Mark
    Participant

    RESOLVED!
    Being a noob w/Lat/Lon I didn’t realize there’s a conversion.
    Based on the python example it was simply moving the decimal point, it’s not.
    parse degrees (0)XX then take ALL minutes MM.MMMMMM, divide by 60 and move the value to the right of the decimal. Carry out 6 places and round. That’s for the Google API anyway.

    Thanks again

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.