0
我已经创建了OpenStreetMap的API的应用程序,我使用OsmBonusPack库时,我试图与getFromLocationName获得位置()fontion我得到一个错误禁伐OpenStreetMap的HTTP/1.1 403禁止
BONUSPACK: Invalid response from server: HTTP/1.1 403 Forbidden
感谢提前。
我已经创建了OpenStreetMap的API的应用程序,我使用OsmBonusPack库时,我试图与getFromLocationName获得位置()fontion我得到一个错误禁伐OpenStreetMap的HTTP/1.1 403禁止
BONUSPACK: Invalid response from server: HTTP/1.1 403 Forbidden
感谢提前。
已知问题。无视osmdroid的用户无法正确设置用户代理,因此,每个人都被禁止使用osm的tile服务器。
这里记录:加载地图前https://github.com/osmdroid/osmdroid/issues/366
在您的活动将这个。
OpenStreetMapTileProviderConstants.setUserAgentValue(BuildConfig.APPLICATION_ID);
哪些确切的URL这是否响应从何而来? – scai
此网址:http://nominatim.openstreetmap.org/search?format=json&accept-language=en&addressdetails=1&limit=1&q=brazil – Hakraf
这里没有问题。也许你被阻止了。您是否尊重[Nominatim的使用政策](https://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy)? – scai