---
title: client.geo.metro_code
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/variables/geolocation/client-geo-metro-code
---

**Type:** INTEGER  
**Access:** read-only

**Available in:** all subroutines

Metro code.

Metro codes represent designated market areas (DMAs) and are used to define broadcast markets in a geographical region. The US has 3-digit metro codes. Codes for other countries are typically 5 or 6 digits long.
