Does C# support GPS?

Asked

Viewed 1,238 times

2

It is possible via a computer I find the location of a cell phone with altitude, longitude and latitude using C#?

Is there a library for that?

Do I need any specific hardware to be able to put into practice this idea of the location of a device? (Which can be anywhere in the world)

I am interested in taking some suitcases and putting inside them an Arduino OR a mobile phone so that I can via desktop PC track the position of this suitcase anywhere in the world. I say desktop because of the comfort of a larger screen, I do not find interesting to see the location of the suitcase by mobile, may be several. I also need the exact coordinates. It’s a college TCC.

  • 1

    Without the cell phone reporting its position for some service, I don’t think it’s possible. GPS is a system that the cell phone uses to know its own position, you can not know the position of the devices without them inform to some service.

  • It would be nice to give more information than you want, so that I can supplement my response with something that is more relevant to what you want. I answered with what I had the mood at the time.

1 answer

11


C# itself does not have this support. There are libraries for working with GPS that work with C#.

But what it seems that you are accessing the API of some service that informs the location of a mobile.

Or else you have this service built into your application. Where you will need to have software on your mobile device to tell you where it is and another software running on a server that will receive this information.

In the latter case, it will only be a matter of the client software getting the information available on mobile and send to a server (via direct TCP, UDP, etc. or via web technologies such as REST or Websockets). The server will be an appropriate application to receive this information and provide the location of the various monitored devices via a screen or API.

Today it is rare the mobile device that does not provide this data, its hardware already has everything it needs and the operating system provides access to this information.

On the server side you don’t need anything special but a stable network connection and eventually an application server like IIS or Apache if you opt for web technologies (technically it is possible to do without but almost everyone will use a standard application server). After all he only receives information.

If you want to know if a computer can find mobile phones on its own. In principle this is not possible. At least, as far as I know, not under normal conditions.

Some libraries that can help depending on what you do:

Navtrack

GPS.Net

OGL

Sharpgps

I don’t know them and I don’t know if they solve your problem. I’m just asking to give you a study start.

In addition Xamarin has GPS support for mobile devices.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.