Getting surrounding zip codes from a location using Apple Map Kit

后端 未结 2 1280
悲哀的现实
悲哀的现实 2020-12-22 08:06

I\'m getting started on Map Kit for my job and I have a IOS project I am working on where it involves Map Kit, I know how to search for a location and pin point it but my is

2条回答
  •  無奈伤痛
    2020-12-22 08:39

    Zip codes like this aren't available in MapKit. You need to find a third-party source of zip code data (e.g. codes + bounding geometries), figure out a way to index them (perhaps be using or precalculating the centroid of each), and then figure out what's close to the selected point.

提交回复
热议问题