Indoor positioning

ArcGIS IPS is an indoor positioning system that allows you to locate yourself and others inside a building in real time. Similar to GPS, it puts a blue dot on indoor maps and uses location services to help you navigate to any point of interest or destination.

ArcGIS IPS supports:

  • Real-time indoor wayfinding
  • Real-time indoors location tracking and sharing
  • Real-time indoor location data collection
  • Indoor analytics

Your ArcGIS Runtime app can work with ArcGIS IPS to show device location using an indoor location data source.

Indoor positioning in a mobile app

How ArcGIS IPS works

ArcGIS IPS provides geoprocessing tools for setting up and authoring your IPS environment in ArcGIS Pro. It also includes ArcGIS Setup, a mobile app to collect radio signals from Bluetooth Low Energy (BLE) Beacons inside your building(s) to enable the indoor positioning system. It can make use of an existing or new beacon infrastructure and is beacon vendor agnostic.

See Get started with ArcGIS IPS in the ArcGIS Pro documentation for detailed instructions for setting up an indoor positioning system.

At version 100.14, ArcGIS Runtime supports Wi-Fi for indoor positioning on Android devices. ArcGIS IPS does not support BLE and Wi-Fi systems in the same facility but a mix of these systems can be deployed in different facilities within the same site.

Android 9 introduced Wi-Fi scan throttling to limit the number of Wi-Fi scans. To use Wi-Fi IPS, Android devices (9 or higher) must enable developer mode and disable Wi-Fi scan throttling (Developer Options > Networking > Wi-Fi scan throttling).

Floor-aware maps

ArcGIS Setup supports two types of floor-aware maps:

The ArcGIS Setup app automatically displays a floor picker when one of the two supported floor-aware maps is used. The floor picker is a custom component that you might want to implement in your own ArcGIS Runtime app. For an ArcGIS Indoors map, you can use the FloorManager class to expose available sites, facilities, and levels in your floor picker. For an ArcGIS IPS map, you'll need to also implement a custom floor manager component to manage those datasets in a floor picker.

IPS positioning table

An IPS positioning feature table is stored with an IPS-enabled map. Each row in the table contains an indoor positioning file. The positioning file is created when setting up the IPS environment using the Generate positioning file geoprocessing tool. The tool processes one or more indoor surveys and creates a new row in the IPS positioning table with the positioning file (as an attachment) along with the date and time it was created. When working with an indoor location source in your ArcGIS Runtime app, the most recent positioning file is used unless you specify a different one, as described in the following section.

Indoor location data source

Your app can work with indoor positioning by using a location data source and the geoview's location display. The basics are the same as working with any other LocationDataSource . The IndoorsLocationDataSource wraps the logic to find location using an indoor positioning file, Bluetooth signals, and information from device sensors. The IndoorsLocationDataSource provides the geographic location along with other metadata, such as the floor.

To work with ArcGIS IPS, the constructor for the IndoorsLocationDataSource requires an IPS positioning table. Optionally, you can provide the following.

  • Row ID: A globally unique ID that identifies a row in the IPS positioning table. The positioning file associated with this row will be used to find indoor locations. If not specified in the constructor, the positioning file from the most recent survey is used.

  • Pathways table: An ArcGISFeatureTable with line features that represent paths through the indoor space. Locations provided by the IndoorsLocationDataSource are snapped to the lines in this feature class.

In the image below, the red + represents raw locations determined by the IPS. These locations are snapped to the nearest line feature in the pathways feature table before being displayed. This provides a more consistent display of the blue dot as it moves across the map.

Locations are snapped to line features in the pathways feature table

You can handle a status changed event for the IndoorsLocationDataSource to be notified when the location data source starts, stops, or fails to start.

Caching the positioning file

Upon creation, an IndoorsLocationDataSource caches its positioning file on the device. The next time an indoors location data source is created for the same positioning table, the cached version of the file will be used under any of these circumstances:

  • The cached positioning file is requested in the constructor (by row ID).
  • A row ID isn't provided in the constructor and the cached positioning file is determined to be the most recent one available.
  • No internet connection is available.

Handle location change

You can handle the location changed event for the IndoorsLocationDataSource to read information about the current Location .

An IPS location populates additional properties with the current floor and the transmitter (beacon) count. When the floor changes, you can update the map to filter the display of features for the current floor. The floor value returned with the location is an integer that represents the vertical offset, where 0 is the ground floor. This value increases by one for each floor above the ground floor and decreases by one for each floor below.

Use code like the following to read additional properties for the location when it changes.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
private void HandleLocationChanged(Location location)
{
    // Get the floor from the location's additional properties.
    if (location.AdditionalSourceProperties.ContainsKey("floor"))
    {
        // This is the vertical offset, not a floor ID. The ground floor is 0.
        int newFloor = (int)location.AdditionalSourceProperties["floor"];

        if (this.Map != null && this.Map.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)
        {
            // Call a function to filter layers for the current floor (level).
            SetupLayers(newFloor);
        }
    }

}

In addition to getting the floor, you can get the position source, which will be BLE (Bluetooth Low Energy) when using IPS and GNSS (Global Navigation Satellite Systems) when using GPS. You can also get the count of transmitters (beacons) or satellites used to determine the location.

You can use a definition expression to filter layers in the map to only show features for the current floor. For efficiency, you should only filter features when the floor changes rather than with each location update. Depending on the schema for your floor-aware data, you may need to map the vertical offset value to a level ID in order to filter features by floor (level).

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
foreach (Layer layer in Map.OperationalLayers)
{
    string name = layer.Name;

    // Filter applicable layers to show features for the current floor (level).
    if (layer is FeatureLayer featureLayer && (name == "Details" || name == "Units" || name == "Levels"))
    {
        featureLayer.DefinitionExpression = "VERTICAL_ORDER = " + level;
    }
}

Examples

Add indoor positioning to your app

To use indoor positioning in your ArcGIS Runtime app, you must have an IPS-enabled map. In addition to layers that describe the floor plan, an IPS-enabled map contains an IPS positioning table. See Get started with ArcGIS IPS in the ArcGIS Pro documentation for detailed instructions for setting up an IPS-enabled map.

In your app, make sure you request permissions for Bluetooth scanning. Also request permissions for accessing location (to use GPS).

  1. Load the IPS-enabled map. This can be a web map hosted as a portal item in ArcGIS Online or an Enterprise Portal or a mobile map package (.mmpk) created with ArcGIS Pro.

  2. Create an IndoorsLocationDataSource . Provide the positioning table (stored with the map) and the pathways feature class.

  3. Handle location change events if you want to respond to floor changes or read other metadata for locations.

  4. Assign the IndoorsLocationDataSource to the map view's location display.

  5. Enable the map view's location display. Device location will appear on the display as a blue dot and update as the user moves throughout the space.

If using an MVVM design pattern, the logic for the location data source can go into the view model. You can read the positioning table and pathways dataset from the map and use them to create the IndoorsLocationDataSource .

View Model
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
// Get the positioning table from the map.
FeatureTable positioningTable = Map.Tables.FirstOrDefault(t => t.DisplayName == "ips_positioning");

// Can't create the IndoorsLocationDataSource if the positioning table is not found.
if (positioningTable == null)
{
    throw new ArgumentException("Positioning table not found");
}

// Get the pathways layer (optional for creating the IndoorsLocationDataSource).
// This enables path snapping of locations (to hallway centerlines, for example).
Layer resultPathwaysLayer = Map.OperationalLayers.FirstOrDefault(l => l.Name == "Pathways");

// If there's a pathways layer, use it to create the indoors location data source.
if (resultPathwaysLayer != null)
{
    FeatureLayer pathwaysLayer = (FeatureLayer)resultPathwaysLayer;
    ArcGISFeatureTable pathwaysTable = (ArcGISFeatureTable)pathwaysLayer.FeatureTable;

    // Create the IndoorsLocationDataSource with the positioning table and pathways.
    LocationDatasource = new IndoorsLocationDataSource(positioningTable, pathwaysTable);
}
else
{
    // Create the IndoorsLocationDataSource with the positioning table only.
    LocationDatasource = new IndoorsLocationDataSource(positioningTable, null);
}

// The listener which will receive location, heading, and status updates from the data source.
LocationDatasource.LocationChanged += (s, e) => HandleLocationChanged(e);

In the view, assign the IndoorsLocationDataSource as the geoview's location display data source. Enable the location display to start receiving locations.

View
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
// Assign the IndoorLocationDataSource provided by the view model.
MyMapView.LocationDisplay.DataSource = viewModel.LocationDatasource;

// Enable the location display, which will trigger LocationDataSource to start receiving updates.
MyMapView.LocationDisplay.IsEnabled = true;

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.