init(representations:commonName:supportingRepresentations:)
Creates a place descriptor, suitable for use when searching or retrieving rich data about a place.
Declaration
init(representations: [PlaceDescriptor.PlaceRepresentation], commonName: String?, supportingRepresentations: [PlaceDescriptor.SupportingPlaceRepresentation] = [])Parameters
- representations:
A list of ways to reference the place using common mapping concepts.
- commonName:
Publicly known name of the area or place of interest, such as “City Hall”, “Times Square”, or “The New York Public Library”.
- supportingRepresentations:
List of ways to represent a place that are proprietary or non-uniform, such as a dictionary of mapping service identifiers and their related place identifiers.
Discussion
The representations property needs to have at least one member. Sort arrays with original or most accurate representations first.