As part of the ENECHANGE interview process, we are asking you to work on a small coding exercise to help us understand your skills, and give you an idea of the work you would be doing with us.
Create an endpoint that meets the following requirements using the specified language, library and template.
Please document any technical decisions, trade-offs, problems, etc., in REPORT.md (you may write in either Japanese or English).
Please create an endpoint to search for chargers within a specified range, according to the interface specifications outlined in the provided PDF document.
However, latitude and longitude should be stored separately as numerical values and the filtering logic should primarily be implemented in Go.
You can use the provided CSV files as sample data by importing them into the database.
While writing tests is not mandatory, please be mindful to design for testability.
-
Specification:
-
CSV Files:
A template has been prepared in the codebase that sets up a server and prepares the connection to a database.
Please add code to implement the endpoint.
- Please fork this repository.
- Create a new branch. (The branch name should be
challenge/YOURACCOUNT
whereYOURACCOUNT
is your Github Account name, for example,challenge/shirakia
) - Proceed with your implementation using provided template.
- After completion, create a Pull Request and please provide us with the URL.
- You may continue to commit to your branch even after you have provided us with the URL of the Pull Request.