我开始做一个类似layar的应用程序,我知道这很棘手。但是从我得到的示例中,所有信息都是从以下页面中检索到的;
或者
我的问题是这些页面中包含什么,我想创建自己的页面,包括我选择的 GEO 位置,你能给我一个完整的例子,说明这些 .json 文件中包含的内容以及我的 url 的结构应该使用能够从 android 应用程序拨打电话。
谢谢你。
我开始做一个类似layar的应用程序,我知道这很棘手。但是从我得到的示例中,所有信息都是从以下页面中检索到的;
或者
我的问题是这些页面中包含什么,我想创建自己的页面,包括我选择的 GEO 位置,你能给我一个完整的例子,说明这些 .json 文件中包含的内容以及我的 url 的结构应该使用能够从 android 应用程序拨打电话。
谢谢你。
这是完整的 a.json 文件;
{
"status": "OK",
"num_results": 3,
"results": [
{
"id": "2827",
"lat": "43.246061",
"lng": "-79.807346",
"elevation": "32.29999923706055",
"title": "Penegal",
"distance": "9.756",
"has_detail_page": "1",
"webpage": "http%3A%2F%2Fwww.buiud.com"
},
{
"id": "2821",
"lat": "43.546095",
"lng": "-79.807346",
"elevation": "0",
"title": "Gantkofel",
"distance": "9.771",
"has_detail_page": "0",
"webpage": ""
},
{
"id": "2829",
"lat": "43.446095",
"lng": "-79.807346",
"elevation": "21",
"title": "Roen",
"distance": "17.545",
"has_detail_page": "1",
"webpage": "http%3A%2F%2Fwww.suedtirolerland.it%2Fapi%2Fmap%2FgetMarkerTplM%2F%3Fmarker_id%3D2829%26project_id%3D15%26lang_id%3D9"
}
]
}
奇迹般有效!