AddWaypoint() public method

Adds a waypoint to the current request.
Google's API specifies 8 maximum for non-business (free) consumers, and up to 23 for (registered) business customers
public AddWaypoint ( Location waypoint ) : void
waypoint Google.Maps.Location
return void
        public void GetUrl_waypoints_latlng_ex2()
        {
            //arrange
            var expected = ParseQueryString("json?origin=NY&destination=Orlando,FL&waypoints=NJ|28.452694,-80.979195|Sarasota,FL");

            var req = new DirectionRequest();

            req.Origin      = "NY";
            req.Destination = "Orlando,FL";
            req.Mode        = TravelMode.driving;      //this is default, so querystring doesn't need to contain it.

            req.AddWaypoint("NJ");
            req.AddWaypoint(new LatLng(28.452694, -80.979195));
            req.AddWaypoint("Sarasota,FL");

            //act
            var actual = ParseQueryString(req.ToUri());

            //assert
            Assert.That(actual, Is.EquivalentTo(expected));
        }
        public void GetUrl_waypoints_simple_ex1()
        {
            //arrange
            var expected = ParseQueryString("json?origin=NY&destination=FL&waypoints=NC");

            var req = new DirectionRequest();

            req.Origin      = "NY";
            req.Destination = "FL";
            req.Mode        = TravelMode.driving;      //this is default, so querystring doesn't need to contain it.

            req.AddWaypoint("NC");

            //act
            var actual = ParseQueryString(req.ToUri());

            //assert
            Assert.That(actual, Is.EquivalentTo(expected));
        }