How to call HERE Maps API v3 using HTTPS

前端 未结 2 1157
梦如初夏
梦如初夏 2021-01-05 03:27

How can I call HERE maps through HTTPS ?

I\'m using HTTPS on my server so when I call this:

    

        
2条回答
  •  悲&欢浪女
    2021-01-05 03:58

    You need to load the API from https and additionally you need to set:

    // Create a platform object to communicate with the HERE REST APIs
    var platform = new H.service.Platform({
        useCIT: true,
        app_id: app_id,
        app_code: app_code,
        useHTTPS: true
    });
    

    The Trick is useHTTPS: true, as in described in the Documentation at: HERE Developers Guide

提交回复
热议问题