summaryrefslogtreecommitdiff
path: root/geocode.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-04-27 07:46:40 -0700
committerScott Gasch <[email protected]>2022-04-27 07:46:40 -0700
commit21612b3a2ecaed6bf9fec16891bee9bdeb006081 (patch)
tree855f3cd33c2321aa409f17265d8149ac6b4a0882 /geocode.py
parent7a43ca82e9e832c17a92fe65d73bb3686f5f24e6 (diff)
Oops, update type hints in geocode.
Diffstat (limited to 'geocode.py')
-rw-r--r--geocode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/geocode.py b/geocode.py
index 87c23f5..0a020d5 100644
--- a/geocode.py
+++ b/geocode.py
@@ -1,13 +1,13 @@
#!/usr/bin/env python3
-# © Copyright 2021-2022, Scott Gasch
+# © Copyright 2022, Scott Gasch
"""Wrapper around US Census address geocoder API described here:
https://www2.census.gov/geo/pdfs/maps-data/data/Census_Geocoder_User_Guide.pdf"""
import logging
import re
-from typing import Dict, Optional
+from typing import Any, Dict, Optional
import requests
from bs4 import BeautifulSoup
@@ -18,7 +18,7 @@ import string_utils
logger = logging.getLogger(__name__)
-def geocode_address(address: str) -> Optional[Dict[str, str]]:
+def geocode_address(address: str) -> Optional[Dict[str, Any]]:
"""Send a single address to the US Census geocoding API.
>>> out = geocode_address('4600 Silver Hill Rd,, 20233')