FareZone Data Type

All OTP Transit entities should extend this class. The purpose of the class is to enforce a common implementation of the identity:

  1. id - All entities should have an id. The id should be unique within the context the entity live. For aggregates which live in a global space the id must be unique. This apply to all entities listed in the index service.
  2. The hashCode()/equals() method is consistent and based on the id (identity). We frequently use this to index and lookup entities.

Implemented Interfaces
Serializable
Properties
name data type description
name string
Properties inherited from TransitEntity
id FeedScopedId

Example

{
  "name" : "...",
  "id" : {
    "feedId" : "...",
    "id" : "..."
  }
}