Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wliu416 committed Feb 16, 2020
1 parent 42dcdec commit 7cecd78
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,22 @@
'''
if len(places) != 0:
good = placesApi.find_route([place['place_id'] for place in places])
print(placesApi.find_route([place['place_id'] for place in places]))
lst_loc = []

raw = good['origin_addresses']
raw.reverse()
for elements in raw:
lst_loc.append(elements)
raw2 = good['destination_addresses']
for e2 in raw2:
lst_loc.append(e2)
print("here is your itinerary, a list of addresses in order.")
print(lst_loc)


else:
print("Sorry, the algorithm did not return any results.")
if lst_loc == []:
print("Sorry, the algorithm did not return any results.")
print("Hint: Pack your day with more engaging activities by adding more preferences!")
else:
print("Here is your itinerary, a list of addresses in order.")
print("Simply use this guide to fill your day with very engaging activities!")
print(lst_loc)

print("The Algorithm has finished running. Enjoy your trip!")

Expand Down

0 comments on commit 7cecd78

Please sign in to comment.