-
Notifications
You must be signed in to change notification settings - Fork 0
MapUtils
Below methods requires
Context
scope to launch(Can be invoked from context scope). And they all navigate you to Google Maps, So make sure you confirm that Google Maps is present in device or not
-
isGoogleMapsInstalled(): Boolean
Returns true if google maps is present in your device. -
showMakerInGoogleMap(latitude: Double?, longitude: Double?, name: String): Boolean
Show the point the google maps with name. If fails returns false. -
showMakerInGoogleMap(address: String): Boolean
Show the location in google maps with address. -
showMakerInGoogleMap(format: String, vararg objects: Any): Boolean
Show the point with your own custom format and variable arguments. -
searchPlaces(typeOfPlace: String): Boolean
Search a place in google maps. Like Restaurents, Hotels and more. -
searchPlacesByLatLong(latitude: Double?, longitude: Double?, typeOfPlace: String): Boolean
Search a place in Google maps with provided latitude and longitude and a type of place to search on. -
showMapRoute(latitudeFrom: Double, longitudeFrom: Double, latitudeTo: Double, longitudeTo: Double, selectionTitle: String, exceptionMessageIfOccurs: String?)
Show a map route in google maps. By providing "from location" to "to location". With title and exception message if occurs. -
showMapCoordinates(latitude: Double, longitude: Double, markerTitle: String, selectionTitle: String, exceptionMessageIfOccurs: String?)
Show point in google maps with latitude, longitude, marker Title and selection title with exception message.
Below methods doesn't requires
Context
scope for calling.
-
getMapCoordinatesIntent(latitude: Double, longitude: Double, markerTitle: String?): Intent
Get google maps intent. -
fun getMapRouteIntent(latitudeFrom: Double, longitudeFrom: Double, latitudeTo: Double, longitudeTo: Double): Intent
Get map route intent.