Skip to main content

CalculateZone

Calculate the zone name based on the provided coordinates.

Initialization

The first time this function is called, it initializes the zones and cities data using InitZonesAndCities.

Return Value For Unknown Zone

If the zone cannot be determined, the function returns "Unbekannt". It's the German word for Unknown. This return value may change in future versions to more universal English term Unknown.

Parameters:

  • posX: X coordinate as float
  • posY: Y coordinate as float
  • posZ: Z coordinate as float

Returns: Zone name as string, or "Unbekannt" if not found

Signature:

CalculateZone(posX, posY, posZ)