class
GeoPoint
Source: entity.
Build a Datastore Geo Point object.
Property
new GeoPoint(coordinates)
Example
const {Datastore} = require('@google-cloud/datastore');
const datastore = new Datastore();
const coordinates = {
latitude: 40.6894,
longitude: -74.0447
};
const geoPoint = datastore.geoPoint(coordinates);
Parameters
| Name | Type | Optional | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
coordinates |
|
|
Coordinate value. Values in
|
Property
coordinates object
Coordinate value.
Properties
| Name | Type | Optional | Description |
|---|---|---|---|
|
latitude |
number |
|
Latitudinal value. |
|
longitude |
number |
|
Longitudinal value. |