Class Location
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[Serializable]
public sealed class Location
Fields
| Edit this page View Sourcecity
Optional. Free text input for the city of the user, e.g. San Francisco.
Declaration
[SerializeField]
[JsonProperty("city")]
public string city
Field Value
| Type | Description |
|---|---|
| string |
country
Optional. The two-letter ISO country code of the user, e.g. US.
Note: Confirmed OpenAI, Perplexity uses the same format.
Declaration
[SerializeField]
[JsonProperty("country")]
public Country country
Field Value
| Type | Description |
|---|---|
| Country |
latitude
Perplexity only. Optional. The latitude of the user's location.
Declaration
[SerializeField]
[ApiSpecificProperty(Api.Perplexity, "latitude")]
public SerializableNullable<double> latitude
Field Value
| Type | Description |
|---|---|
| SerializableNullable<double> |
longitude
Perplexity only. Optional. The longitude of the user's location.
Declaration
[SerializeField]
[ApiSpecificProperty(Api.Perplexity, "longitude")]
public SerializableNullable<double> longitude
Field Value
| Type | Description |
|---|---|
| SerializableNullable<double> |
region
Optional. Free text input for the region of the user, e.g. California.
Declaration
[SerializeField]
[JsonProperty("region")]
public string region
Field Value
| Type | Description |
|---|---|
| string |
timezone
Optional. The IANA timezone of the user, e.g. America/Los_Angeles.
Declaration
[SerializeField]
[JsonProperty("timezone")]
public TimeZone timezone
Field Value
| Type | Description |
|---|---|
| TimeZone |
Properties
| Edit this page View SourceType
Required. The type of location approximation. Always approximate.
Declaration
[ApiSpecificProperty(Api.OpenAI, "type")]
public string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |