You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -144,8 +121,6 @@ public sealed class MyPolylineDecoder : AbstractPolylineDecoder<string, (double
144
121
Custom decoder usage.
145
122
146
123
```csharp
147
-
usingPolylineAlgorithm;
148
-
149
124
stringencoded="yseiHoc_MwacOjnwM";
150
125
151
126
vardecoder=newMyPolylineDecoder();
@@ -173,16 +148,16 @@ A: Latitude must be -90..90; longitude -180..180. Out-of-range input throws `Arg
173
148
A: All platforms supporting `netstandard2.1` (including .NET Core and .NET 5+).
174
149
175
150
**Q: What happens if I pass invalid or malformed input to the decoder?**
176
-
A: The decoder will throw descriptive exceptions for malformed polyline strings. Check exception handling in your application.
151
+
A: The decoder will throw descriptive exceptions (`InvalidPolylineException`) for malformed polyline strings. Check exception handling in your application.
177
152
178
-
**Q: How do I customize encoding options (e.g., buffer size, logging)?**
179
-
A: Use the PolylineEncodingOptionsBuilder to set custom options and pass to the PolylineEncoder constructor.
153
+
**Q: How do I customize encoding options (e.g., precision, buffer size, logging)?**
154
+
A: Use `PolylineEncodingOptionsBuilder` to set custom options and pass the built `PolylineEncodingOptions`to the encoder or decoder constructor.
180
155
181
156
**Q: Is the library thread-safe?**
182
157
A: Yes, the main encoding and decoding APIs are stateless and thread-safe. If using mutable shared resources, manage synchronization in your code.
183
158
184
159
**Q: Can the library be used in Unity, Xamarin, Blazor, or other .NET-compatible platforms?**
185
-
A: Yes! Any environment supporting netstandard2.1 can use this library.
160
+
A: Yes! Any environment supporting `netstandard2.1` can use this library.
186
161
187
162
**Q: Where can I report bugs or request features?**
188
163
A: Open a GitHub issue using the provided templates in the repository and tag @petesramek.
@@ -191,7 +166,7 @@ A: Open a GitHub issue using the provided templates in the repository and tag @p
191
166
A: Not currently, not planned to be added, but you can extend by implementing your own encoder/decoder using `PolylineEncoding` class methods.
192
167
193
168
**Q: How do I contribute documentation improvements?**
194
-
A: Update XML doc comments in the codebase and submit a PR; all public APIs require XML documentation. In case, you would like to improve guides you have to updage relevant markdown file in `/api-reference/guide` folder.
169
+
A: Update XML doc comments in the codebase and submit a PR; all public APIs require XML documentation. To improve guides, update the relevant markdown file in the`/api-reference/guide` folder.
195
170
196
171
**Q: Does the library support streaming or incremental decoding of polylines?**
197
172
A: Currently, only batch encode/decode is supported. For streaming scenarios, implement custom logic using `PolylineEncoding` utility functions.
-Custom coordinate/polyline types are supported via `AbstractPolylineEncoder`and `AbstractPolylineDecoder`.
62
-
-Additional configuration via `PolylineEncodingOptionsBuilder`.
87
+
-Pass a `PolylineEncodingOptions` (built via `PolylineEncodingOptionsBuilder`) to the encoder/decoder constructor for custom precision, stack-alloc limit, and logging.
88
+
-Use static methods on `PolylineEncoding` for low-level normalization, validation, and bit-level read/write operations.
63
89
64
90
> See [API Reference](https://petesramek.github.io/polyline-algorithm-csharp/) for full documentation.
0 commit comments