Fridish/Charging-Stations

Working Searchbar

Open

#6 opened on Sep 3, 2024

 (5 comments) (0 reactions) (1 assignee)JavaScript (3 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (1 star)
PR merge metrics
 (PR metrics pending)

Description

The search bar is currently just a input-field without any actions. the user should be able to search for a location, and if the location exists, the map should focus on that location. Perhaps also display some information about the charge station, such as webpage, cost etc. This is the information for a typical charging station:

"features": [
        {
            "type": "Feature",
            "properties": {
                "Placering": "Mode mobilitetshus",
                "TYP": "LADDPLATS",
                "Antal": 30,
                "Kommentar": "6 st semi-snabbladdare och 24 st normalladdare",
                "URL": "https://skovde.se/trafik-infrastruktur/parkering/laddplats/",
                "Avgift": "1:a tim 10 kr, 2:a tim 20 kr, 2,5 kr/kWh",
                "Avgift_tid": "8-18, (10-16)"
            },
            "geometry": {
                "type": "Point",
                "coordinates": [
                    13.853353648690286,
                    58.391676699754463
                ]
            }
        },

Translation from swedish to english:

Placering = placement (where it is placed) Typ = Type (what type of station it is) Antal = number of chargers. Kommentar = comment (in this case, '6 fast chargers, 24 normal chargers'). Avgift = Fee. (in this case, first hour 10sek, 2nd hour 20sek, 2,5 sek/kWh). Avgift_tid = Fee_Time

Contributor guide