Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:06:32+00:00 2026-06-03T06:06:32+00:00

Can I get latitude and longtitude on windows 7 desktop application? Usually it will

  • 0

Can I get latitude and longtitude on windows 7 desktop application?

Usually it will work on mobile or tablet using GPS, 3G or WiFi.

But how I get the coordinate using c#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:06:33+00:00Added an answer on June 3, 2026 at 6:06 am

    A standard GPS device (internal or external) sends data on a serial port. Receiving any data from Serial Port is very easy. Please check this link.

        //define serial port
        SerialPort serialPort1 = new SerialPort();
    
        //configuring the serial port
        serialPort1.PortName="COM1";
        serialPort1.BaudRate=9600;
        serialPort1.DataBits=8;
        serialPort1.Parity=Parity.None;
        serialPort1.StopBits= StopBits.One;
    
       //read data from serial port
       string data = serialPort1.ReadExisting();
    

    GPS data is composed on NMEA protocol. The data itself is just ascii text and may extend over multiple sentences e.g.

    • GGA
    • GSA
    • GSV
    • RMC

    Sample data from wikipedia below.

    $GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76
    $GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A
    $GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70
    $GPGSV,3,2,11,02,39,223,19,13,28,070,17,26,23,252,,04,14,186,14*79
    $GPGSV,3,3,11,29,09,301,24,16,09,020,,36,,,*76
    $GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43
    

    The appropriate string you can use for location data (Latitude/Longitude) is RMC.

    $GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43
    

    It’s information is described here

    $GPRMC,225446,A,4916.45,N,12311.12,W,000.5,054.7,191194,020.3,E*68
    
    
           225446       Time of fix 22:54:46 UTC
           A            Navigation receiver warning A = OK, V = warning
           4916.45,N    Latitude 49 deg. 16.45 min North
           12311.12,W   Longitude 123 deg. 11.12 min West
           000.5        Speed over ground, Knots
           054.7        Course Made Good, True
           191194       Date of fix  19 November 1994
           020.3,E      Magnetic variation 20.3 deg East
           *68          mandatory checksum
    

    For complete GPS data parsing you can check this link. Hopefully it will help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can get the current GPS coordinates on Windows Phone 7 using GeoCoordinateWatcher class
i want to build an app for windows mobile that can get GPS locations(longitude
Using the Google Maps API, how can I get the latitude and longitude of
Hello I am using CoreLocation to get latitude and longitude in my map application
I am developing an app which has GPS functionality. How can I get latitude
Can I use c# webrowser control to get latitude and longitude using google javascript
You can get a list of databases using PRAGMA database_list or a list of
How can I get latitude and longitude from a full address (street, city, etc.)
I'm receiving deserialized object using WCF (trying to get latitude and longitude using google
How i can get the latitude and longitude of the current location, from android?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.