Certified GKH Gardening Expert
It resembles many of the crabapples. I can't say for certain, though. Cut it open to confirm the genus. The seed configuration will be a dead giveaway.
As far as its edibility- You may want to take it up to your closest agricultural center for help with that.