Skip to content

Commit

Permalink
Merge pull request #181 from andrew-guerra/patch-2
Browse files Browse the repository at this point in the history
Refactor references to deprecated GPX.write in README
  • Loading branch information
jenetics authored Nov 2, 2024
2 parents 540e603 + 19135a5 commit bad6872
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit bad6872

Please sign in to comment.