@DeprecatedSince("2020.06") open static fun create(@NonNull context: Context): TrafficApi!
Creates a new TrafficApi object which will use the provided Traffic API Key. It uses default values for the Traffic API service endpoint and API version.
context
- Context: Android's context.
Return
TrafficApi!: Newly created TrafficApi object for further processing.
open static fun create(@NonNull context: Context, apiKey: String!): TrafficApi!
Creates a new TrafficApi object which will use the provided Traffic API Key. It uses default values for the Traffic API service endpoint and API version.
context
- Context: Android's context.
Return
TrafficApi!: Newly created TrafficApi object for further processing.