Skip to content

Using hashed lat/long for BNA's source_id leads to error #30

Open

Description

@stefanpernpaintner

Currently the source_id value for BNA's charging stations is filled with the has value over lat/long. This leads to the situation that some charging stations have the same hash value because they have the same lat/long values set (most likely by error) and this in turn leads to the fact that some stations cannot be imported because of a unique key constraint error (source_id has to be unique)

I think we should generate the hash over all attributes of the BNA's charging station to avoid the described situation

Activity

  1. changed the title [-]Using hased lat/long for BNA's source_id leads to error[/-] [+]Using hahsed lat/long for BNA's source_id leads to error[/+] on Jul 11, 2023
  2. changed the title [-]Using hahsed lat/long for BNA's source_id leads to error[/-] [+]Using hashed lat/long for BNA's source_id leads to error[/+] on Nov 10, 2023
  3. linked a pull request that will close this issue[WIP!] BNA station ID collision fix #62on Dec 1, 2023
  4. mjmader commented on Feb 2, 2024

    @mjmader
    Collaborator

    Actually the problem is that the rows of the BNA data (and also FR data btw) have changed over time to resemble charge points of charging stations, rather than just a charging station per row.
    In effect, we have to do some preprocessing to flatten serveral charge points into a single station.
    On the other hand, this is also important for #28, maybe it is better to change our schema to actually handle charge points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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