//-----------------------------------------------------------------------
//
// Copyright (c) 2016 Mapbox. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Mapbox.Directions
{
///
/// Routing profile, affects how the route is calculated, prioritizing routes that fit
/// the profile the best.
///
public sealed class RoutingProfile
{
/// The driving profile.
public static readonly RoutingProfile Driving = new RoutingProfile("mapbox/driving/");
/// The walking profile.
public static readonly RoutingProfile Walking = new RoutingProfile("mapbox/walking/");
/// The cycling profile.
public static readonly RoutingProfile Cycling = new RoutingProfile("mapbox/cycling/");
private readonly string profile;
private RoutingProfile(string profile)
{
this.profile = profile;
}
/// Converts the profile to a URL snippet.
/// A string to be appened to the direction query URL.
public override string ToString()
{
return this.profile;
}
}
}