Fridish / Charging-Stations

This is a web application that displays the location of vehicular charging stations in Skövde, Sweden
MIT License
1 stars 3 forks source link

Working Searchbar #6

Open Fridish opened 2 months ago

Fridish commented 2 months ago

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

kk7188048 commented 2 months ago

There is one issue i have in this json data where is the name of location?

Fridish commented 2 months ago

All the locations are based in the City of Skövde. The "Placering" is the name of the city location the user should be able to search for using the search bar. The coordinates however are the parameters that will be used to map out the actual locations on the map. I hope this is the information you were looking for. If you have any more questions, feel free to contact me further!

Fridish commented 2 months ago

Do you want me to assign this issue to you @kk7188048 ?

kk7188048 commented 1 month ago

Sorry for late reply Sure i will work on this @Fridish do we have any other option for api, i dont wanna share my bank details for documentation?

Fridish commented 1 month ago

Sorry for late reply Sure i will work on this @Fridish do we have any other option for api, i dont wanna share my bank details for documentation?

Mapbox is the only free option that I currently know of that lets you use the map in the way this app does, but if you know any free alternatives, feel free to pitch them :) . Mapbox does not charge you if you don't make 1000+ calls to it, and no one but you will use your personal quota of calls, so unless you exceed them you will not have to pay anything. However, I also understand if you don't want to register your card details.