search

Home  >  Q&A  >  body text

html5 - Geolocation API 不稳定?

在调用 navigation.geolocation.getCurrentPosition() 时候会返回message: "Network location provider at 'https://www.googleapis.com/' : Returned error code 404."__proto__: PositionError
有什么解决或者替代方案么?

高洛峰高洛峰2768 days ago636

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 11:34:32

    In China, please use Baidu~Amap~~Tencent Map~~~Sogou Map~What kind of API interface are you waiting for~

    The worst case scenario is that you have to import the js library from ditu.google.cn instead of google.com

    reply
    0
  • Cancelreply