package com.ecit.map.city;
import java.util.ArrayList;
import com.google.android.maps.GeoPoint;
public class Data
{
public Data(){
initZhixia();
initjiangxi();
inithebei();
initshanxi();
initneimenggu();
inithenan();
inithubei();
inithunan();
initjiangsu();
initzhejiang();
initanhui();
initshandong();
initfujian();
initguangxi();
initguangdong();
inithainan();
initshanxi();
initgansu();
initqinghai();
initxinjiang();
initningxia();
inityunnan();
initguizhou();
initheilongjiang();
initliaoning();
initjilin();
initsichuan();
initxizang();
}
ArrayList<Province> provinces=new ArrayList<Province>();
public ArrayList<Province> getProvinces()
{
return provinces;
}
City city;
ArrayList<City> citys;
GeoPoint g;
public void initZhixia(){
ArrayList<City> zhixiaCitys=new ArrayList<City>();
///////////////////////////////////////////////////////////////////////////////
GeoPoint beijingGPS = new GeoPoint((int) (39.90578 * 1E6),(int) (116.38689 * 1E6));
City beijing=new City("北京市",beijingGPS);
zhixiaCitys.add(beijing);
///////////////////////////////////////////////////////////////////////////////
GeoPoint tianjinGPS = new GeoPoint((int) (39.15079 * 1E6),(int) (117.20264 * 1E6));
City tianjin=new City("天津市",tianjinGPS);
zhixiaCitys.add(tianjin);
GeoPoint shanghaiGPS = new GeoPoint((int) (31.1120 * 1E6),(int) (121.45611 * 1E6));
City shanghai=new City("上海市",shanghaiGPS);
zhixiaCitys.add(shanghai);
GeoPoint chongqiGPS = new GeoPoint((int) (29.52496 * 1E6),(int) (106.52435 * 1E6));
City chongqi=new City("重庆市",chongqiGPS);
zhixiaCitys.add(chongqi);
Province zhixia=new Province("直辖市",zhixiaCitys,10);
provinces.add(zhixia);
}
/*
初始化各省的数据
*/
public void initjiangxi(){
ArrayList<City> jiangxiCitys=new ArrayList<City>();
GeoPoint nanchangGPS = new GeoPoint((int) (28.6800 * 1E6), (int) (115.8900 * 1E6));
City nanchang=new City("南昌市",nanchangGPS);
jiangxiCitys.add(nanchang);
GeoPoint jingdezhenGPS = new GeoPoint((int) (28.68316* 1E6), (int) (115.858089 * 1E6));
City jingdezheng=new City("景德镇市",jingdezhenGPS);
jiangxiCitys.add(jingdezheng);
GeoPoint pingxiangGPS = new GeoPoint((int) (29.307094* 1E6), (int) (117.181566 * 1E6));
City pingxiang=new City("萍乡市",pingxiangGPS);
jiangxiCitys.add(pingxiang);
GeoPoint jiujiangGPS = new GeoPoint((int) ( 29.705096 * 1E6), (int) ( 116.001982 * 1E6));
City jiujiang=new City("九江市",jiujiangGPS);
jiangxiCitys.add(jiujiang);
GeoPoint xinyuGPS = new GeoPoint((int) ( 27.817819 * 1E6), (int) (114.91741 * 1E6));
City xingyu=new City("新余市",xinyuGPS);
jiangxiCitys.add(xingyu);
GeoPoint yingtanGPS = new GeoPoint((int) (28.260189 * 1E6), (int) (117.069202 * 1E6));
City yingtuan=new City("鹰潭市",yingtanGPS);
jiangxiCitys.add(yingtuan);
GeoPoint ganzhouGPS = new GeoPoint((int) ( 25.829209 * 1E6), (int) (114.933553 * 1E6));
City gangzhou=new City("赣州市",ganzhouGPS);
jiangxiCitys.add(gangzhou);
GeoPoint jianGPS = new GeoPoint((int) ( 27.113039 * 1E6), (int) (114.992913 * 1E6));
City jian=new City("吉安市",jianGPS);
jiangxiCitys.add(jian);
GeoPoint yichunGPS = new GeoPoint((int) (27.796561 * 1E6), (int) (114.395108 * 1E6));
City yichun=new City("宜春市",yichunGPS);
jiangxiCitys.add(yichun);
GeoPoint fuzhouGPS = new GeoPoint((int) (27.9492 * 1E6), (int) (116.358176 * 1E6));
City fuzhou=new City("抚州市",fuzhouGPS);
jiangxiCitys.add(fuzhou);
// City shangrao=new City("上饶市",g);
Province jiangxi=new Province("江西省",jiangxiCitys,12);
provinces.add(jiangxi);
}
/* 河北省:石家庄市、唐山市、秦皇岛市、邯郸市、邢台市、保定市、张家口市、承德市、沧州市、廊坊市、衡水市
*/
public void inithebei(){
ArrayList<City> hebeiCitys=new ArrayList<City>();
GeoPoint shijiazhuangGPS = new GeoPoint((int) (38.042307 * 1E6), (int) (114.51486 * 1E6));
City shijiazhuang=new City("石家庄市",shijiazhuangGPS);
hebeiCitys.add(shijiazhuang);
GeoPoint tangshanGPS = new GeoPoint((int) (38.042307 * 1E6), (int) (114.51486 * 1E6));
City tangshan=new City("唐山市",tangshanGPS);
hebeiCitys.add(tangshan);
GeoPoint qinhuangdaoGPS = new GeoPoint((int) (39.630476 * 1E6), (int) (116.358176 * 1E6));
City qinhuangdao=new City("秦皇岛市",qinhuangdaoGPS);
hebeiCitys.add(qinhuangdao);
GeoPoint hangdangGPS = new GeoPoint((int) (39.935377 * 1E6), (int) (119.600492 * 1E6));
City handan=new City("邯郸市",hangdangGPS);
hebeiCitys.add(handan);
GeoPoint handanGPS = new GeoPoint((int) (36.612267 * 1E6), (int) (114.492968 * 1E6));
City xingtai=new City("邢台市",handanGPS);
hebeiCitys.add(xingtai);
GeoPoint xingtaiGPS = new GeoPoint((int) (37.070589 * 1E6), (int) (114.504874 * 1E6));
City baoding=new City("保定市",xingtaiGPS);
hebeiCitys.add(baoding);
GeoPoint baodingGPS = new GeoPoint((int) (38.873972 * 1E6), (int) (115.46463 * 1E6));
City zhangjiakou=new City("张家口市",baodingGPS);
hebeiCitys.add(zhangjiakou);
GeoPoint zhangjiakouGPS = new GeoPoint((int) (40.767576 * 1E6), (int) (114.885951 * 1E6));
City chengde=new City("承德市",zhangjiakouGPS);
hebeiCitys.add(chengde);
GeoPoint chengdeGPS = new GeoPoint((int) (40.978744 * 1E6), (int) (117.943621 * 1E6));
City cangzhou=new City("沧州市",chengdeGPS);
hebeiCitys.add(cangzhou);
GeoPoint cangzhouGPS = new GeoPoint((int) (38.304449 * 1E6), (int) (116.83884 * 1E6));
City langfang=new City("廊坊市",cangzhouGPS);
hebeiCitys.add(langfang);
GeoPoint langfangGPS = new GeoPoint((int) (39.521017 * 1E6), (int) (116.706651 * 1E6));
City hengshui=new City("衡水市",langfangGPS);
hebeiCitys.add(hengshui);
Province heibei=new Province("河北省",hebeiCitys,11);
provinces.add(heibei);
}
/*山西省:太原市、大同市、阳泉市、长治市、晋城市、朔州市、晋中市、运城市、忻州市、临汾市、吕梁市
*/
public void initshanxi(){
ArrayList<City> shanxiCitys=new ArrayList<City>();
GeoPoint taiyuanGPS = new GeoPoint((int) (37.735302 * 1E6), (int) (115.69868 * 1E6));
City taiyuan=new City("太原市",taiyuanGPS);
shanxiCitys.add(taiyuan);
GeoPoint datongGPS = new GeoPoint((int) (37.870662 * 1E6), (int) (112.550619 * 1E6));
City datong=new City("大同市",datongGPS);
shanxiCitys.add(datong);
GeoPoint yangquanGPS = new GeoPoint((int) (40.076816 * 1E6), (int) (113.300126 * 1E6));
City yangquan=new City("阳泉市",yangquanGPS);
shanxiCitys.add(yangquan);
GeoPoint changzhiGPS = new GeoPoint((int) (37.856658 * 1E6), (int) (113.580415 * 1E6));
City changzhi=new City("长治市",changzhiGPS);
shanxiCitys.add(changzhi);
GeoPoint jinchengGPS = new GeoPoint((int) (36.195386 * 1E6), (int) (113.116255 * 1E6));
City jincheng=new City("晋城市",jinchengGPS);
shanxiCitys.add(jicheng);
GeoPoint suozhouGPS = new GeoPoint((int) (35.49087 * 1E6), (int) (112.851768 * 1E6));
City suozhou=new City("朔州市",suozhouGPS);
shanxiCitys.add(suozhou);
GeoPoint jinzhongGPS = new GeoPoint((int) (39.331149 * 1E6), (int) (112.432714 * 1E6));
City jinzhong=new City("晋中市",jinzhongGPS);
shanxiCitys.add(jinzhong);
GeoPoint yunchengGPS = new GeoPoint((int) (37.687024 * 1E6), (int) (112.752695 * 1E6));
City yuncheng=new City("运城市",yunchengGPS);
shanxiCitys.add(yuncheng);
GeoPoint xinzhouGPS = new GeoPoint((int) (35.026372 * 1E6), (int) (111.007324 * 1E6));
City xinzhou=new City("忻州市",xinzhouGPS);
shanxiCitys.add(xinzhou);
GeoPoint linfenGPS = new GeoPoint((int) (38.416364 * 1E6), (int) (112.734269 * 1E6));
City linfen=new City("临汾市",linfenGPS);
shanxiCitys.add(linfen);
GeoPoint lvliangGPS = new GeoPoint((int) (36.088067 * 1E6), (int) (1
没有合适的资源?快使用搜索试试~ 我知道了~
手机地图开发用部分数据代码
共5个文件
txt:3个
java:2个
5星 · 超过95%的资源 需积分: 3 32 下载量 186 浏览量
2011-04-02
17:57:03
上传
评论
收藏 19KB 7Z 举报
温馨提示
手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码手机地图开发用部分数据代码
资源推荐
资源详情
资源评论
收起资源包目录
地图资料.7z (5个子文件)
地图资料
new city.txt 65KB
全国城市坐标.txt 6KB
Data.java 52KB
Data参考.java 7KB
地级市.txt 3KB
共 5 条
- 1
资源评论
- 来找代码2013-04-18很好,只是我暂时用不上
eagle000ping
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功