百度poi数据和谷歌poi数据哪里有最全面的技术解决方案

百度poi数据和谷歌poi数据哪里有最全面的技术解决方案,第1张

POI是“Point of Interest”的缩写,可以翻译成“兴趣点”吧,每个POI包含四方面信息,名称、类别、经度、纬度。

目前百度、谷歌、mapabc、高德等官方数据都是有限制的,作为技术开发,新浪LBS官方博客是目前国内最权威的数据应用供应商,包含上面的所有地图数据,并且提供永久免费更新服务,数据的详细截图如下:

详细的博客地址是: >

举个例子吧

public class CreateSimpleExcelToDisk

{

/

@功能:手工构建一个简单格式的Excel

/

public static List<Tsxx> getStudent(String[] str) throws Exception

{

List listts = new ArrayList();

SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd");

Connection conn = DBUtilgetCon();

String sqlback="";

for(int i=0;i<strlength-1;i++){

sqlback=sqlback+"\"id\"='"+str[i]+"'or";

}

sqlback=sqlback+"\"id\"='"+str[strlength-1]+"'";

String sql1 = "select from 表名 where"+sqlback;

Systemoutprintln(sql1 );

ResultSet rs = DBUtilgetResult(conn, sql1);

String outStr = "";

int a=1;

try {

while(rsnext()){

String objid = rsgetString(1);

String tsname= rsgetString("tsname");

String tstel= rsgetString("tstel");

String tscpname= rsgetString("tscpname");

String tsads=rsgetString("tsads");

String tsqus=rsgetString("tsqus");

String tsno=rsgetString("tsno");

String tsdate=rsgetString("tsdate");

Tsxx user = new Tsxx(a,tsname,tstel,tscpname,tsads,tsqus,tsno,dfparse(tsdate));

listtsadd(user);

a++;

}

} catch (SQLException e) {

eprintStackTrace();

}finally {

try {

if (rs != null) {

rsclose();

}

if (conn != null) {

connclose();

}

} catch (Exception e) {

}}

return listts;

}

public static void main(String[] args) throws Exception

{

// // 第一步,创建一个webbook,对应一个Excel文件

// HSSFWorkbook wb = new HSSFWorkbook();

// // 第二步,在webbook中添加一个sheet,对应Excel文件中的sheet

// HSSFSheet sheet = wbcreateSheet("学生表一");

// // 第三步,在sheet中添加表头第0行,注意老版本poi对Excel的行数列数有限制short

// HSSFRow row = sheetcreateRow((int) 0);

// // 第四步,创建单元格,并设置值表头 设置表头居中

// HSSFCellStyle style = wbcreateCellStyle();

// stylesetAlignment(HSSFCellStyleALIGN_CENTER); // 创建一个居中格式

//

// HSSFCell cell = rowcreateCell((short) 0);

// cellsetCellValue("学号");

// cellsetCellStyle(style);

// cell = rowcreateCell((short) 1);

// cellsetCellValue("姓名");

// cellsetCellStyle(style);

// cell = rowcreateCell((short) 2);

// cellsetCellValue("年龄");

// cellsetCellStyle(style);

// cell = rowcreateCell((short) 3);

// cellsetCellValue("生日");

// cellsetCellStyle(style);

//

// // 第五步,写入实体数据 实际应用中这些数据从数据库得到,

// List list = CreateSimpleExcelToDiskgetStudent();

//

// for (int i = 0; i < listsize(); i++)

// {

// row = sheetcreateRow((int) i + 1);

// Tsxx stu = (Tsxx) listget(i);

// // 第四步,创建单元格,并设置值

// rowcreateCell((short) 0)setCellValue((double) stugetId());

// rowcreateCell((short) 1)setCellValue(stugetName());

// rowcreateCell((short) 2)setCellValue((double) stugetAge());

// cell = rowcreateCell((short) 3);

// cellsetCellValue(new SimpleDateFormat("yyyy-mm-dd")format(stugetBirth()));

// }

// // 第六步,将文件存到指定位置

// try

// {

// FileOutputStream fout = new FileOutputStream("E:/studentsxls");

// wbwrite(fout);

// foutclose();

// }

// catch (Exception e)

// {

// eprintStackTrace();

// }

}

以上就是关于百度poi数据和谷歌poi数据哪里有最全面的技术解决方案全部的内容,包括:百度poi数据和谷歌poi数据哪里有最全面的技术解决方案、POI信息与VGI数据有什么关系如何获取VGI数据什么是VGI数据以什么形式呈现、JAVA,POI导出EXCEL表,表中所有数据都是从后台直接获取,求指导,越详细越好等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/9683777.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-30
下一篇 2023-04-30

发表评论

登录后才能评论

评论列表(0条)

保存