Display.Location

522
1
09-17-2017 05:41 PM
thomasbales
Occasional Contributor

I am able to display the device location of my surface pro as long as I have an internet connection. I would like to be able to show a GPS position using the nifty animation on the same device but the coordinates and heading would be coming from a local socket (port) from a GPS device.

Is there anyway to so this. I looked at the GPS demo and the program generates a moving animation from parsing a GPS file. So this should be possible to do. I have written the code that gets the heading, late, and lon but I have no idea how to set the coordinates and pass in the location so that the program would use my data and not the data from the device.

Help please.

Tags (3)
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

There's a full sample here of a location provider based on a Serial-port based NMEA GPS Device:

https://github.com/dotMorten/Nmeaparser/tree/ArcGISLocationProvider

The location datasource provider specifically is here: https://github.com/dotMorten/NmeaParser/blob/ArcGISLocationProvider/src/SampleApp.Store/SampleApp.St...

0 Kudos