JavaScript
- 1 ответ
- 0 вопросов
0
Вклад в тег
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var geocoder = new google.maps.Geocoder();
var address = 'London, UK';
if (geocoder) {
geocoder.geocode({ 'address': address }, function (response, status) {
if (status == google.maps.GeocoderStatus.OK) {
responseCoords = new google.maps.LatLng(response.results[0].geometry.location.lat, response.results[0].geometry.location.lng);
calcRoute(responseCoords);
}
});
}
</script>