【发布时间】:2012-03-30 17:06:03
【问题描述】:
我想在 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\" " +"}";
【问题讨论】:
-
您能发布与此相关的错误或问题吗?
标签: android google-api-java-client google-places