# MeshGeoReference Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Subsystems.MeshGeoReference/ MeshGeoReference > extends UnityEngine.MonoBehaviour --- ## Declaration public class MeshGeoReference : MonoBehaviour ## Summary Carries the georeference of the asset a downloaded mesh chunk belongs to: the geodetic origin the chunk transforms are expressed relative to, plus the transform into that origin's frame. Attached to the chunk GameObject returned by GetLocationMeshChunksByVpsMapAssetIdAsync. ## Remarks Identical on every chunk of one download, because it describes the space rather than any single node. A chunk's own geographic position is obtained by composing this with the chunk's transform within the asset's origin space. Both the origin and the transform are required: depending on the asset, the altitude offset may live entirely in ReferenceAltitude (with TrackingToReference carrying no vertical translation) or entirely in TrackingToReference (with ReferenceAltitude zero). Applying the origin without the transform is wrong in the general case. --- ## Properties | Name | Type | Summary | | --- | --- | --- | | Mode | MeshGeoReferenceMode | Whether the properties below are valid. Inspect this first. | | ReferenceAltitude | double | Altitude of that origin, in meters above the WGS84 ellipsoid. | | ReferenceLatitude | double | WGS84 latitude of the origin TrackingToReference maps into, in decimal degrees. | | ReferenceLongitude | double | WGS84 longitude of that origin, in decimal degrees. | | TrackingToReference | float[] | Column-major 4x4 matrix (16 elements) mapping the asset's origin space (the space the chunk transforms are expressed in, not the device's AR session space) into meters relative to the reference origin, exactly as delivered by Portal -- this implementation does not transpose it. Both sides use the native NSDK convention (x right, y down, z forward in; East-Down-North out), not Unity axes, so +Y is downward. | ---