@app.route('/sentimentTotals/<term>/<suburbCode>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getSentimentTotals(term, suburbCode, startDate, endDate):
    return jsonify(indexer.statisticsByTerm(term, suburbCode, startDate, endDate))
@app.route('/sentimentTotals/<term>/<suburbCode>/<startDate>/<endDate>', methods=['GET', 'OPTIONS'])
@crossdomain(origin='*')
def getSentimentTotals(term, suburbCode, startDate, endDate):
    return jsonify(indexer.statisticsByTerm(term, suburbCode, startDate, endDate))