Action ID
:   `actions.intent.GET_PARKING_FACILITY`

Description
:   Get parking facility. May specify a type of parking, app name, and location.

## Example queries

#### en-US

- Find parking on ExampleApp
- Find street parking on ExampleApp
- Find street parking near Googleplex on ExampleApp

## Other supported fields

The following fields represent information that users often provide to
disambiguate their needs or otherwise improve their results:
[`parkingFacility.@type`](https://schema.googleapis.com/ParkingFacility)   
[`parkingFacility.disambiguatingDescription`](https://schema.googleapis.com/disambiguatingDescription)   
[`parkingFacility.address`](https://schema.googleapis.com/address)   
[`parkingFacility.name`](https://schema.googleapis.com/name)   
[`parkingFacility.geo.@type`](https://schema.googleapis.com/geo)   
[`parkingFacility.geo.latitude`](https://schema.googleapis.com/latitude)   
[`parkingFacility.geo.longitude`](https://schema.googleapis.com/longitude)   

## Supported text values by field

`parkingFacility.@type`

- ParkingFacility

`parkingFacility.geo.@type`

- GeoCoordinates

## Sample XML files

For information about the `shortcuts.xml` schema, see [Create shortcuts.xml](https://developer.android.com/guide/app-actions/action-schema).


| **Deprecation notice:** Google is ending support for App Actions implemented using the
| `actions.xml` resource file. Please use the
| [Actions.xml migration guide](https://developer.android.com/guide/app-actions/legacy/migration-guide) to update your
| actions to use the fully supported Android Shortcuts framework. For details on
| the Shortcuts framework, see [App Actions overview](https://developer.android.com/guide/app-actions/overview).

<br />

### Handle BII parameters

### shortcuts.xml


```carbon
<?xml version="1.0" encoding="utf-8"?>
<!-- This is a sample shortcuts.xml -->
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
  <capability android:name="actions.intent.GET_PARKING_FACILITY">
    <intent
      android:action="android.intent.action.VIEW"
      android:targetPackage="YOUR_UNIQUE_APPLICATION_ID"
      android:targetClass="YOUR_TARGET_CLASS">
      <!-- Eg. name = "Googleplex" -->
      <parameter
        android:name="parkingFacility.name"
        android:key="name"/>
      <!-- Eg. address = "1600 Amphitheatre Pkwy, Mountain View, CA 94043" -->
      <parameter
        android:name="parkingFacility.address"
        android:key="address"/>
      <!-- Eg. disambiguatingDescription = "valet" -->
      <parameter
        android:name="parkingFacility.disambiguatingDescription"
        android:key="disambiguatingDescription"/>
      <!-- Eg. latitude = "37.3861" -->
      <parameter
        android:name="parkingFacility.geo.latitude"
        android:key="latitude"/>
      <!-- Eg. longitude = "-122.084" -->
      <parameter
        android:name="parkingFacility.geo.longitude"
        android:key="longitude"/>
    </intent>
  </capability>
</shortcuts>
      
```

<br />

### actions.xml


```carbon
<?xml version="1.0" encoding="utf-8"?>
<!-- This is a sample actions.xml -->
<actions>
  <action intentName="actions.intent.GET_PARKING_FACILITY">
    <fulfillment urlTemplate="myapp://custom-deeplink{?name,address,disambiguatingDescription,latitude,longitude}">
      <!-- e.g. name = "Googleplex" -->
      <!-- (Optional) Require a field eg.name for fulfillment with required="true" -->
      <parameter-mapping urlParameter="name" intentParameter="parkingFacility.name" required="true" />
      <!-- e.g. address = "1600 Amphitheatre Pkwy, Mountain View, CA 94043" -->
      <parameter-mapping urlParameter="address" intentParameter="parkingFacility.address" />
      <!-- e.g. disambiguatingDescription = "valet" -->
      <parameter-mapping urlParameter="disambiguatingDescription" intentParameter="parkingFacility.disambiguatingDescription" />
      <!-- e.g. latitude = "37.3861" -->
      <parameter-mapping urlParameter="latitude" intentParameter="parkingFacility.geo.latitude" />
      <!-- e.g. longitude = "-122.084" -->
      <parameter-mapping urlParameter="longitude" intentParameter="parkingFacility.geo.longitude" />
    </fulfillment>

    <!-- Provide a fallback fulfillment with no required parameters. For example, to your app search or router deeplink -->
    <fulfillment urlTemplate="myapp://deeplink" />
  </action>
</actions>
```

<br />

## JSON-LD sample

The following JSON-LD sample provides some example values that you can
use in the App Actions test tool:

```carbon
{
  "@context": "http://schema.org",
  "@type": "ParkingFacility",
  "address": "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
  "disambiguatingDescription": "valet",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "37.3861",
    "longitude": "-122.084"
  },
  "name": "Googleplex"
}
```