Verwenden von Google Map API zum Abrufen der Grenze und Koordinaten für die Postleitzahl.gmap api Geocode Postleitzahl Saudi-Arabien funktioniert nicht wie erwartet
Während Geokodierung die Adresse für Saudi-Arabien (SA) Region, wenn die Postleitzahl von Saudi-Arabien (SA), um das Ergebnis des Geocoder geocodiert wird, hat Adresse unter Bezugnahme auf 2517 Den Haag, Niederlande
{
"results" : [
{
"address_components" : [
{
"long_name" : "2517",
"short_name" : "2517",
"types" : [ "postal_code", "postal_code_prefix" ]
},
{
"long_name" : "The Hague",
"short_name" : "The Hague",
"types" : [ "locality", "political" ]
},
{
"long_name" : "The Hague",
"short_name" : "The Hague",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "South Holland",
"short_name" : "ZH",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Netherlands",
"short_name" : "NL",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "2517 The Hague, Netherlands",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : 52.0958783,
"lng" : 4.3007563
},
"southwest" : {
"lat" : 52.0773935,
"lng" : 4.2732776
}
},
"location" : {
"lat" : 52.0847639,
"lng" : 4.2801843
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : 52.0958783,
"lng" : 4.3007563
},
"southwest" : {
"lat" : 52.0773935,
"lng" : 4.2732776
}
}
},
"place_id" : "ChIJI9DHzc6wxUcR1s1th0GbWgQ",
"types" : [ "postal_code", "postal_code_prefix" ]
},
{
"address_components" : [
{
"long_name" : "2517",
"short_name" : "2517",
"types" : [ "postal_code" ]
},
{
"long_name" : "Russell Vale",
"short_name" : "Russell Vale",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Wollongong City Council",
"short_name" : "Wollongong",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "New South Wales",
"short_name" : "NSW",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Australia",
"short_name" : "AU",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Russell Vale NSW 2517, Australia",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : -34.3338503,
"lng" : 150.9245951
},
"southwest" : {
"lat" : -34.3654418,
"lng" : 150.8740632
}
},
"location" : {
"lat" : -34.3454996,
"lng" : 150.9016476
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : -34.3338503,
"lng" : 150.9245951
},
"southwest" : {
"lat" : -34.3654418,
"lng" : 150.8740632
}
}
},
"place_id" : "ChIJSaEBIk8eE2sRQIa6P2t9ARw",
"postcode_localities" : [ "Russell Vale", "Woonona" ],
"types" : [ "postal_code" ]
}
],
"status" : "OK"
}
Seit Die Ergebnisse waren nicht mit Saudi-Arabien verbunden, fügte die Land Einschränkungen in der API. Aber es ergibt sich hat Teil Ergebnisse Wert Wahr, die die Ergebnisse bezieht sich nicht korrekt sind und es Ergebnis hat nur den Standardwert von Saudi-Arabien Standort
https://maps.googleapis.com/maps/api/geocode/json?address=2517&components=country:SA
{
"results" : [
{
"address_components" : [
{
"long_name" : "Saudi Arabia",
"short_name" : "SA",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Saudi Arabia",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : 32.1542839,
"lng" : 55.6666999
},
"southwest" : {
"lat" : 16.379528,
"lng" : 34.5489978
}
},
"location" : {
"lat" : 23.885942,
"lng" : 45.079162
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : 32.1542839,
"lng" : 55.6666999
},
"southwest" : {
"lat" : 16.379528,
"lng" : 34.5489978
}
}
},
"partial_match" : true,
"place_id" : "ChIJQSqV5z-z5xURm7YawktQYFk",
"types" : [ "country", "political" ]
}
],
"status" : "OK"
}
Aber wenn die Adresse von Straße/Region wird mit Postleitzahl hinzugefügt der Geocode funktioniert https://maps.googleapis.com/maps/api/geocode/json?address=2517+Ar+Riyadh&components=country:SA
Gibt es eine Möglichkeit, Gmap api zu geocod zu zwingen Das einzige mit Postleitzahl für das Land Saudi-Arabien und Ergebnis ist genaue Koordinaten und Grenze?
Sieht für mich so aus, als ob die Datenbank des Geocoders 2517 nicht als gültige Postleitzahl für Saudi-Arabien enthält. Ist es eine gültige Postleitzahl (es sieht nicht so aus, als hätte es genug Ziffern für mich)? Wenn ja, müssen Sie möglicherweise zu Google Maps "mapmaker" gehen und es hinzufügen. (Hinweis: das ["Arbeitsbeispiel"] (https://maps.googleapis.com/maps/api/geocode/json?address=2517+Ar+Riyadh&components=country:SA) Sie posted gibt Postleitzahl 55425) – geocodezip
Danke Die Postleitzahl von Saudi-Arabien finden Sie unter dem folgenden Link. http://life-in-saudiarabia.blogspot.in/2015/09/zip-codepostal-code-of-major-cities-of.html#.V5g_BvnnZBc während der Verwendung einer der auf dieser Seite aufgelisteten Postleitzahl das Ergebnis von Google Geocode ist nicht wie erwartet. – Zlahc