Skip to content

Commit

Permalink
add explore of geocode result
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed Aug 12, 2023
1 parent 8ee3002 commit 3515040
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 42 deletions.
9 changes: 8 additions & 1 deletion 08-read-write-plot.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,14 @@ If the query returns no results, an `InsufficientResponseError` is raised, a sce
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'])
result = ox.geocoder.geocode_to_gdf(['54 Frith St, London W1D 4SJ, UK'])
result
```

The result is visualized below using `.explore`:

```{python}
result[['display_name', 'geometry']].explore(color='red')
```

## Geographic web services
Expand Down
1 change: 1 addition & 0 deletions 08-read-write-plot_files/figure-html/cell-22-output-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 41 additions & 41 deletions output/plot_rasterio2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/world.gpkg
Binary file not shown.
Binary file modified output/world_many_features.gpkg
Binary file not shown.
Binary file modified output/world_many_layers.gpkg
Binary file not shown.

0 comments on commit 3515040

Please sign in to comment.