問題描述
我從另一個問題中看到:確定 iPhone 用戶的國家/地區 可以得到iPhone 用戶當前所在的國家/地區.
I saw from another question here : Determine iPhone user's country that it is possible to get the current country the user of the iPhone is in.
這對于許多用途來說非常方便.但是,是否有可能更深入地從 iOS(如果有信息)推斷出用戶所在的州或城市?
And that is quite convenient for many uses. However, would it be possible to go even deeper and infer from iOS (if it has the information) which state or city the user is in as well?
我想如果不可能的話,下一步將是反向地理編碼服務.不過,您是否可以為您的應用雇用反向地理編碼服務?
I suppose reverse geocoding services would be the next step if things weren't possible.. Are there even such things as a reverse geocoding service you can hire for your app though?
推薦答案
我將從 CLReverseGeocoder
類開始.
這個stackoverflow問題獲取當前城市并且可能是適合您的使用.
This stackoverflow question gets the current city and can probably be adapted for your use.
這篇關于從 iOS 獲取反向地理編碼當前位置的最簡單方法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!