Load POI
Creating POI Objects
When a stage is loaded, the POI information for that stage is also loaded. Based on this loaded POI information, Map POI and Sign POI are created.
Map POI
POI objects added to the map.
Sign POI
POI objects added to the 3D space. These can be viewed through AR effects.
By default, you can automatically generate Map POI and Sign POI objects using the ItemGenerator. However, if you need direct access to the data, such as constructing a list view using POI information, you can retrieve it.
Retrieving POI Data
You can use the OnPOIList
event of ARPlayGround to retrieve the POI list stored in the amproj file.
The delivered POI list can be filtered and used as follows:
public void OnPOIList(List<LayerPOIItem> poiItems)
{
// Output only POIs that meet the conditions.
var filterdPOIItems = poiItems.FindAll(
e =>
// Cafe
e.dpcode == 110700 ||
e.dpcode == 111100 ||
// Toilets
e.dpcode == 133000 ||
e.dpcode == 133003 ||
e.dpcode == 133004 ||
e.dpcode == 133113 ||
// Info
e.dpcode == 133130 ||
e.name == "Labs Research Center"
);
}