Experience as a Backend Engineer (HNG Entry)
As a Backend Engineer, I have faced quite a number of challenging tasks building server-side applications
Problem Recently participated in a hackathon with the tasks of building some special features for a device health management company. The company has devices(laptops) and also technicians registered on their platform
Task We were tasked to design a feature that matches the devices registered on their platform(if faulty) to technicians registered on their platform, so this would involve the use of geolocation.
How did I solve this problem? First, I had to onboard the devices on their platform, I automated this by using an .exe file which when ran, the system information is automatically which involves extracting the location from the current IP address. Then for geolocation feature, I extracted the longitude and latitude from the IP address using the state and local government area(LGA) on their registration form, then those details are sent to a geocoding API(geoapify) which returns the longitude and latitude of that given location.
Now these collected info are stored in their various schema alongside other information but a 2d index is added to the schema, then with the Geospatial features on MongoDB the coordinates in the collection are compared based on some given values and the nearest location is returned.