华为附近搜索错误 BUSINESS_VERIFICATION_FAILED
我一直在使用站点套件服务来获取附近经纬度偏向的位置。 但不幸的是这个错误突然出现。
但搜索到的参数都是文档中提供的参数(用于测试目的),除了 api key 之外。
val searchService: SearchService = SearchServiceFactory.create(
this, URLEncoder.encode(
getString(R.string.huawei_maps_key),
"UTF-8"
)
)
val request = NearbySearchRequest()
val location = Coordinate(48.893478, 2.334595)
request.location = location
request.query = "Paris"
request.radius = 1000
request.hwPoiType = HwLocationType.ADDRESS
request.language = "fr"
request.pageIndex = 1
request.pageSize = 5
request.strictBounds = false
I have been using Site kit service to get nearby locations on the biases of Lat Lng.
But unfortunately this error appears out of no where.
I had studied the documentation and error code which explain this
But the searched parameters are all those which are provided in documentations(for testing purpose) except the api key.
val searchService: SearchService = SearchServiceFactory.create(
this, URLEncoder.encode(
getString(R.string.huawei_maps_key),
"UTF-8"
)
)
val request = NearbySearchRequest()
val location = Coordinate(48.893478, 2.334595)
request.location = location
request.query = "Paris"
request.radius = 1000
request.hwPoiType = HwLocationType.ADDRESS
request.language = "fr"
request.pageIndex = 1
request.pageSize = 5
request.strictBounds = false
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将以下代码更改
为:
Try to change your following code
to: