Companion

object Companion

Functions

Link copied to clipboard
fun getAddressFromCoordinates(context: Context, coordinate: LatLng): CharSequence?

It is used to get address in readable format from the coordinates passed in parameters. It uses GeoCoder API to get address from latitude & longitude and return the same address

Link copied to clipboard
fun getDirectionFromHeading(context: Context, heading: Double): CharSequence?

It is used to manage the direction from the heading passed in parameter.

Link copied to clipboard
fun parseJSONToList(jsonObject: String): MutableList<Vehicle>

It is used to parse the JSONOject to MutableList using Gson

Link copied to clipboard
fun resolveError(e: Exception): State.ErrorState

It is used to handle the Network errors and return State based on error.