There is an address that I want to find on the map вул Південна 10 місто Одеса
Looking:
...
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=..."></script>
...
function addMarkerByAddress(id, Adres){
var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': Adres},
function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var latlng = results[0].geometry.location;
var marker = addMarker({
id: id,
position: latlng
});
}
});
}
As a result, the marker will appear at: вул Південна дорога 10 місто Одеса
If you go to maps.google.com and interactively enter there вул Південна 10 місто Одеса, Google will detect it correctly.
Is it possible to do something to know if address was defined correctly with google.maps.Geocoder() ?