Sunday, 23 December 2018

Zomato Crisis - (Trusting Delivery Boy Paradox)

Problem:  Online food portal faced criticism for vitiating the food parcel. 
Recently, a delivery boy was assigned to hand over the food parcel to the customer. During his commute, he was stranded due to the tempting aroma of the cuisine and indulged in some of the food from the parcel. His treasonous act against his moral duties and responsibilities was uploaded on the internet went viral.

Possible Solutions:

  • 1) Black Magic Box-
           The company can upgrade their delivery boxes with a digital lock that can be opened only by a random generated OTP. The customer who will receive the OTP when food is locked inside the box by the supplier. Only the customer will know about the OTP so nobody else can open the box.
IOT community can work on such boxes to ensure the delivery for the other enterprises.
Even these hi-tech boxes can be perfected to track 
-The route followed (GPS enabled chip), 
-The temperature of the food on time of delivery
-The picture of the person opening the box(spy camera)
Future possibilities are endless. 



  • 2) Instill moral responsibility in employees
            The company can impart a session to instill morals in the employees.

  • 3) A tampered proof seal-
            The cheapest solution would be to introduce a packing system where the seal on the parcel once broken cannot be put back in the initial original shape, thereby indicating malpractices.                                    

Comment below your solutions. Thanks for reading.    

Friday, 9 March 2018

Google or similar Map navigation App code Design


Map all the possible routes and intersection points(nodes)
Considering that each route between two nodes is a road. Create a array of roads.


Case 1: no node in between, straight road
Loc1-------road-----------Loc2       


Case 2: multiple nodes


Model:
Class Road:
1 Number of lanes
2 Avg speed during that time(can be calculated according to the number of vehicles passing)
3 Current capacity percentage
Class Node:
1 No of roads connecting
2 Traffic controller to adjust traffic by adding waiting time at node stopage
Class Client Description:
1. LocationWorkLatLong 2. LocationHomeLatLong 3. VehicleAvgSpeed
Computation:
Class RouteFindComputation:
i/p- current LatLong and destination LatLong
Processing internal- number of node to be passed(using shortest distance+waiting time at the each node) shortest distance path
o/p- total distance and time top 2 results (with all the nodes and roads details)
Cache & Storage:
DB for storing roads and nodes with their properties
Store data of mostly travelled nodes for better performance
View:
1.Current location and total time left to reach destination. 2. Forms to fill data - CopyRights HD