get_container()

Returns the container ID of a given place.

Synopsis

get_container(place_type, place_id)

Description

A container is simply a place that contains a place. This function returns the ID of a place_type that contains the provided place_id.

Parameters

place_type

The place type that supposedly contains place_id

place_id

The place ID that is supposedly contained in place_type

Returns

The container/place type ID of the specified place_id. Returns -1 if no such place exists.

Examples

container_id = get_container(School_District, School)

This returns the specific School_District that contains the agent’s School.