topcoderinc / dsp-server

Topcoder Drone Series Back End
8 stars 23 forks source link

[$350] Drone Series - Location Checker #173

Open kbowerma opened 7 years ago

kbowerma commented 7 years ago

We are super excited in how our drone series has been shaping up, the participation in this project has been incredible. In two weeks we will be demoing the work we have done so far, so we have some loose ends we still need to tie up but we feel really good in what we have to show.

Here is another quick one. We just ran a challenge to be able to update the drone position via serial number (PUT /drone/position/:serialNumber) in addition to the old way by id (PUT /drone/:id ) These calls are identical in their response which does some pretty cool stuff. You can look at the Smart Location Update section in the Readme. The TL;DR of this is that given the right parameters they will return an Array of NoFlyZones the drone is inside and also an array of drones that are within a certain distance of its current location. This is pretty valuable stuff and sometimes we want it without having to update the location of the drone in the database.

For example we may know in advance that we are near a no flyzone and want to check every 2 seconds but only update the database with a location PUT every 30 seconds. So now we want to return the same results like the above two endpoint but from a GET instead of a PUT. Something like this: {{URL}}/drone/checklocation/:lat/:lng or maybe you take lat and lng as a parameters. Please advice what you think is the most appropriate but you must support all the other parameters as the other two endpoints mentioned above.

Submission guidelines

  1. Be sure to start from the dev branch
  2. Zip your code into a single file and include the .git file. ( It would be prefered to do a local commit before you submit.)
  3. You should not touch the existing PUT update since we still want that.
  4. Provide a postman collection or curl sample that shows your update via

Project Background

For this series we are creating a Drone Service Platform (DSP) which consist of a marketplace where customers can request drone services for providers/operators. Examples of the services would be drone delivery, mapping, monitoring and many other tasks. In addition to delivering drone services we will also provide a level of traffic management.

Links

front end src: topcoderinc/dsp-frontend back end src: topcoderinc/dsp-server Live Heroku Dev Frontend: http://kb-dsp-server-dev.herokuapp.com/api/v1

kbowerma commented 7 years ago

Challenge created successfully Challenge Url: https://www.topcoder.com/challenge-details/30056153/?type=develop&noncache=true