Product Coordinate Conversion
Optional
Needed if you have your own product, shelf or aisle coordinates.
Overview
If you already have your own data about the location of products, shelves, or aisles in a store (for example a planogram system, or a curated spreadsheet), you can convert those coordinates into Oriient's coordinate system and use them directly with the SDK's Navigation and Content features — without relying on Product Location (PLAI).
This is a two-step process:
- Provide Oriient with a mapping between your coordinate system and the building's physical layout (contact Oriient Customer Support with your planogram/location data), so Oriient can enable coordinate conversion for the building;
- Use IPSCore.createCoordinatesConverter() in your app to convert your own coordinates to Oriient coordinates at runtime.
Creating a Converter
IPSCore.createCoordinatesConverter(buildingId, object : IPSCoordinatesConverterListener {
override fun onCreated(coordinatesConverter: IPSBuildingCoordinatesConverter) {
val oriientCoordinate = coordinatesConverter.convertToOriient(IPSCoordinateModel(yourCoordinateX, yourCoordinateY), floorId)
}
override fun onError(error: IPSError) {
}
})
The returned IPSBuildingCoordinatesConverter can convert coordinates in both directions:
- convertToOriient(coordinate, floorId) — converts a coordinate from your coordinate system to Oriient's;
- convertFromOriient(coordinate, floorId) — converts an Oriient coordinate back to your coordinate system;
- Both also have
headingoverloads to convert a heading/orientation value.
Tip
convertToOriient(coordinate, floorId, allowSnapping) additionally accepts an allowSnapping flag, which lets the SDK snap the converted coordinate to the nearest wall or shelf in the store layout, correcting for minor misalignment between the two coordinate systems.
Once each product's, shelf's, or aisle's externalCoordinate has been converted to an oriientCoordinate, it can be placed on the map or used as a waypoint for Navigation.