- Joined
- Aug 6, 2009
- Messages
- 2,133
- Reaction score
- 433
Good day ragezone coders,
I will try to make it short and easy. There is USB GPS device that creates a COM port to which you can connect and read GPS status and location. I can read it in C# and probably in PHP as well(probably, didn't try).
There is also a a page that shows a google map (from my previous work) with quiet few addresses. I would love to add current location to the map as well. And there are two ways I can think of, so I need a public opinion.
Method #1:
Web page connects to C# listener via WebSocket. No need for requests from client(web page) since C# can just push data(location). Not sure how well it would perform. Possibly could update location as fast as USB GPS updates it.
Method #2:
Have web page do ajax requests to a php script which would then open com port read location and send back. Not realy sure if it can be done in php but should be. But as a con, there would be too much extra data.
Method #3:
Forgot....
Anyone can post a feedback or an opinion? I most certain that I will go with websocket but never worked with it and have no idea how well it will be supported.
I will try to make it short and easy. There is USB GPS device that creates a COM port to which you can connect and read GPS status and location. I can read it in C# and probably in PHP as well(probably, didn't try).
There is also a a page that shows a google map (from my previous work) with quiet few addresses. I would love to add current location to the map as well. And there are two ways I can think of, so I need a public opinion.
Method #1:
Web page connects to C# listener via WebSocket. No need for requests from client(web page) since C# can just push data(location). Not sure how well it would perform. Possibly could update location as fast as USB GPS updates it.
Method #2:
Have web page do ajax requests to a php script which would then open com port read location and send back. Not realy sure if it can be done in php but should be. But as a con, there would be too much extra data.
Method #3:
Forgot....
Anyone can post a feedback or an opinion? I most certain that I will go with websocket but never worked with it and have no idea how well it will be supported.

