LocationAwareness doesn't detect other symbolic spaces in building #291
Replies: 1 comment
-
|
Solved it! The altitude affected the bounds for the symbolic spaces so I opted to only using lat and long coordinates. await GEOJSON_FEATURES.features.forEach(async (feature: any) => {
const space = SymbolicSpace.fromGeoJSON(feature);
if (space instanceof Floor) {
space.setBuilding(building).setFloorNumber(3);
floor = space.clone();
}
if (space instanceof CellSpace) {
space.setFloor(floor).setBounds([
...space.getBounds().map((coords) => {
const tempCoords = coords.clone() as GeographicalPosition;
return new GeographicalPosition(tempCoords.latitude, tempCoords.longitude);
}),
]);
}
// Store the space in memory
await spaceService.insertObject(space);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm developing on a project for indoor positioning and currently work on geofencing. I got OpenHPS exercises to familiarize with the framework and the current exercise I'm working on is:
However when I print the values of the spaces it only detects the building
Pleinlaan 9as a SymbolicSpace. What I want to achieve is to detect the different spaces inside the building and tried to use the geographical coordinates of the top left corner ofPleinlaan 9as a reference point and converted the recieved Absolute3DPosition into a GeographicalPosition inthis.watchPosition().Dependencies for the project and dataset;
Beta Was this translation helpful? Give feedback.
All reactions