Giter Club home page Giter Club logo

ev-chargers-mob's Introduction

EV Charger Finder

An Android app that allows an EV driver to find nearby charge points - built with React Native.

Approach

The app launches with its default location set to a region in Johannesburg South Africa. The MapView component shows a map of the area. A side effect fetches ev chargers in the vicinity using coordinates of the default location. Moving the map triggers another side effect to update the region in focus (kept in state). Once that happens, the app re-fetches ev chargers in the new area. A simple png is used as a marker for a charger site. These are shown on the screen once the list of charge points updates. To check against calls to re-fetch charge points being too frequent, a debounce function is used to delay repeat calls when the region updates.

App Preview

Features

  • Jump to current location
  • Identify EV charger points in vicinity
  • Initiate charging session with chosen charger point (dummy request)

Tech Stack

Setup

OPENCHARGEMAP_API_KEY=your_api_key_here
OPENCHARGEMAP_BASE_URL=https://api.openchargemap.io/v3
  • Start the app by running these commands: yarn and then yarn android

Things I'd have wanted to do

  • Update the 'Status' so it reflects the readiness of the charger markers
  • Setup and built iOS app
  • UI improvements
  • Housekeeping (e.g. set up absolute paths, linting, TS, app icons, splash screen)
  • Add more comments to the code
  • Add dimension scaling
  • Looked into performance (e.g. unnecessary re-renders, glitch when user quickly flicks the MapView)
  • Moved API keys to backend
  • A location search at the top so we don't scroll everywhere
  • A bookmark feature for favourite locations
  • An intuitive way of showing that a certain charger has multiple charge points
  • Show user the distance to a selected charger

ev-chargers-mob's People

Contributors

ychinamale avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.