【发布时间】:2015-12-10 04:25:30
【问题描述】:
如何使用 place_id 而不是经纬度坐标创建位置标记?
public void onMapReady(GoogleMap map) {
LatLng sydney = new LatLng(-34, 151);
//I want to use the place_id to place in of the Latitude and Longitude
map.addMarker(new MarkerOptions().position(sydney).title(" Sydney"));
map.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
【问题讨论】:
标签: google-maps google-maps-markers google-maps-android-api-2