Last active
September 3, 2015 10:44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//GoogleDirectionClass.cs | |
public class GeocodedWaypoint | |
{ | |
public string geocoder_status { get; set; } | |
public string place_id { get; set; } | |
public List<string> types { get; set; } | |
} | |
public class Northeast | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class Southwest | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class Bounds | |
{ | |
public Northeast northeast { get; set; } | |
public Southwest southwest { get; set; } | |
} | |
public class Distance | |
{ | |
public string text { get; set; } | |
public int value { get; set; } | |
} | |
public class Duration | |
{ | |
public string text { get; set; } | |
public int value { get; set; } | |
} | |
public class EndLocation | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class StartLocation | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class Distance2 | |
{ | |
public string text { get; set; } | |
public int value { get; set; } | |
} | |
public class Duration2 | |
{ | |
public string text { get; set; } | |
public int value { get; set; } | |
} | |
public class EndLocation2 | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class Polyline | |
{ | |
public string points { get; set; } | |
} | |
public class StartLocation2 | |
{ | |
public double lat { get; set; } | |
public double lng { get; set; } | |
} | |
public class Traffic | |
{ | |
public List<object> users { get; set; } | |
public int usercount { get; set; } | |
public double avgspeed { get; set; } | |
public int status { get; set; } | |
} | |
public class Step | |
{ | |
public Distance2 distance { get; set; } | |
public Duration2 duration { get; set; } | |
public EndLocation2 end_location { get; set; } | |
public string html_instructions { get; set; } | |
public Polyline polyline { get; set; } | |
public StartLocation2 start_location { get; set; } | |
public string travel_mode { get; set; } | |
public Traffic traffic { get; set; } | |
public string maneuver { get; set; } | |
} | |
public class Leg | |
{ | |
public Distance distance { get; set; } | |
public Duration duration { get; set; } | |
public string end_address { get; set; } | |
public EndLocation end_location { get; set; } | |
public string start_address { get; set; } | |
public StartLocation start_location { get; set; } | |
public List<Step> steps { get; set; } | |
public List<object> via_waypoint { get; set; } | |
public int priority { get; set; } | |
} | |
public class OverviewPolyline | |
{ | |
public string points { get; set; } | |
} | |
public class Route | |
{ | |
public Bounds bounds { get; set; } | |
public string copyrights { get; set; } | |
public List<Leg> legs { get; set; } | |
public OverviewPolyline overview_polyline { get; set; } | |
public string summary { get; set; } | |
public List<object> warnings { get; set; } | |
public List<object> waypoint_order { get; set; } | |
} | |
public class GoogleDirectionClass | |
{ | |
public List<GeocodedWaypoint> geocoded_waypoints { get; set; } | |
public List<Route> routes { get; set; } | |
public string status { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment