Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor references to deprecated GPX.write in README #181

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final GPX gpx = GPX.builder()
**Writing GPX object to a file**

```java
GPX.write(gpx, "track.gpx");
GPX.write(gpx, Path.of("track.gpx"));
```

*GPX output*
Expand Down Expand Up @@ -75,7 +75,7 @@ GPX.write(gpx, "track.gpx");
This example writes a given `GPX` object to a file, reads it again and prints the `WayPoint`s of all tracks and all track-segments to the console.

```java
GPX.write(gpx, "track.gpx");
GPX.write(gpx, Path.of("track.gpx"));
GPX.read("gpx.xml").tracks()
.flatMap(Track::segments)
.flatMap(TrackSegment::points)
Expand Down Expand Up @@ -145,7 +145,7 @@ final GPX gpx11 = gpx10.toBuilder()
.build();

// Writing GPX to file.
GPX.write(gpx11, "track-v11.gpx");
GPX.write(gpx11, Path.of("track-v11.gpx"));
```

### ISO 6709 location strings
Expand Down