Skip to content

Geocode variable type error #79

Description

@iammattlee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions