question

WebSpider-5357 avatar image
0 Votes"
WebSpider-5357 asked Nandhagopal edited

How to limit google map results to preferred Country?

hi guys.. my code is working. but how can I return Japan Places only?

     <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places&key=[API KEY]"></script>
     <script type="text/javascript">
         google.maps.event.addDomListener(window, 'load', function () {
             var places = new google.maps.places.Autocomplete(document.getElementById('<%=txtLocation.ClientID %>'));
             google.maps.event.addListener(places, 'place_changed', function () {
                 var place = places.getPlace();
                 document.getElementById('<%=txtAddress.ClientID %>').value = place.formatted_address;
                 document.getElementById('<%=txtLatitude.ClientID %>').value = place.geometry.location.lat();
                 document.getElementById('<%=txtLongitude.ClientID %>').value = place.geometry.location.lng();
             });
         });
     </script>
not-supportedwindows-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

rbrundritt avatar image
1 Vote"
rbrundritt answered

Google Maps is not a Microsoft product.

For Japan, consider using Bing Maps. It has better data than Google Maps there. https://docs.microsoft.com/en-us/bingmaps/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.