def getLocationList(series_id):

    response_locations = []
    rappend = response_locations.append
    code_list = ["STD-L4", "STD-L3", "STD-L2", "STD-L1", "STD-L0"]

    table = current.s3db.survey_complete
    rows = current.db(table.series_id == series_id).select(table.id,
                                                           table.answer_list)
    for row in rows:
        lat = None
        lon = None
        name = None
        answer_list = row.answer_list.splitlines()
        answer_dict = {}
        for line in answer_list:
            (question, answer) = line.split(",", 1)
            question = question.strip('"')
            if question in code_list:
                # Store to get the name
                answer_dict[question] = answer.strip('"')
            elif question == "STD-Lat":
                try:
                    lat = float(answer.strip('"'))
                except ValueError:
                    pass
                else:
                    if lat < -90.0 or lat > 90.0:
                        lat = None
            elif question == "STD-Lon":
                try:
                    lon = float(answer.strip('"'))
                except ValueError:
                    pass
                else:
                    if lon < -180.0 or lon > 180.0:
                        lon = None
            else:
                # Not relevant here
                continue

        for loc_code in code_list:
            # Retrieve the name of the lowest Lx
            if loc_code in answer_dict:
                name = answer_dict[loc_code]
                break

        if lat and lon:
            from s3dal import Row
            # We have sufficient data to display on the map
            location = Row()
            location.lat = lat
            location.lon = lon
            location.name = name
            location.complete_id = row.id
            rappend(location)
        else:
            # The lat & lon were not added to the assessment so try and get one
            loc_widget = get_default_location(row.id)
            if loc_widget:
                complete_id = loc_widget.question["complete_id"]
                if "answer" not in loc_widget.question:
                    continue
                answer = loc_widget.question["answer"]
                if loc_widget != None:
                    record = loc_widget.getLocationRecord(complete_id, answer)
                    if len(record.records) == 1:
                        location = record.records[0].gis_location
                        location.complete_id = complete_id
                        rappend(location)

    return response_locations

# =============================================================================
Left denotation, is used when it appears inside the construct.
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/getLocationList--crossover with--dataset/ETHPy150Open tehmaze/nagios-cli/nagios_cli/filters/parser.py/SymbolBase.led