Skip to content

Commit

Permalink
Update fastrak_geocoding.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacroff committed Sep 5, 2024
1 parent e6b705b commit 5ef51a1
Showing 1 changed file with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"import pandas as pd\n",
"import geopandas as gpd\n",
"from dvutils.miscio import log_or_print\n",
"from dvutils.geospatial import google_geocode, google_geocode_batch\n",
"from dvutils.geospatial import google_geocode_batch\n",
"\n",
"user = getpass.getuser()"
]
Expand Down Expand Up @@ -111,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -131,7 +131,6 @@
" \"address_orig\",\n",
" \"formatted_address\",\n",
" \"geometry_location_type\",\n",
" \"place_id\",\n",
" \"types\",\n",
" \"partial_match\",\n",
" \"geometry\",\n",
Expand Down Expand Up @@ -166,14 +165,34 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"# read in the data\n",
"df = read_fastrak_data(ft_data)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"# create the required columns\n",
"df = create_required_cols(df)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"# batch geocode the addresses\n",
"results_df = batch_geocode_addresses(df)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 5ef51a1

Please sign in to comment.