Show / Hide Table of Contents

Class ApproximateLocation

To refine search results based on geography, you can specify an approximate user location using any of the following:

  • city and region are free-text strings, like "Minneapolis" and "Minnesota".
  • country is a two-letter ISO country code, like "US".
  • timezone is an IANA timezone string, like "America/Chicago".
Inheritance
object
ApproximateLocation
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class ApproximateLocation

Properties

City

Declaration
[JsonProperty(PropertyName = "city")]
public string City { get; set; }
Property Value
Type Description
string

Approximate city name, like "Minneapolis".

Country

Declaration
[JsonProperty(PropertyName = "country")]
public string Country { get; set; }
Property Value
Type Description
string

Two-letter ISO country code.

Region

Declaration
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
Property Value
Type Description
string

Approximate region or state, like "Minnesota".

Timezone

Declaration
[JsonProperty(PropertyName = "timezone")]
public string Timezone { get; set; }
Property Value
Type Description
string

IANA timezone string.

In this article
Back to top