Здравсвтуйте, как можно определить ближайшую станцию метро через map API?
Сейчас я могу только проверить адрес, но станцию не могу узнать, может кто сталкивался, подскажите пожалуйста? Желательно на nodeJs.
const googleMapsClient = require('@google/maps').createClient({
key: 'KEY',
Promise: Promise
});
googleMapsClient.geocode({
address: message,
components: {
country: "by"
},
language: "ru",
region: "by"
})
.asPromise()
.then((response) => {
callback(null, response.json.results);
})
.catch((error) => {
console.log(error)
});