                 let nextDeparturesData = stop["stoptimesWithoutPatterns"] as? NSArray {
                 callback(departures: parseDepartures(nextDeparturesData))
             }
-
         })
     }
 

                "gtfsId, code, platformCode, desc, name," +
            "}}}}}"
        HTTP.post(url, body: query, callback: {(obj: [String: AnyObject], error: String?) in
            var stops: [Stop] = []
            if let data = obj["data"] as? [String: AnyObject],
                let stopsByRadius = data["stopsByRadius"] as? [String: AnyObject],
                let edges = stopsByRadius["edges"] as? NSArray {
                for edge in edges {
                    if let stopAtDistance = edge["node"] as? [String: AnyObject],
                        let distance = stopAtDistance["distance"] as? Int,
                        let stop = stopAtDistance["stop"] as? [String: AnyObject],
                        let name = stop["name"] as? String,
                        let code = stop["code"] as? String,
                        let gtfsId = stop["gtfsId"] as? String {
                        var stopName: String = name
                        if let platformCode = stop["platformCode"] as? String {
                            stopName = formatStopName(name, platformCode: platformCode)
                        }
                        stops.append(Stop(name: stopName, distance: String(distance), codeLong: trimAgency(gtfsId), codeShort: code, departures: []))
                    }
                }
            }
            callback(stops: stops)
        })
    }

    private static func formatStopName(name: String, platformCode: String?) -> String {

                        if let platformCode = stop["platformCode"] as? String {
                            stopName = formatStopName(name, platformCode: platformCode)
                        }
                        stops.append(Stop(name: stopName , distance: formatDistance(distance), codeLong: trimAgency(gtfsId), codeShort: code, departures: parseDepartures(nextDeparturesData)))
                    }
                }
            }
