Azure Indoor Map: What are the filters we can give in WFS get Features API

Satyam Chauhan 512 Reputation points
2022-07-20T09:04:22.833+00:00

I want to get the list of unit features having common feature value by using the WFS API like this: https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?subscription-key={SubscriptionKey}&api-version=2.0&nameSubtitle=XYZ. This will return all the units with nameSubtitle as XYZ.

But instead of using nameSubtitle, name, nameAlt, and addressRoomNumber, can we use a different or custom unit property?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
595 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 15,386 Reputation points Microsoft Employee
    2022-07-25T15:59:52.787+00:00

    Azure Maps Creator uses WFS 3.0 (renamed to OGC API - features by the OGC after creator was launched). This uses CQL (common query language) for filtering. So, your URL would more likely look like this: https://us.atlas.microsoft.com/wfs/datasets/{datasetId}/collections/unit/items?subscription-key={SubscriptionKey}&api-version=2.0&filter=nameSubtitle='XYZ' Note that WFS 3 is still new and not fully locked down, as such Azure Maps appears to support only some of the capabilities currently as they are likely waiting for things to be locked in before exposing them. According to the Azure Maps docs "Only feature properties of scalar type and equals operator are supported. This is a special parameter where the parameter name is a case sensitive property name. The scheme for this parameter is {property name}={property value}. "

    As for using custom properties to filter, it is possible, but those properties need to be part of the indoor maps schema otherwise they might get filtered out during the import process.

    0 comments No comments