Constructor

GeoPoint

new GeoPoint(coordinates)

Build a Datastore Geo Point object.

Parameter

coordinates

object

Coordinate value.

Example

const Datastore = require('@google-cloud/datastore');
const datastore = new Datastore();
const coordinates = {
  latitude: 40.6894,
  longitude: -74.0447
};

const geoPoint = datastore.geoPoint(coordinates);

Property

coordinates

object

Coordinate value.

Properties

Parameter

latitude

number

Latitudinal value.

longitude

number

Longitudinal value.