azure-docs-sdk-java/docs-ref-autogen/com.azure.core.models.GeoPo...

162 строки
11 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.models.GeoPosition"
fullName: "com.azure.core.models.GeoPosition"
name: "GeoPosition"
nameWithType: "GeoPosition"
summary: "Represents a geographic position in GeoJSON format."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **GeoPosition**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.core.models.GeoPosition?alt=com.azure.core.models.GeoPosition&text=GeoPosition\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.core.models.GeoPosition.GeoPosition(double,double)"
fullName: "com.azure.core.models.GeoPosition.GeoPosition(double longitude, double latitude)"
name: "GeoPosition(double longitude, double latitude)"
nameWithType: "GeoPosition.GeoPosition(double longitude, double latitude)"
summary: "Constructs a geo position."
parameters:
- description: "Longitudinal position."
name: "longitude"
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- description: "Latitudinal position."
name: "latitude"
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
syntax: "public GeoPosition(double longitude, double latitude)"
desc: "Constructs a geo position."
- uid: "com.azure.core.models.GeoPosition.GeoPosition(double,double,java.lang.Double)"
fullName: "com.azure.core.models.GeoPosition.GeoPosition(double longitude, double latitude, Double altitude)"
name: "GeoPosition(double longitude, double latitude, Double altitude)"
nameWithType: "GeoPosition.GeoPosition(double longitude, double latitude, Double altitude)"
summary: "Constructs a geo position."
parameters:
- description: "Longitudinal position."
name: "longitude"
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- description: "Latitudinal position."
name: "latitude"
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- description: "Altitude position."
name: "altitude"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html\">Double</a>"
syntax: "public GeoPosition(double longitude, double latitude, Double altitude)"
desc: "Constructs a geo position."
methods:
- uid: "com.azure.core.models.GeoPosition.count()"
fullName: "com.azure.core.models.GeoPosition.count()"
name: "count()"
nameWithType: "GeoPosition.count()"
summary: "Gets the number of coordinates used to compose the position."
syntax: "public int count()"
desc: "Gets the number of coordinates used to compose the position.\n\nThis will return either 2 or 3 depending on whether <xref uid=\"com.azure.core.models.GeoPosition.getAltitude()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"altitude is set\"></xref>."
returns:
description: "The number of coordinates used to compose the position."
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.equals(java.lang.Object)"
fullName: "com.azure.core.models.GeoPosition.equals(Object obj)"
name: "equals(Object obj)"
nameWithType: "GeoPosition.equals(Object obj)"
overridden: "java.lang.Object.equals(java.lang.Object)"
parameters:
- name: "obj"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
syntax: "public boolean equals(Object obj)"
returns:
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.core.models.GeoPosition.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "GeoPosition.fromJson(JsonReader jsonReader)"
summary: "Reads a JSON stream into a <xref uid=\"com.azure.core.models.GeoPosition\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GeoPosition\"></xref>."
modifiers:
- "static"
parameters:
- description: "The <xref uid=\"com.azure.json.JsonReader\" data-throw-if-not-resolved=\"false\" data-raw-source=\"JsonReader\"></xref> being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static GeoPosition fromJson(JsonReader jsonReader)"
exceptions:
- description: "If the <xref uid=\"GeoPosition\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GeoPosition\"></xref> has less than two or more than three positions in the\n array."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads a JSON stream into a <xref uid=\"com.azure.core.models.GeoPosition\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GeoPosition\"></xref>."
returns:
description: "The <xref uid=\"com.azure.core.models.GeoPosition\" data-throw-if-not-resolved=\"false\" data-raw-source=\"GeoPosition\"></xref> that the JSON stream represented, or null if it pointed to JSON null."
type: "<xref href=\"com.azure.core.models.GeoPosition?alt=com.azure.core.models.GeoPosition&text=GeoPosition\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.getAltitude()"
fullName: "com.azure.core.models.GeoPosition.getAltitude()"
name: "getAltitude()"
nameWithType: "GeoPosition.getAltitude()"
summary: "The altitude of the geometric position."
syntax: "public Double getAltitude()"
desc: "The altitude of the geometric position."
returns:
description: "The altitude."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html\">Double</a>"
- uid: "com.azure.core.models.GeoPosition.getLatitude()"
fullName: "com.azure.core.models.GeoPosition.getLatitude()"
name: "getLatitude()"
nameWithType: "GeoPosition.getLatitude()"
summary: "The latitudinal position of the geometric position."
syntax: "public double getLatitude()"
desc: "The latitudinal position of the geometric position."
returns:
description: "The latitudinal position."
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.getLongitude()"
fullName: "com.azure.core.models.GeoPosition.getLongitude()"
name: "getLongitude()"
nameWithType: "GeoPosition.getLongitude()"
summary: "The longitudinal position of the geometric position."
syntax: "public double getLongitude()"
desc: "The longitudinal position of the geometric position."
returns:
description: "The longitudinal position."
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.hashCode()"
fullName: "com.azure.core.models.GeoPosition.hashCode()"
name: "hashCode()"
nameWithType: "GeoPosition.hashCode()"
overridden: "java.lang.Object.hashCode()"
syntax: "public int hashCode()"
returns:
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.core.models.GeoPosition.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "GeoPosition.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.models.GeoPosition.toString()"
fullName: "com.azure.core.models.GeoPosition.toString()"
name: "toString()"
nameWithType: "GeoPosition.toString()"
overridden: "java.lang.Object.toString()"
syntax: "public String toString()"
returns:
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
type: "class"
desc: "Represents a geographic position in GeoJSON format.\n\nThis class encapsulates a geographic position defined by longitude, latitude, and optionally altitude. It provides methods to access these properties.\n\nThis class also provides a <xref uid=\"com.azure.core.models.GeoPosition.toJson(com.azure.json.JsonWriter)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#toJson(JsonWriter)\"></xref> method to serialize the geographic position to JSON, and a <xref uid=\"com.azure.core.models.GeoPosition.fromJson(com.azure.json.JsonReader)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#fromJson(JsonReader)\"></xref> method to deserialize a geographic position from JSON.\n\nThis class is useful when you want to work with a geographic position in a geographic context. For example, you can use it to represent a location on a map or a point in a geographic dataset."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.core.models.GeoPosition?alt=com.azure.core.models.GeoPosition&text=GeoPosition\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.core.models"
artifact: com.azure:azure-core:1.54.0