Get parking facility

Action ID
actions.intent.GET_PARKING_FACILITY
Description
Get parking facility. May specify a type of parking, app name, and location.

Locale support

Functionality Locales
Preview creation using App Actions test tool en-US
User invocation from Google Assistant en-US

Example queries

Other supported fields

The following fields represent information that users often provide to disambiguate their needs or otherwise improve their results:

parkingFacility.@type
parkingFacility.disambiguatingDescription
parkingFacility.address
parkingFacility.name
parkingFacility.geo.@type
parkingFacility.geo.latitude
parkingFacility.geo.longitude

Supported text values by field



Sample XML files

For information about the shortcuts.xml schema, see Create shortcuts.xml.

Handle BII parameters

shortcuts.xml

<?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>
      

actions.xml

<?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>

JSON-LD sample

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

{
  "@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"
}