Junior — Middle
Do you have practical experience working with mapping systems or maps?
sobes.tech AI
Answer from AI
Yes, in Android development, Google Maps API is often used for integrating maps and working with geolocation.
Practical experience typically includes:
- Displaying a map in the app using
MapFragmentorMapView. - Adding markers and annotations to the map.
- Implementing routes and navigation.
- Working with geocoding (converting addresses to coordinates and vice versa).
Example of adding a marker to the map:
val mapFragment = supportFragmentManager
.findFragmentById(R.id.map) as SupportMapFragment
mapFragment.getMapAsync { googleMap ->
val location = LatLng(-34.0, 151.0)
googleMap.addMarker(MarkerOptions().position(location).title("Marker in Sydney"))
googleMap.moveCamera(CameraUpdateFactory.newLatLng(location))
}
You can also use alternative mapping SDKs, such as Mapbox, if additional features or customization are needed.