0

Im currently tasked to create an app that would sketch a GPS Device's movement and plot it on the ArcGIS map. By default, the ArcGIS locationDisplay class calls the IOS class CLLocation to retrieve the GPS data in which it only uses the internal GPS of the iPhone.

My question is: Is there any way to force the iPhone to use the GPS of an external device? Or can we configure the ArcGIS to use the data from the external device?

2
  • 1
    the i device needs to be jailbroken. discussions.apple.com/thread/2243991?start=0&tstart=0
    – Mapperz
    Commented Apr 4, 2013 at 17:26
  • Just curious, why do you want to do this? Do you need better accuracy or resolution than the internal GPS can provide? There may be alternative solutions to external GPS units.
    – Ben H
    Commented Dec 4, 2013 at 2:19

1 Answer 1

2

First how are you planning to connect the external GPS to your iOS device?

Because you either have to purchase an external GPS that already has the capability to connect to an iOS device, or the GPS device can transmit the location via Bluetooth Low Energy (LE).

Apple doesn't allow any device to communicate with their iOS devices unless it's part of the MFi program.

After that placing the coordinates on to the map is a piece of cake, first you have to keep in mind that any GPS device will give you coordinates in Lat/Lon (Spatial Refrence with WKID 4326), so you'll have to project that to your map's coordinate system.

After that you'll just create an AGSGraphic and place it on the map with the geometry and symbology that you can define.

Here is some code to do that :

AGSPictureMarkerSymbol *gpsSymbol = [[AGSPictureMarkerSymbol alloc] initWithImageNamed:@"ArcGIS.bundle/GpsDisplay.png"];

AGSGraphic *gpsGraphic = [[AGSGraphic alloc] initWithGeometry:<Your Geometry> symbol:gpsSymbol attributes:nil infoTemplateDelegate:nil];

Then just add the gpsGraphic to the map.

6
  • Hi Khattab. I have a Hemisphere GPS device to use and a Roving Network RN340 wifi serial adapter that transmits the data of the GPS device. My main concern is how to retrieve that data using my app.
    – Juno
    Commented Apr 4, 2013 at 20:54
  • You'll probably then need to create an HTTP Server on your iOS app, that the RN340 will post the data to, here's a tutorial to get you started on this: cocoawithlove.com/2009/07/…
    – Khattab
    Commented Apr 4, 2013 at 21:22
  • Hi Khattab. I think that is a good idea. there is an IOS app provided by Roving Networks that connects to the RN340 and receives its data. I believe essentially, my app should do the same.
    – Juno
    Commented Apr 4, 2013 at 21:52
  • Cool, tell me if you need any help
    – Khattab
    Commented Apr 5, 2013 at 18:16
  • Finally linked my app to the wifly module and now retrieving GPS data. But encountered another roadblock. How to i force ArcGIS IOS to use that data as the location display? currently im just retrieving one point since my GPS receiver is not moving.
    – Juno
    Commented Apr 8, 2013 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.