concept location class in category angular

appears as: Location class, location class
Getting MEAN with Mongo, Express, Angular, and Node.js 2ED

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.

Listing 8.7. Defining the Location class in home-list.component.ts
import { Component, OnInit } from '@angular/core';

export class Location {              #1
  _id: string;                       #2
  name: string;                      #2
  distance: number;                  #2
  address: string;                   #2
  rating: number;                    #2
  facilities: string[];              #3
}