kb0 / dart-gpx

Dart package for load, manipulate, and save GPS data in GPX format (a light-weight XML data format for the interchange of GPS data - waypoints, routes, and tracks).
Apache License 2.0
23 stars 27 forks source link

Add `KmlReader` and `fromStream`. #24

Closed sun-jiao closed 1 year ago

sun-jiao commented 1 year ago

Use main branch to keep same commit history between 2 repositories.

22

Hi. I made a KmlReader based on your library for my personal project. And I wish it could be added to the original library.

Of course. I know this is a gpx library. If you don't think my pr fits your library, please fell free to close it.

23

I replaced all Iterator with StreamIterator for code reusing. This may be a breaking change because the methods were changed to asynchronous.

I've also considered keeping both sync (Iterator) and async (StreamIterator) versions, but they are very similar, maintaining two versions at the same time may be exhausting or cause unnecessary risks. .

sun-jiao commented 1 year ago

Closed cause they are tooo different.