MappedinNode Class
A MappedinNode represents a position, anchored to a specific MappedinMap.
A Node can have more properties but usually the default is sufficient. The Mappedin 'things' object is where you would specify what properties you want to download for Nodes. Only specify what you will actually use, to minmimze transfer time. Work with your Mappedin developer relations contact to set up any custom properties you need.
-
destination
-
options
-
cb
Gets directions from this Node to the target Polygon, Location, Node or array of Nodes.
Parameters:
-
destination
MappedinLocation | MappedinNode | [MappedinNode] | MappedinPolygonDestination.
-
options
ObjectOptions.
-
[accessible=false]
Boolean optionalTrue if directions should be wheelchair accessible.
-
[directionsProvider="online"]
String optionalOnline directions by default. See directionsProvider for more options.
-
-
cb
DirectionsToCallbackCallback. See directionsToCallback for details.
-
error
-
directions
Directions callback.
Parameters:
-
error
ErrorError.
-
directions
MappedinDirectionsDirections response.
-
destination
-
options
-
cb
Gets the cost (combined distance and weights) and total distance(in meters) from this Node to the target Polygon, Location, Node or array of Nodes.
Parameters:
-
destination
MappedinLocation | MappedinNode | [MappedinNode] | MappedinPolygonDestination.
-
options
ObjectOptions.
-
[accessible=false]
Boolean optionalTrue if directions should be wheelchair accessible.
-
-
cb
Error, ObjectCallback object with cost and distance to target.
-
to
Calculate the angle between this node and another
Parameters:
-
to
MappedinNodeOther node in angle.
Returns:
-
to
Calculate the distance between this node and another
Parameters:
-
to
MappedinNodeOther node to calculate distance from.
id
StringNode ID.
This is the internal Mappedin ID, and can be used for the lifetime of the data you get back from getVenue, but it may not be present in future calls, even if there is another Node with otherwise similar properties. An ID can never be reused if it's, say, accidentally deleted. If something more durable is required, or if the data in the Mappedin CMS is being synced from somewhere else, you should finding things using the externalId property.