Skip to content

Commit

Permalink
add osmnx to environment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed Aug 12, 2023
1 parent a2fd3e4 commit 8ee3002
Show file tree
Hide file tree
Showing 48 changed files with 47 additions and 1,647 deletions.
1,576 changes: 0 additions & 1,576 deletions 08-read-write-plot.ipynb

This file was deleted.

6 changes: 4 additions & 2 deletions 08-read-write-plot.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,12 @@ Another way to obtain spatial information is to perform geocoding---transform a
ox.geocoder.geocode('54 Frith St, London W1D 4SJ, UK')
```

If the query returns no results, an `InsufficientResponseError` is raised, a scenario that the user can deal with using [`try`/`except`](https://docs.python.org/3/tutorial/errors.html#handling-exceptions). The alternative function `osmnx.geocoder.geocode_to_gdf` can be used to automatically geocode multiple addresses (accepting a `list` of `string`s) and transforming them into a `GeoDataFrame`:
If the query returns no results, an `InsufficientResponseError` is raised, a scenario that the user can deal with using [`try`/`except`](https://docs.python.org/3/tutorial/errors.html#handling-exceptions).

The alternative function `osmnx.geocoder.geocode_to_gdf` can be used to automatically geocode multiple addresses (accepting a `list` of `string`s) and transforming them into a `GeoDataFrame`. This function also returns Polygon geometries. For example:

```{python}
ox.geocoder.geocode_to_gdf(['54 Frith St, London W1D 4SJ, UK', 'Beer-Sheva, Israel'])
ox.geocoder.geocode_to_gdf(['54 Frith St, London W1D 4SJ, UK'])
```

## Geographic web services
Expand Down
15 changes: 0 additions & 15 deletions 08-read-write-plot_files/execute-results/html.json

This file was deleted.

1 change: 0 additions & 1 deletion 08-read-write-plot_files/figure-html/cell-10-output-1.svg

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 8ee3002

Please sign in to comment.