public IHttpActionResult Gettrip(string id)
 {
     var authenticator = new LoginAuthenticator();
     var authenticated = authenticator.AuthenticateRequest(Request.GetQueryNameValuePairs());
     if (authenticated)
     {
         trip trip = db.trips.Find(id);
         if (trip == null)
         {
             return NotFound();
         }
         return Ok(trip);
     }
     else
     {
         return BadRequest();
     }
 }
        public IHttpActionResult Getstop_times(string id)
        {
            var authenticator = new LoginAuthenticator();
            var authenticated = authenticator.AuthenticateRequest(Request.GetQueryNameValuePairs());
            if (authenticated)
            {
                stop_times stop_times = db.stop_times.Find(id);
                if (stop_times == null)
                {
                    return NotFound();
                }

                return Ok(stop_times);
            }
            else
            {
                return BadRequest();
            }
        }
        public IHttpActionResult Getshape(int id)
        {
            var authenticator = new LoginAuthenticator();
            var authenticated = authenticator.AuthenticateRequest(Request.GetQueryNameValuePairs());
            if (authenticated)
            {
                shape shape = db.shapes.Find(id);
                if (shape == null)
                {
                    return NotFound();
                }

                return Ok(shape);
            }
            else
            {
                return BadRequest();
            }
        }
        public IHttpActionResult Getroute_directions(string id)
        {
            var authenticator = new LoginAuthenticator();
            var authenticated = authenticator.AuthenticateRequest(Request.GetQueryNameValuePairs());
            if (authenticated)
            {
                route_directions route_directions = db.route_directions.Find(id);
                if (route_directions == null)
                {
                    return NotFound();
                }

                return Ok(route_directions);
            }
            else
            {
                return BadRequest();
            }
        }