Open aleccool213 opened 9 years ago
Right, so I successfully fixed some bugs on the algorithm I was working on during the train ride home. It returns the proper order in which destinations should be visited.
For parameters, it accepts a nested list- that is, a list of lat-long lists so for example "[[3, 3], [1, 2], [0, 0], [2, -1], [3, 4], [5, 5]]". IMPORTANT: the first and last lists are assumed endpoints. The function returns a similar list of lat-long lists except in a desired order.
I'm gonna upload it in a "order.py," where do you want it?
@theshteves any utility function should be done in a utils.py function and it is related to bmw model classes so put it in that app
personally if we actually get it implementing i will be surprised because it seems like we will need to test this extensively
turns out it was an issue with the parameters of searching for yelp, made the radius like 100 and added more categories. this is finicky so i am tempted to just add a fucking ton of categories so we always get results of random shit
POST to trip_api is made by the Customer (the request to book the ride)
/trip/
Response on 200:
@theshteves you were working on this sort of, lets discuss the implementation here