Table of Contents

Method Geographic

Namespace
MongoDB.Driver.GeoJsonObjectModel
Assembly
MongoDB.Driver.dll

Geographic(double, double)

Creates a GeoJson 2D geographic position (longitude, latitude).

public static GeoJson2DGeographicCoordinates Geographic(double longitude, double latitude)

Parameters

longitude double

The longitude.

latitude double

The latitude.

Returns

GeoJson2DGeographicCoordinates

A GeoJson 2D geographic position.

Geographic(double, double, double)

Creates a GeoJson 3D geographic position (longitude, latitude, altitude).

public static GeoJson3DGeographicCoordinates Geographic(double longitude, double latitude, double altitude)

Parameters

longitude double

The longitude.

latitude double

The latitude.

altitude double

The altitude.

Returns

GeoJson3DGeographicCoordinates

A GeoJson 3D geographic position.