Skip to content

Matching availability data fails when a charge location has both type 2 sockets and type 2 plugs #396

@robho

Description

@robho

When a charge location has both type 2 sockets and plugs, the availability matching fails -> there's no availability shown although availability data does exist.

A charge location showing this problem can be found at 56.52561,16.385619 when using Nobil data source. The charge location is named "ICA NÄRA SKANSEN" and has 6 x type 2 plugs and 2 x type 2 sockets.

A charge location showing this problem can be found at 56.190809,14.845957 when using Nobil data source. The charge location is named "Best western Karlshamn" and has 1 x type 2 plug and 5 x type 2 sockets.

The problem seems to be in function matchChargepoints. The found availability connectors are all TYPE_2_UNKNOWN and are merged into a single connector type, while the nobil connectors are TYPE_2_SOCKET and TYPE_2_PLUG and merged into two connector types. Since the number of connectors don't match the availability matching fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions