Azure Spatial Anchors - What exactly are Anchor Locate Requests (ALR) and where can you see how many are actually made?

Paulo Ferreira da Silva 1 Reputation point
2022-02-14T10:42:36.827+00:00

In the context of a customer project, the issue is as described in the title related to Anchor Locate Requests (ALR). The website provides the following information:
"An Anchor Locate Request, or ALR, refers to a developer API call that is utilized to locate a spatial anchor."

However, since it is not clear here when exactly such a request is made and what exactly "locate" means in this case, I have already searched the corresponding documentation (https://learn.microsoft.com/en-us/azure/spatial-anchors/how-tos/create-locate-anchors-unity). However, I did not find any clarity here either.

Also in the Azure Portal under the corresponding service I could not find anything.

Therefore I hope that you can help me with the following questions:

  • When, where and how often are ALRs executed?
  • Is there a way to see how many ALRs have already been executed?

Please let me know if you need more information.

Many thanks in advance.

Best regards
Paulo

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. António Sérgio Azevedo 7,671 Reputation points Microsoft Employee Moderator
    2022-02-14T15:25:49.247+00:00

    Hello @Paulo Ferreira da Silva ,
    I believe the following article can help clarify your questions: Understanding the AnchorLocateCriteria class - did you came across it before?

    What exactly are Anchor Locate Requests (ALR)

    Anchor Locate Requests are initialized by the AnchorLocateCriteria class and they can be looking for anchors by ID (Identifiers), anchors within a desired distance away from a chosen anchor (NearAnchor) or anchors close to the device’s physical location (NearDevice).

    where can you see how many are actually made | When, where and how often are ALRs executed?

    That will depend on the strategy you use on your AnchorLocateCriteria object, the default is AnyStrategy that permits the system to use combinations of VisualInformation and Relationship strategies to find anchors.

    Is there a way to see how many ALRs have already been executed?

    One AnchorLocateCriteria object may be used per watcher at any time. You can add a counter in your app to track how many ALRs have been executed.

    Another option is to use Azure Portal and check "Anchors Created" Metric at any given time:

    174130-image.png

    The pricing page of Azure Spatial Anchors is also a good source of information on how to measure ALRs: https://azure.microsoft.com/en-us/pricing/details/spatial-anchors/

    174107-image.png

    Remember:

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.