Exemplo n.º 1
0
    public void OnDirectionsSearchWithWaypointIds()
    {
        var directionParams = new DirectionsParams();

        directionParams.SetOrigin("CenturyLink Field");
        directionParams.SetDestination("City Hall Park Seattle");
        directionParams.SetTravelMode(DirectionsParams.TravelModeType.Walking);

        var waypoints = new List <string>
        {
            "Klondike Gold Rush National Historical Park Seattle",
            "Smith Tower",
            "Seattle Passport Agency"
        };

        var waypointIds = new List <string>
        {
            "ChIJBbqpNLtqkFQRyLNYioGRcF8",
            "ChIJ6x3yk7pqkFQRW2zXQJUlScA",
            "ChIJvZiGw-V3CEER2qnjz1yUdW4"
        };

        directionParams.SetWaypoints(waypoints);
        directionParams.SetWaypointPlaceIds(waypointIds);

        OpenGoogleMapHelper.OpenDirections(directionParams);
    }
Exemplo n.º 2
0
    public void OnDirectionsSearchByCoordinates()
    {
        var directionParams = new DirectionsParams();

        directionParams.SetOrigin("47.5951518,-122.3316393");
        directionParams.SetDestination("47.5989513,-122.3374653");
        directionParams.SetTravelMode(DirectionsParams.TravelModeType.Driving);

        OpenGoogleMapHelper.OpenDirections(directionParams);
    }
Exemplo n.º 3
0
    public void OnDirectionsSearchByPlaceNames()
    {
        var directionParams = new DirectionsParams();

        directionParams.SetOrigin("Space Needle Seattle");
        directionParams.SetDestination("Pike Place Marker Seattle");
        directionParams.SetTravelMode(DirectionsParams.TravelModeType.Bicycling);

        OpenGoogleMapHelper.OpenDirections(directionParams);
    }
Exemplo n.º 4
0
    public void OnDirectionsSearchByPlaceIds()
    {
        var directionParams = new DirectionsParams();

        directionParams.SetOrigin("Google Pyrmont NSW");
        directionParams.SetDestination("QVB");
        directionParams.SetDestinationPlaceId("ChIJISz8NjyuEmsRFTQ9Iw7Ear8");
        directionParams.SetTravelMode(DirectionsParams.TravelModeType.Transit);

        OpenGoogleMapHelper.OpenDirections(directionParams);
    }
Exemplo n.º 5
0
    public void OnDirectionsSearchWithWaypoints()
    {
        var directionParams = new DirectionsParams();

        directionParams.SetOrigin("CenturyLink Field");
        directionParams.SetDestination("City Hall Park Seattle");
        directionParams.SetTravelMode(DirectionsParams.TravelModeType.Walking);

        var waypoints = new List <string>
        {
            "Klondike Gold Rush National Historical Park Seattle",
            "Smith Tower",
            "Seattle Passport Agency"
        };

        directionParams.SetWaypoints(waypoints);

        OpenGoogleMapHelper.OpenDirections(directionParams);
    }