Add application logic to OpenStreetMap sample.