Skip to content

Commit 1c403ad

Browse files
docs: Update docs (#1586)
1 parent dd4afb1 commit 1c403ad

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

library/com.google.maps.android/-poly-util/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,17 +250,17 @@ <h2 class="">Functions</h2>
250250
</div>
251251
</div>
252252
</div>
253-
<a data-name="2014548033%2FFunctions%2F-1887420133" anchor-label="simplify" id="2014548033%2FFunctions%2F-1887420133" data-filterable-set=":library:dokkaHtml/release"></a>
253+
<a data-name="1205434873%2FFunctions%2F-1887420133" anchor-label="simplify" id="1205434873%2FFunctions%2F-1887420133" data-filterable-set=":library:dokkaHtml/release"></a>
254254
<div class="table-row" data-filterable-current=":library:dokkaHtml/release" data-filterable-set=":library:dokkaHtml/release">
255255
<div class="main-subrow keyValue ">
256256
<div class=""><span class="inline-flex">
257257
<div><a href="simplify.html"><span><span>simplify</span></span></a></div>
258-
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2014548033%2FFunctions%2F-1887420133"></span>
258+
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1205434873%2FFunctions%2F-1887420133"></span>
259259
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
260260
</span></span></div>
261261
<div>
262262
<div class="title">
263-
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html"><span class="token annotation builtin">JvmStatic</span></a></div></div><span class="token keyword">fun </span><a href="simplify.html"><span class="token function">simplify</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">poly<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">tolerance<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html">Double</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Simplifies the given poly (polyline or polygon) using the Douglas-Peucker decimation algorithm. Increasing the tolerance will result in fewer points in the simplified polyline or polygon.</p></div></div></div>
263+
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html"><span class="token annotation builtin">JvmStatic</span></a></div></div><span class="token keyword">fun </span><a href="simplify.html"><span class="token function">simplify</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">poly<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">tolerance<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html">Double</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Simplifies the given poly (polyline or polygon) using the Douglas-Peucker decimation algorithm. Increasing the tolerance will result in fewer points in the simplified polyline or polygon.</p></div></div></div>
264264
</div>
265265
</div>
266266
</div>

library/com.google.maps.android/-poly-util/simplify.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@
104104
</div>
105105
</div>
106106
<div id="main">
107-
<div class="main-content" data-page-type="member" id="content" pageIds="library::com.google.maps.android/PolyUtil/simplify/#kotlin.collections.MutableList[com.google.android.gms.maps.model.LatLng]#kotlin.Double/PointingToDeclaration//-1887420133">
107+
<div class="main-content" data-page-type="member" id="content" pageIds="library::com.google.maps.android/PolyUtil/simplify/#kotlin.collections.List[com.google.android.gms.maps.model.LatLng]#kotlin.Double/PointingToDeclaration//-1887420133">
108108
<div class="breadcrumbs"><a href="../../../index.html">library</a><span class="delimiter">/</span><a href="../index.html">com.google.maps.android</a><span class="delimiter">/</span><a href="index.html">PolyUtil</a><span class="delimiter">/</span><span class="current">simplify</span></div>
109109
<div class="cover ">
110110
<h1 class="cover"><span><span>simplify</span></span></h1>
111111
</div>
112-
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html"><span class="token annotation builtin">JvmStatic</span></a></div></div><span class="token keyword">fun </span><a href="simplify.html"><span class="token function">simplify</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">poly<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">tolerance<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html">Double</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span></div><p class="paragraph">Simplifies the given poly (polyline or polygon) using the Douglas-Peucker decimation algorithm. Increasing the tolerance will result in fewer points in the simplified polyline or polygon.</p><p class="paragraph">When the providing a polygon as input, the first and last point of the list MUST have the same latitude and longitude (i.e., the polygon must be closed). If the input polygon is not closed, the resulting polygon may not be fully simplified.</p><p class="paragraph">The time complexity of Douglas-Peucker is O(n^2), so take care that you do not call this algorithm too frequently in your code.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">a simplified poly produced by the Douglas-Peucker algorithm</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":library:dokkaHtml/release" data-filterable-set=":library:dokkaHtml/release"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>poly</span></span></u></div></span></div><div><div class="title"><p class="paragraph">polyline or polygon to be simplified. Polygon should be closed (i.e., first and last points should have the same latitude and longitude).</p></div></div></div></div><div class="table-row" data-filterable-current=":library:dokkaHtml/release" data-filterable-set=":library:dokkaHtml/release"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>tolerance</span></span></u></div></span></div><div><div class="title"><p class="paragraph">in meters. Increasing the tolerance will result in fewer points in the simplified poly.</p></div></div></div></div></div></div></div>
112+
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":library:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block"><span class="token annotation builtin">@</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.jvm/-jvm-static/index.html"><span class="token annotation builtin">JvmStatic</span></a></div></div><span class="token keyword">fun </span><a href="simplify.html"><span class="token function">simplify</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">poly<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">tolerance<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html">Double</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><span data-unresolved-link="com.google.android.gms.maps.model/LatLng///PointingToDeclaration/">LatLng</span><span class="token operator">&gt;</span></div><p class="paragraph">Simplifies the given poly (polyline or polygon) using the Douglas-Peucker decimation algorithm. Increasing the tolerance will result in fewer points in the simplified polyline or polygon.</p><p class="paragraph">When the providing a polygon as input, the first and last point of the list MUST have the same latitude and longitude (i.e., the polygon must be closed). If the input polygon is not closed, the resulting polygon may not be fully simplified.</p><p class="paragraph">The time complexity of Douglas-Peucker is O(n^2), so take care that you do not call this algorithm too frequently in your code.</p><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">a simplified poly produced by the Douglas-Peucker algorithm</p></span><h4 class="">Parameters</h4><div class="table"><div class="table-row" data-filterable-current=":library:dokkaHtml/release" data-filterable-set=":library:dokkaHtml/release"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>poly</span></span></u></div></span></div><div><div class="title"><p class="paragraph">polyline or polygon to be simplified. Polygon should be closed (i.e., first and last points should have the same latitude and longitude).</p></div></div></div></div><div class="table-row" data-filterable-current=":library:dokkaHtml/release" data-filterable-set=":library:dokkaHtml/release"><div class="main-subrow keyValue "><div class=""><span class="inline-flex"><div><u><span><span>tolerance</span></span></u></div></span></div><div><div class="title"><p class="paragraph">in meters. Increasing the tolerance will result in fewer points in the simplified poly.</p></div></div></div></div></div></div></div>
113113
</div>
114114
<div class="footer">
115115
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>

library/package-list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ $dokka.location:com.google.maps.android/PolyUtil/isLocationOnEdge/#com.google.an
792792
$dokka.location:com.google.maps.android/PolyUtil/isLocationOnPath/#com.google.android.gms.maps.model.LatLng#kotlin.collections.List[com.google.android.gms.maps.model.LatLng]#kotlin.Boolean#kotlin.Double/PointingToDeclaration/library/com.google.maps.android/-poly-util/is-location-on-path.html
793793
$dokka.location:com.google.maps.android/PolyUtil/locationIndexOnEdgeOrPath/#com.google.android.gms.maps.model.LatLng#kotlin.collections.List[com.google.android.gms.maps.model.LatLng]#kotlin.Boolean#kotlin.Boolean#kotlin.Double/PointingToDeclaration/library/com.google.maps.android/-poly-util/location-index-on-edge-or-path.html
794794
$dokka.location:com.google.maps.android/PolyUtil/locationIndexOnPath/#com.google.android.gms.maps.model.LatLng#kotlin.collections.List[com.google.android.gms.maps.model.LatLng]#kotlin.Boolean#kotlin.Double/PointingToDeclaration/library/com.google.maps.android/-poly-util/location-index-on-path.html
795-
$dokka.location:com.google.maps.android/PolyUtil/simplify/#kotlin.collections.MutableList[com.google.android.gms.maps.model.LatLng]#kotlin.Double/PointingToDeclaration/library/com.google.maps.android/-poly-util/simplify.html
795+
$dokka.location:com.google.maps.android/PolyUtil/simplify/#kotlin.collections.List[com.google.android.gms.maps.model.LatLng]#kotlin.Double/PointingToDeclaration/library/com.google.maps.android/-poly-util/simplify.html
796796
$dokka.location:com.google.maps.android/RendererLogger///PointingToDeclaration/library/com.google.maps.android/-renderer-logger/index.html
797797
$dokka.location:com.google.maps.android/RendererLogger/d/#java.lang.String#java.lang.String/PointingToDeclaration/library/com.google.maps.android/-renderer-logger/d.html
798798
$dokka.location:com.google.maps.android/RendererLogger/e/#java.lang.String#java.lang.String/PointingToDeclaration/library/com.google.maps.android/-renderer-logger/e.html

scripts/pages.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)