2017-09-26 87 views

回答

1
您可以將此鏈接 http://maps.google.com/maps/api/geocode/json?address=

fetch('http://maps.google.com/maps/api/geocode/json?address=' + 'turkey').then(res => this.setState({region: res.result.geometry.location})); 

enter image description here

也就是說,你發送的

地址,它會返回你json