结果没有来自Google Maps Services的Node.js客户端

时间:2019-02-27 06:49:54

标签: node.js google-maps

我需要找到坐标。

node.js https://github.com/googlemaps/google-maps-services-jsgoogle建立了一个图书馆

我按照文档中的说明进行了所有操作。在https://developers.google.com/console中找到我的密钥。

const googleMapsClient = require('@google/maps').createClient({
    key: 'key'
});

googleMapsClient.geocode({
    address: '1600 Amphitheatre Parkway, Mountain View, CA'
}, (err, res) => {
   if (!err) {
       console.log(res.json.results);
   } else {
       console.log(err);
   }
});

但是我收到错误消息error_message: 'An internal error was found for this API project.'

我在做错什么请帮助我?

0 个答案:

没有答案