MVFv3 API Documentation
    Preparing search index...

    Locations are user facing destinations on the map. Also called "Points of Interest" (PoI), though in MVF a Location may be attached to multiple geometries, and they do not have to be "point" type.

    The Locations extension adds three properties to the root of the MVF, locations, locationCategories, and locationInstances.

    locations is an array of Locations.

    locationCategories is an array of LocationCategorys.

    locationInstances is an array of LocationInstances.

    type LocationsSchema = {
        locationInstances?: (
            { id: `loci_${string}`; parentId: `loc_${string}` } & {
                categories?: `lcat_${string}`[];
                images?: { url: string }[];
                links?: { label: string; url: string }[];
                logo?: string;
                openingHours?: {
                    "@type"?: "OpeningHoursSpecification";
                    closes?: string;
                    dayOfWeek?:
                        | "Sunday"
                        | "Monday"
                        | "Tuesday"
                        | "Wednesday"
                        | "Thursday"
                        | "Friday"
                        | "Saturday"
                        | "PublicHolidays"
                        | ((...) | (...) | (...) | (...) | (...) | (...) | (...) | (...))[];
                    opens?: string;
                    validFrom?: string;
                    validThrough?: string;
                }[];
                phone?: string;
                social?: { name: string; url: string }[];
                website?: { label: string; url: string };
            } & {} & {
                geometryAnchors?: {
                    floorId: `f_${string}`;
                    geometryId: `g_${string}`;
                }[];
            } & { extra?: { [key: string]: unknown } } & {
                details?: {
                    description?: string;
                    externalId?: string;
                    icon?: string;
                    name?: string;
                    shortName?: string;
                };
            }
        )[];
        locations: (
            {
                categories: `lcat_${string}`[];
                id: `loc_${string}`;
                images: { url: string }[];
                links: { label: string; url: string }[];
                social: { name: string; url: string }[];
                logo?: string;
                openingHours?: {
                    "@type"?: "OpeningHoursSpecification";
                    closes?: string;
                    dayOfWeek?:
                        | "Sunday"
                        | "Monday"
                        | "Tuesday"
                        | "Wednesday"
                        | "Thursday"
                        | "Friday"
                        | "Saturday"
                        | "PublicHolidays"
                        | (
                            | "Sunday"
                            | "Monday"
                            | "Tuesday"
                            | "Wednesday"
                            | "Thursday"
                            | "Friday"
                            | "Saturday"
                            | "PublicHolidays"
                        )[];
                    opens?: string;
                    validFrom?: string;
                    validThrough?: string;
                }[];
                phone?: string;
                website?: { label: string; url: string };
            } & {
                details: { name: string } & {
                    description?: string;
                    externalId?: string;
                    icon?: string;
                    shortName?: string;
                };
            } & {
                geometryAnchors: { floorId: `f_${string}`; geometryId: `g_${string}` }[];
            } & { extra?: { [key: string]: unknown } }
        )[];
        locationCategories: (
            { id: `lcat_${string}`; parent?: `lcat_${string}` } & {
                details: { name: string } & {
                    description?: string;
                    externalId?: string;
                    icon?: string;
                    shortName?: string;
                };
            } & { extra?: { [key: string]: unknown } }
        )[];
    }
    Index

    Properties

    locationInstances?: (
        { id: `loci_${string}`; parentId: `loc_${string}` } & {
            categories?: `lcat_${string}`[];
            images?: { url: string }[];
            links?: { label: string; url: string }[];
            logo?: string;
            openingHours?: {
                "@type"?: "OpeningHoursSpecification";
                closes?: string;
                dayOfWeek?:
                    | "Sunday"
                    | "Monday"
                    | "Tuesday"
                    | "Wednesday"
                    | "Thursday"
                    | "Friday"
                    | "Saturday"
                    | "PublicHolidays"
                    | ((...) | (...) | (...) | (...) | (...) | (...) | (...) | (...))[];
                opens?: string;
                validFrom?: string;
                validThrough?: string;
            }[];
            phone?: string;
            social?: { name: string; url: string }[];
            website?: { label: string; url: string };
        } & {} & {
            geometryAnchors?: { floorId: `f_${string}`; geometryId: `g_${string}` }[];
        } & { extra?: { [key: string]: unknown } } & {
            details?: {
                description?: string;
                externalId?: string;
                icon?: string;
                name?: string;
                shortName?: string;
            };
        }
    )[]

    Type declaration

    • id: `loci_${string}`
    • parentId: `loc_${string}`
    • Optionalcategories?: `lcat_${string}`[]

      The LocationCategorys of the location.

    • Optionalimages?: { url: string }[]

      Images for and usually of the location. Usually photos.

    • Optionallinks?: { label: string; url: string }[]

      Links to other information about the location.

    • Optionallogo?: string

      The logo for the location. Different from Details.icon, or images

    • OptionalopeningHours?: {
          "@type"?: "OpeningHoursSpecification";
          closes?: string;
          dayOfWeek?:
              | "Sunday"
              | "Monday"
              | "Tuesday"
              | "Wednesday"
              | "Thursday"
              | "Friday"
              | "Saturday"
              | "PublicHolidays"
              | ((...) | (...) | (...) | (...) | (...) | (...) | (...) | (...))[];
          opens?: string;
          validFrom?: string;
          validThrough?: string;
      }[]

      The opening hours of the location.

    • Optionalphone?: string

      The phone number of the location.

    • Optionalsocial?: { name: string; url: string }[]

      The social media accounts of the location.

    • Optionalwebsite?: { label: string; url: string }

      A link to the website of the location.

      • OptionalgeometryAnchors?: { floorId: `f_${string}`; geometryId: `g_${string}` }[]
      • Optionalextra?: { [key: string]: unknown }

        {@inheritDoc utility-types/extra!Extra}

        Extra

      • Optionaldetails?: {
            description?: string;
            externalId?: string;
            icon?: string;
            name?: string;
            shortName?: string;
        }

        {@inheritDoc utility-types/details!Details}

      locations: (
          {
              categories: `lcat_${string}`[];
              id: `loc_${string}`;
              images: { url: string }[];
              links: { label: string; url: string }[];
              social: { name: string; url: string }[];
              logo?: string;
              openingHours?: {
                  "@type"?: "OpeningHoursSpecification";
                  closes?: string;
                  dayOfWeek?:
                      | "Sunday"
                      | "Monday"
                      | "Tuesday"
                      | "Wednesday"
                      | "Thursday"
                      | "Friday"
                      | "Saturday"
                      | "PublicHolidays"
                      | (
                          | "Sunday"
                          | "Monday"
                          | "Tuesday"
                          | "Wednesday"
                          | "Thursday"
                          | "Friday"
                          | "Saturday"
                          | "PublicHolidays"
                      )[];
                  opens?: string;
                  validFrom?: string;
                  validThrough?: string;
              }[];
              phone?: string;
              website?: { label: string; url: string };
          } & {
              details: { name: string } & {
                  description?: string;
                  externalId?: string;
                  icon?: string;
                  shortName?: string;
              };
          } & {
              geometryAnchors: { floorId: `f_${string}`; geometryId: `g_${string}` }[];
          } & { extra?: { [key: string]: unknown } }
      )[]

      Type declaration

      • categories: `lcat_${string}`[]

        The LocationCategorys of the location.

      • id: `loc_${string}`

        The ID of the location.

      • images: { url: string }[]

        Images for and usually of the location. Usually photos.

      • links: { label: string; url: string }[]

        Links to other information about the location.

      • social: { name: string; url: string }[]

        The social media accounts of the location.

      • Optionallogo?: string

        The logo for the location. Different from Details.icon, or images

      • OptionalopeningHours?: {
            "@type"?: "OpeningHoursSpecification";
            closes?: string;
            dayOfWeek?:
                | "Sunday"
                | "Monday"
                | "Tuesday"
                | "Wednesday"
                | "Thursday"
                | "Friday"
                | "Saturday"
                | "PublicHolidays"
                | (
                    | "Sunday"
                    | "Monday"
                    | "Tuesday"
                    | "Wednesday"
                    | "Thursday"
                    | "Friday"
                    | "Saturday"
                    | "PublicHolidays"
                )[];
            opens?: string;
            validFrom?: string;
            validThrough?: string;
        }[]

        The opening hours of the location.

      • Optionalphone?: string

        The phone number of the location.

      • Optionalwebsite?: { label: string; url: string }

        A link to the website of the location.

      • details: { name: string } & {
            description?: string;
            externalId?: string;
            icon?: string;
            shortName?: string;
        }
      • geometryAnchors: { floorId: `f_${string}`; geometryId: `g_${string}` }[]
      • Optionalextra?: { [key: string]: unknown }

        {@inheritDoc utility-types/extra!Extra}

        Extra

      locationCategories: (
          { id: `lcat_${string}`; parent?: `lcat_${string}` } & {
              details: { name: string } & {
                  description?: string;
                  externalId?: string;
                  icon?: string;
                  shortName?: string;
              };
          } & { extra?: { [key: string]: unknown } }
      )[]

      Type declaration

      • id: `lcat_${string}`
      • Optionalparent?: `lcat_${string}`
      • details: { name: string } & {
            description?: string;
            externalId?: string;
            icon?: string;
            shortName?: string;
        }
      • Optionalextra?: { [key: string]: unknown }

        {@inheritDoc utility-types/extra!Extra}

        Extra