ist es möglich (in PHP Back-End) zu konvertieren:Google Maps - Adresse in Breiten- und Längengrad umwandeln - PHP-Backend?
<?php
$Address = "Street 1, City, Country"; // just normal address
?>
zu
<?php
$LatLng = "10.0,20.0"; // latitude & lonitude
?>
Der Code, den ich zur Zeit ist mit dem Standard ein:
<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'></script>
<script>
function initialize() {
var myLatlng = new google.maps.LatLng(10.0,20.0);
var mapOptions = {
zoom: 16,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById('map'), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'This is a caption'
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<div id="map"></div>
I habe schon seit einer Weile https://developers.google.com/maps/documentation/geocoding gelesen, aber ich bin nicht erfahren genug, denke ich.
Danke.
Bitte beachten Sie, ich den Code aktualisiere mehr oo/genaue http://www.fcsoftware.co.uk/blog/?p=71 seine – Dave