City Schema Generator and Guide

City

Schema.org Type

A city or town.

City schema is a sub type of:

This schema has no sub types

City Schema Generator in JSON-LD

City schema code:

This Schema can take the following complex properties:


How to Create a City Schema


Step 1: Fill out the form above as much as possible.

Note:Use this Schema.org based structured data generator tool to easily create City schema.
The properties are the description of your entity. You don't have to fill in all the properties on this page. Provide what is available and leave what is not. To learn more about each property in your schema type please check City schema properties


Step 2: When complete click the Copy Code button to get your JSON-LD code

Notes:To check if your code is eligible for featured snippets (rich snippets or rich results) test your code with the Rich Results Test tool to learn more about which schema are qualified for rich results check out Google’s search gallery.
To validate your markup code, check your JSON-LD code with the Schema Markup Validator


Step 3: To add a sub-schema, click on the Create Knowledge Graph button

Important Notes: to describe the relationship between your entities you must design a custom schema, this is where the 'creation of knowledge graph' is needed.
For example: if you have a local business and you want to add a service catalogue, or if you have a recipe schema and you want to add a HowTo steps, or if you have a product and you want to add a FAQ about it, to learn more watch this semantic SEO workshop





City Schema Properties

City has 57 properties:

  • additionalProperty A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.

    Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
  • additionalType An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.
  • address Physical address of the item.
  • aggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
  • alternateName An alias for the item.
  • amenityFeature An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
  • branchCode A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.

    For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.
  • containedIn The basic containment relation between a place and one that contains it.
  • containedInPlace The basic containment relation between a place and one that contains it.
  • containsPlace The basic containment relation between a place and another that it contains.
  • description A description of the item.
  • disambiguatingDescription A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
  • events Upcoming or past events associated with this place or organization.
  • event Upcoming or past event associated with this place, organization, or action.
  • faxNumber The fax number.
  • geoContains Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in DE-9IM.
  • geo The geo coordinates of the place.
  • geoCoveredBy Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in DE-9IM.
  • geoCovers Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in DE-9IM.
  • geoCrosses Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in DE-9IM.
  • geoDisjoint Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in DE-9IM)
  • geoEquals Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in DE-9IM. "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship)
  • geoIntersects Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in DE-9IM.
  • geoOverlaps Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in DE-9IM.
  • geoTouches Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in DE-9IM )
  • geoWithin Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in DE-9IM.
  • globalLocationNumber The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
  • hasDriveThroughService Indicates whether some facility (e.g. FoodEstablishment, CovidTestingFacility) offers a service that can be used by driving through in a car. In the case of CovidTestingFacility such facilities could potentially help with social distancing from other potentially-infected users.
  • hasMap A URL to a map of the place.
  • identifier The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.
  • image An image of the item. This can be a URL or a fully described ImageObject.
  • isAccessibleForFree A flag to signal that the item, event, or place is accessible for free.
  • isicV4 The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
  • keywords Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
  • latitude The latitude of a location. For example 37.42242 (WGS 84).
  • longitude The longitude of a location. For example -122.08585 (WGS 84).
  • mainEntityOfPage Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details.
  • map A URL to a map of the place.
  • maps A URL to a map of the place.
  • maximumAttendeeCapacity The total number of individuals that may attend an event or venue.
  • name The name of the item.
  • openingHoursSpecification The opening hours of a certain place.
  • photo A photograph of this place.
  • photos Photographs of this place.
  • potentialAction Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
  • publicAccess A flag to signal that the Place is open to public visitors. If this property is omitted there is no assumed default boolean value
  • review A review of the item.
  • reviews Review of the item.
  • sameAs URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
  • slogan A slogan or motto associated with the item.
  • smokingAllowed Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.
  • specialOpeningHoursSpecification The special opening hours of a certain place.

    Use this to explicitly override general opening hours brought in scope by openingHoursSpecification or openingHours.
  • subjectOf A CreativeWork or Event about this Thing.
  • telephone The telephone number.
  • tourBookingPage A page providing information on how to book a tour of some Place, such as an Accommodation or ApartmentComplex in a real estate setting, as well as other kinds of tours as appropriate.
  • url URL of the item.