﻿using OnlineMaps.Webservices;
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
    public class OpenRouteServiceDirectionsWrapper : Object
    {
        public ORSDirectionsResult result;

        public int count
        {
            get { return result != null && result.routes != null ? result.routes.Length : 0; }
        }

        public OpenRouteServiceDirectionsWrapper(string response)
        {
            result = ORSDirectionsResult.Parse(response);
        }
    }
}