Der folgende Link (Karten-API) findet Kensington San Diego als Nachbarschaft. https://maps.googleapis.com/maps/api/geocode/json?address=kensington,%20san%20diegoGoogle Places findet keine Position, die Google Maps-API verwendet
{
"results" : [
{
"address_components" : [
{
"long_name" : "Kensington",
"short_name" : "Kensington",
"types" : [ "neighborhood", "political" ]
},
{
"long_name" : "San Diego",
"short_name" : "San Diego",
"types" : [ "locality", "political" ]
},
{
"long_name" : "San Diego County",
"short_name" : "San Diego County",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "California",
"short_name" : "CA",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Kensington, San Diego, CA, USA",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : 32.777394,
"lng" : -117.0968502
},
"southwest" : {
"lat" : 32.755116,
"lng" : -117.1127622
}
},
"location" : {
"lat" : 32.7668062,
"lng" : -117.1058848
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : 32.777394,
"lng" : -117.0968502
},
"southwest" : {
"lat" : 32.755116,
"lng" : -117.1127622
}
}
},
"place_id" : "ChIJQXneX0pU2YARsIgYMQOsyks",
"types" : [ "neighborhood", "political" ]
}
],
"status" : "OK"
}
Der Link unten (Places API) kann nicht finden es https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=36.26361161176487,-115.12227065576182&keyword=kensignton,%20san%20diego&rankby=distance (Natürlich ist dies ein nicht funktionieren ohne Schlüssel API aber auch mit einem Schlüssel antwortet er mit ZERO_RESULTS)
{
"html_attributions" : [],
"results" : [],
"status" : "ZERO_RESULTS"
}
jedoch Ich kann Map API nicht benutzen, um Starbucks in meiner Nähe zu finden (ich habe es versucht und es hat mich nach Kanada geschickt). Also ... wie kann ich entweder nach Starbucks, Nachbarschaft oder Adresse suchen und vernünftige Ergebnisse erhalten
einige lahme Person downvoted die Frage ... meh – user438431