GeoPoint
class
Build a Datastore Geo Point object.
Constructor
GeoPoint
new GeoPoint(coordinates)
Parameter |
|||||||
---|---|---|---|---|---|---|---|
coordinates |
object Coordinate value. Values in
|
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. |