fork download
  1.  
  2. fun main() {
  3. // Simulating map data
  4. val mapCenter = GeoPoint(48.8584, 2.2945) // Eiffel Tower coordinates
  5. val markers = listOf(
  6. Marker("Eiffel Tower", GeoPoint(48.8584, 2.2945)),
  7. Marker("Louvre Museum", GeoPoint(48.8606, 2.3376))
  8. )
  9.  
  10. // Simulating map rendering
  11. println("Map centered at: ${mapCenter.latitude}, ${mapCenter.longitude}")
  12. println("Markers on the map:")
  13. for (marker in markers) {
  14. println("- ${marker.title} at (${marker.location.latitude}, ${marker.location.longitude})")
  15. }
  16. }
  17.  
  18. // Simulated GeoPoint class
  19. data class GeoPoint(val latitude: Double, val longitude: Double)
  20.  
  21. // Simulated Marker class
  22. data class Marker(val title: String, val location: GeoPoint)
Success #stdin #stdout 0.15s 44352KB
stdin
Standard input is empty
stdout
Map centered at: 48.8584, 2.2945
Markers on the map:
- Eiffel Tower at (48.8584, 2.2945)
- Louvre Museum at (48.8606, 2.3376)