我可以使用下面的代码找到附近BloodBanks
private String getUrl(double latitude, double longitude, String nearbyPlace) {
StringBuilder googlePlacesUrl = new StringBuilder("https://maps.googleapis.com/maps/api/place/nearbysearch/json?");
googlePlacesUrl.append("location=" + latitude + "," + longitude);
googlePlacesUrl.append("&radius=" + PROXIMITY_RADIUS);
googlePlacesUrl.append("&type=hospital");
googlePlacesUrl.append("&sensor=true");
googlePlacesUrl.append("&key=" + "API");
Log.d("getUrl", googlePlacesUrl.toString());
return (googlePlacesUrl.toString());
}
谷歌附近的地方API不支持血库作为其类型之一取附近的医院......那么,有没有办法让只有最近的血库?如果是这样,你能告诉我如何...这将是一个很大的帮助,我的项目...
Google没有针对每种可能的地点类型的类型。如果你不能让你通过API所需的信息,你就必须建立自己的数据集,或者可能找到其他来源的数据。 – MrUpsidown