Exemplo n.º 1
0
 private void GetGoogleInstance(ISession session)
 {
     if (_googleDirectionsService == null)
     {
         _googleDirectionsService = new GoogleDirectionsService(session);
     }
 }
Exemplo n.º 2
0
        public static void Testar(ISession session)
        {
            var googleDirectionsService = new GoogleDirectionsService(session);

            var googleResult = googleDirectionsService.GetDirections(new GeoCoordinate(40.780599, -73.968862), new List <GeoCoordinate>(), new GeoCoordinate(40.781939, -73.965123));
            var googleWalk   = GoogleWalk.Get(googleResult);

            var proximo = googleWalk.NextStep(new GeoCoordinate(40.780573, -73.968842));
        }
Exemplo n.º 3
0
 public GoogleStrategy(Client client) : base(client)
 {
     _googleDirectionsService = null;
 }