GeoPoint

GeoPoint

Build a Datastore Geo Point object.

Constructor

new GeoPoint(coordinates)

Parameters:
Name Type Description
coordinates object

Coordinate value.

Properties
Name Type Description
latitude number

Latitudinal value.

longitude number

Longitudinal 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);
```

Members

coordinates

Coordinate value.

Properties:
Name Type Description
latitude number

Latitudinal value.

longitude number

Longitudinal value.