#reader(lib "htdp-beginner-reader.ss" "lang")((modname gui-world-location) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(require (lib "gui-world.ss" "gui-world"))
(define-struct world (latitude longitude))
(define initial-world (make-world 0 0))
(define (lat-msg w)
(number->string (world-latitude w)))
(define (long-msg w)
(number->string (world-longitude w)))
(define view
(col
(row "Latitude: " (message lat-msg))
(row "Longitude: " (message long-msg))))
(define (handle-location-change a-world a-latitude a-longitude)
(make-world a-latitude
a-longitude))
(big-bang initial-world view
(on-location-change handle-location-change))