Server side code for road trip application