Junior — Middle
Do you have experience with integration and working with APIs of online mapping services?
sobes.tech AI
Answer from AI
Yes, I have experience integrating with APIs of online mapping services such as Google Maps, Yandex.Maps, and OpenStreetMap.
Typically, integration involves:
- Obtaining an API key and configuring access.
- Embedding the map into an application using SDK or JavaScript API.
- Adding markers, routes, geocoding addresses.
- Handling user events, such as map clicks.
Example of using Google Maps SDK for Android:
val mapFragment = supportFragmentManager.findFragmentById(R.id.map) as SupportMapFragment
mapFragment.getMapAsync { googleMap ->
val sydney = LatLng(-34.0, 151.0)
googleMap.addMarker(MarkerOptions().position(sydney).title("Marker in Sydney"))
googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney))
}
This approach allows creating interactive maps and expanding application functionality.