Topic: Getting Speed Limit
I'm trying to get the current speed limit using the OnlineMapsGoogleRoads module with the code below and the API shows that the GetSpeedLimitResults needs a string response but it is giving me a "Invalid Expression Term 'String' " error for my response variable. Couldn't find any examples so do I have this correct?
private OnlineMapsGoogleRoads.SpeedLimitResult speedLR;
public void ShowSpeedLimit() {
speedLR.speedLimit = OnlineMapsGoogleRoads.GetSpeedLimitResults(string resp);
Debug.Log("ShowSpeedLimit - Speed Limit: " + speedLR.speedLimit.ToString());
Debug.Log("ShowSpeedLimit - Speed Limit Type: " + speedLR.units.ToString());
speedLimitData.GetComponent<TMPro.TextMeshProUGUI>().text = speedLR.speedLimit.ToString();
}