---
title: Geo
summary: Geo represents the geographic data for an IP address.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/geo/struct.Geo/
---

**Kind:** Struct  
**Module:** [geo](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/geo/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/geo/geodata.go#L23

```go
type Geo struct {
	AsName           string  `json:"as_name"`
	AsNumber         int     `json:"as_number"`
	AreaCode         int     `json:"area_code"`
	City             string  `json:"city"`
	ConnSpeed        string  `json:"conn_speed"`
	ConnType         string  `json:"conn_type"`
	ContinentCode    string  `json:"continent"`
	CountryCode      string  `json:"country_code"`
	CountryCode3     string  `json:"country_code3"`
	CountryName      string  `json:"country_name"`
	Latitude         float64 `json:"latitude"`
	Longitude        float64 `json:"longitude"`
	MetroCode        int     `json:"metro_code"`
	PostalCode       string  `json:"postal_code"`
	ProxyDescription string  `json:"proxy_description"`
	ProxyType        string  `json:"proxy_type"`
	Region           string  `json:"region"`
	UTCOffset        int     `json:"utc_offset"`
}
```

Geo represents the geographic data for an IP address.

## Fields

### AsName

**Type:** `string`

The name of the organization associated with AsNumber

Tag: `json:"as_name"`

### AsNumber

**Type:** `int`

Autonomous system (AS) number

Tag: `json:"as_number"`

### AreaCode

**Type:** `int`

The telephone area code associated with an IP address

Tag: `json:"area_code"`

### City

**Type:** `string`

City or town name

Tag: `json:"city"`

### ConnSpeed

**Type:** `string`

Connection speed

Tag: `json:"conn_speed"`

### ConnType

**Type:** `string`

Connection type

Tag: `json:"conn_type"`

### ContinentCode

**Type:** `string`

A two-character UN M.49 continent code

Tag: `json:"continent"`

### CountryCode

**Type:** `string`

A two-character ISO 3166-1 country code for the country associated with an IP address

Tag: `json:"country_code"`

### CountryCode3

**Type:** `string`

A three-character ISO 3166-1 alpha-3 country code for the country associated with the IP address

Tag: `json:"country_code3"`

### CountryName

**Type:** `string`

Country name

Tag: `json:"country_name"`

### Latitude

**Type:** `float64`

Latitude, in units of degrees from the equator

Tag: `json:"latitude"`

### Longitude

**Type:** `float64`

Longitude, in units of degrees from the IERS Reference Meridian

Tag: `json:"longitude"`

### MetroCode

**Type:** `int`

Metro code, representing designated market areas (DMAs) in the United States

Tag: `json:"metro_code"`

### PostalCode

**Type:** `string`

The postal code associated with the IP address

Tag: `json:"postal_code"`

### ProxyDescription

**Type:** `string`

Client proxy description

Tag: `json:"proxy_description"`

### ProxyType

**Type:** `string`

Client proxy type

Tag: `json:"proxy_type"`

### Region

**Type:** `string`

ISO 3166-2 country subdivision code

Tag: `json:"region"`

### UTCOffset

**Type:** `int`

Time zone offset from coordinated universal time (UTC) for city

Tag: `json:"utc_offset"`
