Techniques for offline reverse geocoding on a mobile device?

前端 未结 3 862
你的背包
你的背包 2021-01-15 18:39

I am working on a mobile mapping application (currently iOS, eventually Android) - and I am struggling with how to best support reverse geocoding from lat/long to Country/St

3条回答
  •  伪装坚强ぢ
    2021-01-15 19:20

    Radven

    You will need to get the Shapefiles (lat/lng outline) of all the administrative entities (US states, countries, etc). There are a lot of public domain sources for these. For example, the NOAA has shapefiles for US states and territories you can download:

    http://www.nws.noaa.gov/geodata/catalog/national/html/us_state.htm

    Once you got the shapefiles, you can use a shapefile reader to test if a lat/lng is within a shape. There are open source readers in C, just google. I seen stuff at sourceforge for shapefiles, but have not used these myself.

    The Team at OpenGeoCode.Org

提交回复
热议问题