Skip to content

Instantly share code, notes, and snippets.

@suchithm
Last active September 3, 2015 10:37
Show Gist options
  • Save suchithm/252afca1be6c4fb25840 to your computer and use it in GitHub Desktop.
Save suchithm/252afca1be6c4fb25840 to your computer and use it in GitHub Desktop.
//rest request to google direction api
internal static string strGoogleDirectionUrl="https://maps.googleapis.com/maps/api/directions/json?origin=src_locn&destination=dest_lcn&key=keyGoesHere";
string strJSONDirectionResponse = await FnHttpRequest(strGoogleDirectionUrl);
var objRoutes = JsonConvert.DeserializeObject<GoogleDirectionClass> ( jSonData );
//find GoogleDirectionClass below in this page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment