Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocode variable type error #79

Open
iammattlee opened this issue Aug 2, 2022 · 0 comments
Open

Geocode variable type error #79

iammattlee opened this issue Aug 2, 2022 · 0 comments

Comments

@iammattlee
Copy link

When running flow_data_processing.py, the script encounters an error with the s1 and s2 variables in S03_geocode_and_match_street_number.py as shown below:

Traceback (most recent call last):
  File "flow_data_processing.py", line 110, in <module>
    newmatch = pfd.arterycode_matching() ## comment this line out to skip arterycode matching process
  File "flow_data_processing.py", line 39, in arterycode_matching
    S03.geocode_match(self.db)
  File "./flow_data_processing/arterycode_mapping/S03_geocode_and_match_street_number.py", line 232, in geocode_match
    results.append(geocode_points(db))
  File "./flow_data_processing/arterycode_mapping/S03_geocode_and_match_street_number.py", line 151, in geocode_points
    f = Geocode(db,ac,s1,s2)
  File "./flow_data_processing/arterycode_mapping/S03_geocode_and_match_street_number.py", line 29, in Geocode
    (add,lat,lon) = AF.geocode(s1+' and '+s2)
TypeError: must be str, not NoneType
@iammattlee iammattlee changed the title Geocode type error Geocode variable type error Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant