When iOS interprets data as phone numbers

While developing an mobile website that used geolocation, I noticed that long latitude numbers on screen changed into links. At first I thought it was a jQuery error, but the problem persisted without any JavaScript at all.

Solution

Turns out that iOS on iPhones, simulated or not, always tries to read certain strings as phone numbers. We appended ° to the end of each latitude and longitude numbers, and it worked.

Tags: iOS problem solving