gis-tools-ts - v0.6.0
    Preparing search index...

    Function alongLine

    • Given a linestring in degrees and a distance, create a [VectorPoint] along the line

      Type Parameters

      • M = Record<string, unknown>
      • D extends Properties = Properties
      • P extends Properties = Properties

      Parameters

      • input:
            | VectorLineString<D>
            | VectorLineStringGeometry<D>
            | VectorFeature<M, D, P, VectorLineStringGeometry<D>>

        The linestring to interpolate along

      • distance: number

        The distance to interpolate in meters

      • Optionalradius: number

        The radius of the sphere. Defaults to the Earth's radius in meters

      Returns VectorPoint

      • the interpolated point