I am doing a map based application in iphone. I get my data(address) from the addressbook. The locations are pinned correctly when the right address is provided. But when a wrong address(like XYZ instead of a correct city name like New York) is entered the pins fall to the (0,0) co ordinate of the map or to some random location in Canada. How can I handle this case.
Share
You could check for an invalid coordinate using the
kCLLocationCoordinate2DInvalidconstant, something like: