我想在 android 中使用 Google Places API 添加我自己的地方,并附上一些描述。现在我想以下面的字符串格式添加附近、URL、网站、international_phone_number 等,但我无法得到它请帮助我:
String placeJSON =
"{"+
"\"location\": {" +
"\"lat\": " + lat + "," +
"\"lng\": " + lng +
"}," +
"\"accuracy\":50.0," +
"\"name\": \"" + name + "\"," +
"\"types\": [\"" + type + "\"]," +
"\"vicinity\":\""+ DescriptionDialog.vic +"\","+
"\"formatted_address\":\""+ DescriptionDialog.formtd_address +"\","+
"\"formatted_phone_number\":\""+ DescriptionDialog.formtd_phone_number +"\","+
"\"url\":\""+ DescriptionDialog.myUrl +"\","+
"\"website\":\""+ DescriptionDialog.myWebsite +"\","+
"\"language\": \"en\" " +"}";