Coder Social home page Coder Social logo

svtrobo's Introduction

SVTRobo

SVT Robo This API pulls a list of robots from "https://60c8ed887dafc90017ffbd56.mockapi.io/robots". It accepts a set of coordinates, and finds the distance for each robot. After that, it sorts the robot array by battery level, descending. It returns the closest robot with the highest battery level. If I were to move forward with it, I would add an optional parameter to indicate the minimum battery level. This would allow us to fine-tune it so we don't let a couple of battery points create long delivery times. I would also add some sort of logging to track the most used coordinates. This would allow us to set up "loiter here" areas for them to go to when they don't have anything else to do. If you are using Postman, you can test this API live on my server, https://yubtub.club/SVTRobotics/api/Robots/Closest?x=10&y=24 Keep in mind that it is a POST, and not a GET, so it won't work in the browser.

svtrobo's People

Contributors

raalnan1 avatar rahsaanpringle avatar

Watchers

 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.