Lookup country for GPS coordinates without Internet access

我怕爱的太早我们不能终老 提交于 2019-12-03 07:13:53

There's a shape file here with all of the country borders. You can then use OGR or something like this to access the data.

You might have a look at the GeoDjango documentation even if you aren't making a web application. The tutorial covers importing the world boundaries shapefile.

Have you seen https://github.com/krisrak/ios-offline-reverse-geocode-country/? all offline ... no need for any APIs super fast . accuracy not guaranteed !!

You would need a map with the boundaries of each country. Then, given a coordinate, you would need to calculate in which boundary the point fell. Of course, the two challenges there are collecting the data and representing it, and doing the math to find where a point falls.

Does anyone know how Yahoo does it? Could you possibly port their approach locally?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!