Google Rehber API fotoğraf Tepki URL'yi Al

oy
1

Ben resimleri görüntülemek için bir resim URL'si temin etmek zorunda bot platformu ile çalışıyorum.

Google Rehber Fotoğraf Tepkisi bir görüntü yerine bir URL. bir URL almak için herhangi bir şekilde?

Ben NodeJs isteği kullanıyorum

var options = { method: 'GET',
  url: 'https://maps.googleapis.com/maps/api/place/photo',
  qs: 
  { maxwidth: '400',
    photoreference: photoreference,
    key: Google_Places_KEY },
  };

request(options, function (error, response, body) {
 // Code goes here. 
 });

Benim çözüm şimdi, benim sunucuya fotoğraf yükleme bir URL oluşturmak ve bu tedarik etmektir. Daha iyi bir çözüm var mı?

Oluştur 20/11/2016 saat 18:43
kaynak kullanıcı
Diğer dillerde...                            


1 cevaplar

Google Rehber API fotoğraf Tepki URL'yi Al

oy
1

Ben resimleri görüntülemek için bir resim URL'si temin etmek zorunda bot platformu ile çalışıyorum.

Google Rehber Fotoğraf Tepkisi bir görüntü yerine bir URL. bir URL almak için herhangi bir şekilde?

Ben NodeJs isteği kullanıyorum

var options = { method: 'GET',
  url: 'https://maps.googleapis.com/maps/api/place/photo',
  qs: 
  { maxwidth: '400',
    photoreference: photoreference,
    key: Google_Places_KEY },
  };

request(options, function (error, response, body) {
 // Code goes here. 
 });

Benim çözüm şimdi, benim sunucuya fotoğraf yükleme bir URL oluşturmak ve bu tedarik etmektir. Daha iyi bir çözüm var mı?

Cevap 20/11/2016 saat 18:43
kaynak kullanıcı

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more