Skip to content

Commit 6396ab1

Browse files
Add HTTP usage to ReadMe (#58)
* Add HTTP access example to ReadMe * Update README.md * Update README.md * Update README.md
1 parent 2b48d85 commit 6396ab1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,14 @@ Feature with geometry type Polygon and properties Symbol[:geometry, :timestamp,
2727
# use the Tables interface to convert the format, extract data, or iterate over the rows
2828
julia> df = DataFrame(fc)
2929
```
30+
31+
## HTTP access
32+
To read JSON from a URL, use HTTP.jl
33+
```julia
34+
35+
julia> using GeoJSON, HTTP
36+
37+
julia> resp = HTTP.get("https://path/to/file.json")
38+
39+
julia> fc = GeoJSON.read(resp.body)
40+
```

0 commit comments

Comments
 (0)