根据GPS经纬度判断当前所属的市区

这个事情分两步走

1. 拿到行政区划的地理围栏数据

2. 根据GPS定位判断一个点是否落在地理围栏的多边形区域里。

1. 获取行政区划的地理围栏数据可以利用百度API。打开以前我的一个例子在chrome console里输入 
var bdary = new BMap.Boundary();

bdary.get("北京市延庆区", function(res){ //获取行政区域
//这里是用户自己的函数。
var count = res.boundaries.length;
console.debug("length of bounds ="+count)
console.debug(res.boundaries[0])
});

地理围栏信息会被打印在chrome的控制台里, 注意一下, 一般length of bounds是1, 但是也有例外, 比如北京首都国际机场虽然位于顺义区内和朝阳区不交接, 但却是属于朝阳区的行政区划, 这个时候 length of bound就是2

把打印在屏幕上的GPS数组拷贝下来。 接下来找一个判断点是否位于多边形内的算法实现。 组合一下, 功能就实现出来了。


package com.didi.data.dataDocking.service;

 

import java.util.HashMap;

import java.util.Map;

 

public class BeiJinDistrictMap {

static final Map<String, String> mapMap = new HashMap<String, String>();

static final Map<String, double[][]> mapPoints = new HashMap<String, double[][]>();

static {

mapMap.put("110108_haidian_bj", "116.341137, 39.923964;116.339679, 39.94356;116.334715, 39.948162;116.357253, 39.948746;116.358141, 39.956251;116.362253, 39.957521;116.362998, 39.949865;116.378502, 39.954835;116.37692, 39.973552;116.389736, 39.974387;116.387287, 39.993956;116.362761, 40.026109;116.363069, 40.02954;116.357718, 40.032531;116.401464, 40.039194;116.396604, 40.04379;116.397325, 40.047524;116.378543, 40.050829;116.37375, 40.057042;116.379802, 40.060106;116.378836, 40.063911;116.389051, 40.066847;116.386902, 40.07159;116.379795, 40.071643;116.376853, 40.075298;116.369691, 40.074844;116.369768, 40.07191;116.353507, 40.069364;116.349949, 40.061113;116.346675, 40.060861;116.34552, 40.064731;116.335378, 40.06064;116.325006, 40.067249;116.313008, 40.068525;116.310228, 40.066449;116.296905, 40.089609;116.286401, 40.086145;116.280513, 40.097876;116.265798, 40.10745;116.271527, 40.110243;116.269771, 40.117429;116.264818, 40.118596;116.263369, 40.110845;116.246619, 40.114369;116.251428, 40.118582;116.254817, 40.141222;116.239751, 40.142021;116.223719, 40.147867;116.214447, 40.146781;116.209906, 40.167109;116.201798, 40.166439;116.197998, 40.161694;116.190154, 40.164269;116.188151, 40.153554;116.181289, 40.148843;116.176081, 40.148902;116.176031, 40.145915;116.171412, 40.146314;116.176745, 40.143174;116.179721, 40.13387;116.174848, 40.134699;116.177839, 40.130436;116.141183, 40.127954;116.137391, 40.121312;116.120823, 40.121343;116.113567, 40.124048;116.108368, 40.122302;116.10376, 40.127436;116.081711, 40.121954;116.077221, 40.111653;116.063592, 40.103311;116.056474, 40.092332;116.063413, 40.083336;116.071468, 40.079457;116.072308, 40.073843;116.078539, 40.068341;116.075555, 40.058363;116.0821, 40.043526;116.085314, 40.039136;116.092141, 40.037016;116.107208, 40.039888;116.144993, 40.035981;116.155357, 40.028917;116.164319, 40.027556;116.182703, 40.012638;116.179676, 40.007247;116.167804, 40.006381;116.157626, 39.999989;116.16467, 39.990209;116.174553, 39.993657;116.175724, 39.983666;116.185043, 39.988499;116.185431, 39.994544;116.191454, 39.992044;116.192751, 39.976711;116.208046, 39.967038;116.209915, 39.962145;116.225593, 39.94995;116.220405, 39.939699;116.222384, 39.933733;116.213491, 39.930676;116.213391, 39.923814;116.238498, 39.922;116.259497, 39.927929;116.259612, 39.9237;116.25575, 39.921998;116.259455, 39.921458;116.25952, 39.903235;116.301619, 39.90306;116.302701, 39.892937;116.305624, 39.895923;116.313912, 39.896884;116.310609, 39.898681;116.319901, 39.902635;116.341152, 39.902656;116.341137, 39.923964");

mapMap.put("110105_chaoyang1_bj","116.646319, 40.006356;116.641899, 40.010457;116.637789, 40.008115;116.631801, 40.010677;116.634344, 40.014032;116.625897, 40.018101;116.605573, 40.020894;116.583423, 40.03384;116.585263, 40.038949;116.580879, 40.038842;116.583812, 40.035202;116.572502, 40.044509;116.557532, 40.051337;116.552346, 40.056249;116.558534, 40.059865;116.554677, 40.068609;116.550099, 40.065421;116.53681, 40.076275;116.518432, 40.077255;116.506144, 40.086251;116.489979, 40.087645;116.479918, 40.091193;116.47609, 40.095797;116.473365, 40.095842;116.472852, 40.087579;116.468351, 40.08629;116.466889, 40.067011;116.455298, 40.064534;116.431355, 40.070731;116.431517, 40.066402;116.415819, 40.06182;116.412625, 40.05574;116.415001, 40.049137;116.410542, 40.044775;116.401717, 40.042858;116.397325, 40.047524;116.396604, 40.04379;116.401464, 40.039194;116.357718, 40.032531;116.363069, 40.02954;116.362761, 40.026109;116.387287, 39.993956;116.387785, 39.978807;116.400581, 39.979365;116.393903, 39.967204;116.396364, 39.969351;116.414482, 39.96835;116.415299, 39.979667;116.420495, 39.968249;116.431673, 39.968272;116.431655, 39.96543;116.437014, 39.965433;116.43663, 39.956121;116.446594, 39.957907;116.44497, 39.952238;116.454134, 39.950601;116.45024, 39.93446;116.440535, 39.934234;116.442707, 39.908962;116.455132, 39.908642;116.453665, 39.900457;116.457497, 39.896305;116.450797, 39.894688;116.44943, 39.872028;116.451866, 39.868396;116.463979, 39.866301;116.472854, 39.860089;116.466214, 39.853856;116.46466, 39.856262;116.453186, 39.854005;116.453684, 39.847044;116.447524, 39.845285;116.442984, 39.847021;116.437902, 39.83852;116.431615, 39.838691;116.431617, 39.83626;116.446775, 39.835831;116.450671, 39.826127;116.460356, 39.828481;116.469959, 39.819999;116.475494, 39.82014;116.480899, 39.815293;116.491975, 39.818782;116.496314, 39.824938;116.501637, 39.824196;116.50154, 39.821867;116.516491, 39.822714;116.515981, 39.829544;116.520718, 39.835153;116.532584, 39.83575;116.532967, 39.832723;116.541175, 39.83037;116.544843, 39.834524;116.540075, 39.838702;116.549021, 39.835757;116.552721, 39.84116;116.584308, 39.836326;116.589616, 39.829271;116.606644, 39.831094;116.608073, 39.846815;116.613401, 39.851335;116.611039, 39.855961;116.619228, 39.856115;116.633199, 39.866868;116.626724, 39.874698;116.63635, 39.891266;116.634324, 39.896696;116.622549, 39.895733;116.620905, 39.902434;116.628445, 39.908134;116.627765, 39.926694;116.637114, 39.9281;116.631738, 39.936723;116.635922, 39.938225;116.639874, 39.946202;116.636731, 39.95343;116.639218, 39.956666;116.651643, 39.95228;116.647209, 39.987213;116.638861, 39.990305;116.646185, 39.996931;116.650368, 39.996265;116.646319, 40.006356");

mapMap.put("110105_chaoyang2_bj", "116.585946, 40.108489;116.580796, 40.114407;116.588382, 40.070354;116.589296, 40.07539;116.594003, 40.075123;116.599209, 40.04918;116.608066, 40.04793;116.611527, 40.05258;116.606683, 40.056851;116.610901, 40.057342;116.613176, 40.052734;116.615113, 40.06689;116.610807, 40.099895;116.605559, 40.10916;116.606215, 40.099813;116.587888, 40.09704;116.585946, 40.108489");

mapMap.put("110106_fengtai_bj","116.256504, 39.901832;116.247435, 39.900952;116.240275, 39.897855;116.240775, 39.895463;116.234411, 39.89479;116.234483, 39.889278;116.226217, 39.887366;116.224868, 39.882421;116.217259, 39.884172;116.218901, 39.880592;116.214799, 39.880066;116.206242, 39.889109;116.190577, 39.886765;116.173838, 39.895537;116.169036, 39.893538;116.161725, 39.895637;116.157161, 39.890453;116.146718, 39.890631;116.117558, 39.878682;116.11003, 39.879466;116.107895, 39.873363;116.102273, 39.874836;116.093556, 39.871985;116.084896, 39.876347;116.076807, 39.874628;116.073513, 39.872018;116.076684, 39.859606;116.071776, 39.860556;116.06999, 39.857209;116.066515, 39.85984;116.060452, 39.852314;116.064312, 39.848731;116.078763, 39.844895;116.089112, 39.833674;116.091293, 39.838849;116.090487, 39.832231;116.093187, 39.836506;116.095644, 39.835118;116.0946, 39.82529;116.090663, 39.825264;116.095381, 39.823038;116.091005, 39.818077;116.09173, 39.801737;116.097615, 39.788216;116.107431, 39.78888;116.108873, 39.792459;116.110369, 39.78959;116.110568, 39.792665;116.115718, 39.792642;116.115005, 39.795307;116.121125, 39.795265;116.122399, 39.797641;116.126981, 39.796911;116.127687, 39.791932;116.138923, 39.790363;116.137427, 39.788825;116.141971, 39.78709;116.131317, 39.783576;116.129824, 39.786123;116.123971, 39.780286;116.127152, 39.779628;116.127281, 39.776305;116.124423, 39.777118;116.12792, 39.768454;116.128509, 39.772494;116.131038, 39.768706;116.144619, 39.774184;116.145812, 39.770833;116.153328, 39.77254;116.152942, 39.776116;116.166792, 39.77348;116.172405, 39.780018;116.175093, 39.791002;116.190438, 39.790366;116.190902, 39.786516;116.194623, 39.788074;116.206846, 39.783949;116.208419, 39.805525;116.215719, 39.812206;116.214865, 39.817114;116.222484, 39.822667;116.220145, 39.829412;116.234878, 39.831177;116.247313, 39.821725;116.25883, 39.799165;116.265202, 39.803607;116.268574, 39.799022;116.29357, 39.805137;116.29561, 39.8028;116.300383, 39.80406;116.30255, 39.801777;116.297442, 39.799567;116.299128, 39.79707;116.304814, 39.797705;116.313532, 39.776071;116.316446, 39.775618;116.324301, 39.789189;116.328358, 39.789516;116.329653, 39.803931;116.333171, 39.803811;116.334793, 39.80701;116.346976, 39.807642;116.350569, 39.81346;116.36231, 39.811396;116.363526, 39.806492;116.373788, 39.805579;116.373981, 39.790829;116.385112, 39.791699;116.385589, 39.784822;116.397113, 39.787789;116.398612, 39.771406;116.404908, 39.772039;116.402776, 39.793023;116.426144, 39.793452;116.428264, 39.798983;116.435831, 39.800279;116.435096, 39.80971;116.430595, 39.80969;116.42899, 39.815918;116.424621, 39.81538;116.421719, 39.818672;116.416209, 39.817351;116.416286, 39.8225;116.425879, 39.821073;116.424287, 39.828389;116.420636, 39.830117;116.422414, 39.835591;116.426128, 39.832878;116.431615, 39.838691;116.437902, 39.83852;116.442984, 39.847021;116.447524, 39.845285;116.453684, 39.847044;116.453186, 39.854005;116.46466, 39.856262;116.467119, 39.854165;116.471752, 39.856764;116.472532, 39.861387;116.45754, 39.868812;116.451866, 39.868396;116.450089, 39.878013;116.419873, 39.878168;116.423156, 39.873252;116.420505, 39.865369;116.402273, 39.865175;116.397662, 39.871581;116.387944, 39.87347;116.3877, 39.877337;116.358673, 39.87466;116.356864, 39.879846;116.350725, 39.879437;116.349776, 39.881578;116.327912, 39.880918;116.332493, 39.902619;116.319901, 39.902635;116.310609, 39.898681;116.313912, 39.896884;116.305624, 39.895923;116.302701, 39.892937;116.301619, 39.90306;116.256504, 39.901832");

mapMap.put("110115_daxing_bj","116.381464, 39.791614;116.373981, 39.790829;116.373788, 39.805579;116.363526, 39.806492;116.36231, 39.811396;116.350569, 39.81346;116.346976, 39.807642;116.334793, 39.80701;116.333171, 39.803811;116.329653, 39.803931;116.328358, 39.789516;116.324301, 39.789189;116.316446, 39.775618;116.311058, 39.778993;116.304814, 39.797705;116.299128, 39.79707;116.297442, 39.799567;116.30255, 39.801777;116.300383, 39.80406;116.29561, 39.8028;116.29357, 39.805137;116.268574, 39.799022;116.265202, 39.803607;116.257664, 39.798946;116.261125, 39.769293;116.2589, 39.75605;116.250508, 39.747446;116.254304, 39.736976;116.251844, 39.724818;116.236021, 39.713468;116.236438, 39.704961;116.232517, 39.700565;116.235101, 39.695099;116.228525, 39.688562;116.233061, 39.681297;116.223666, 39.657541;116.222425, 39.647618;116.227166, 39.632502;116.225057, 39.614221;116.233313, 39.599622;116.227915, 39.584526;116.245105, 39.556047;116.250727, 39.552413;116.251984, 39.521643;116.258316, 39.516687;116.261105, 39.50889;116.282528, 39.501232;116.285552, 39.497833;116.310498, 39.493163;116.325583, 39.480138;116.332267, 39.468477;116.349029, 39.458592;116.351422, 39.453985;116.371229, 39.453886;116.372291, 39.457582;116.383324, 39.459122;116.394203, 39.456088;116.399532, 39.458963;116.425853, 39.454582;116.429217, 39.449554;116.439309, 39.445717;116.457641, 39.452528;116.462321, 39.46309;116.456546, 39.468347;116.454885, 39.482176;116.44748, 39.492161;116.427339, 39.502878;116.413425, 39.529626;116.425291, 39.528906;116.432281, 39.522346;116.441316, 39.522359;116.446318, 39.524486;116.449053, 39.535027;116.483584, 39.545471;116.484288, 39.555351;116.51236, 39.561538;116.533535, 39.579411;116.530868, 39.603113;116.561077, 39.604456;116.575397, 39.60992;116.574035, 39.615511;116.578352, 39.625892;116.585801, 39.626099;116.585933, 39.629159;116.608882, 39.627922;116.60958, 39.617675;116.618347, 39.614326;116.63956, 39.598435;116.649575, 39.602253;116.65341, 39.612935;116.701393, 39.602494;116.710341, 39.59463;116.735224, 39.599557;116.712803, 39.615639;116.712707, 39.620278;116.732272, 39.622677;116.729067, 39.629092;116.733155, 39.64067;116.72791, 39.643192;116.719037, 39.642614;116.715298, 39.646085;116.70976, 39.663174;116.710236, 39.679719;116.693069, 39.682482;116.675993, 39.68148;116.673469, 39.685993;116.677234, 39.686566;116.676741, 39.693578;116.670488, 39.691879;116.659802, 39.694028;116.652955, 39.705726;116.655871, 39.709855;116.660465, 39.708853;116.660878, 39.713958;116.651277, 39.716906;116.645859, 39.722983;116.645438, 39.730645;116.637961, 39.730287;116.634223, 39.734718;116.625531, 39.732035;116.62283, 39.727838;116.619619, 39.728867;116.612454, 39.724849;116.613074, 39.718513;116.607379, 39.719882;116.607428, 39.715263;116.581503, 39.715533;116.579596, 39.720216;116.55286, 39.72121;116.545338, 39.719243;116.533708, 39.723595;116.535887, 39.726998;116.541676, 39.726222;116.539627, 39.744757;116.546568, 39.74421;116.547969, 39.746464;116.547755, 39.748454;116.534634, 39.7487;116.54035, 39.756615;116.525359, 39.756949;116.529939, 39.766364;116.528427, 39.773925;116.534219, 39.768421;116.547066, 39.767162;116.550335, 39.76952;116.545704, 39.774366;116.554858, 39.775712;116.551247, 39.779949;116.544078, 39.776178;116.537508, 39.78367;116.547537, 39.787008;116.536327, 39.798533;116.543233, 39.802877;116.540702, 39.806449;116.548019, 39.809831;116.545414, 39.820736;116.541229, 39.823766;116.546729, 39.829532;116.532967, 39.832723;116.532584, 39.83575;116.520692, 39.835145;116.515981, 39.829544;116.516491, 39.822714;116.50154, 39.821867;116.501637, 39.824196;116.496314, 39.824938;116.491975, 39.818782;116.480899, 39.815293;116.475494, 39.82014;116.469959, 39.819999;116.460356, 39.828481;116.450671, 39.826127;116.446775, 39.835831;116.427606, 39.836076;116.426128, 39.832878;116.422414, 39.835591;116.420636, 39.830117;116.424287, 39.828389;116.425879, 39.821073;116.416286, 39.8225;116.416209, 39.817351;116.427931, 39.816515;116.430595, 39.80969;116.435096, 39.80971;116.434512, 39.7985;116.428264, 39.798983;116.426144, 39.793452;116.402776, 39.793023;116.404908, 39.772039;116.398612, 39.771406;116.397113, 39.787789;116.385589, 39.784822;116.385112, 39.791699;116.381464, 39.791614");

mapMap.put("110101_dongcheng_bj","116.442707, 39.908962;116.440535, 39.934234;116.45024, 39.93446;116.454134, 39.950601;116.44497, 39.952238;116.446594, 39.957907;116.43663, 39.956121;116.437014, 39.965433;116.431655, 39.96543;116.431673, 39.968272;116.420495, 39.968249;116.414144, 39.979655;116.414482, 39.96835;116.396364, 39.969351;116.393613, 39.966062;116.393758, 39.963015;116.399881, 39.96342;116.402897, 39.934735;116.405809, 39.93423;116.406024, 39.929754;116.397306, 39.928574;116.398119, 39.91388;116.402086, 39.914015;116.404366, 39.905116;116.404872, 39.878463;116.3877, 39.877337;116.387944, 39.87347;116.397662, 39.871581;116.401907, 39.865188;116.420505, 39.865369;116.423156, 39.873252;116.419873, 39.878168;116.449648, 39.877668;116.450797, 39.894688;116.45749, 39.895901;116.453665, 39.900457;116.455132, 39.908642;116.442707, 39.908962");

mapMap.put("110102_xicheng_bj","116.40249, 39.906514;116.402086, 39.914015;116.398119, 39.91388;116.397306, 39.928574;116.406024, 39.929754;116.405809, 39.93423;116.402897, 39.934735;116.399881, 39.96342;116.393758, 39.963015;116.393613, 39.966062;116.400581, 39.979365;116.387785, 39.978807;116.389667, 39.974264;116.376901, 39.973511;116.378502, 39.954835;116.362998, 39.949865;116.362253, 39.957521;116.358141, 39.956251;116.357253, 39.948746;116.334715, 39.948162;116.339702, 39.943468;116.342505, 39.909573;116.341152, 39.902656;116.332493, 39.902619;116.327789, 39.880976;116.349776, 39.881578;116.350725, 39.879437;116.356864, 39.879846;116.358673, 39.87466;116.404872, 39.878463;116.40249, 39.906514");

mapMap.put("110109_metougou_bj","115.974442, 40.089054;115.966852, 40.099507;115.970185, 40.108082;115.963911, 40.108494;115.962661, 40.103405;115.951767, 40.110934;115.955111, 40.114708;115.945038, 40.128915;115.928728, 40.142455;115.914174, 40.147163;115.908386, 40.14421;115.907548, 40.14707;115.887284, 40.147657;115.869017, 40.157034;115.859884, 40.154416;115.813286, 40.159262;115.800328, 40.174545;115.796151, 40.18475;115.784388, 40.183652;115.779416, 40.182207;115.774742, 40.172296;115.763447, 40.169641;115.756972, 40.159365;115.761798, 40.150631;115.754547, 40.140404;115.731648, 40.134635;115.693943, 40.144939;115.661502, 40.133591;115.657429, 40.123404;115.618554, 40.122766;115.61325, 40.120591;115.61212, 40.109824;115.607844, 40.10545;115.610083, 40.099374;115.587407, 40.101838;115.582502, 40.108779;115.559105, 40.087639;115.549021, 40.082009;115.534603, 40.082349;115.516148, 40.071128;115.513656, 40.063479;115.49734, 40.056354;115.479551, 40.039915;115.462648, 40.033699;115.459211, 40.029466;115.454533, 39.999598;115.450072, 40.000977;115.440883, 39.995542;115.43257, 39.985449;115.430282, 39.961629;115.433244, 39.956319;115.448393, 39.958579;115.482655, 39.943021;115.496416, 39.927586;115.513516, 39.919226;115.527724, 39.907377;115.529448, 39.904259;115.51576, 39.889913;115.517443, 39.886911;115.535997, 39.882121;115.530323, 39.874847;115.527983, 39.86375;115.517405, 39.850512;115.532551, 39.836925;115.551154, 39.832822;115.575643, 39.819741;115.590698, 39.822091;115.600735, 39.829583;115.62907, 39.875319;115.636125, 39.879196;115.643584, 39.878649;115.662994, 39.891128;115.682465, 39.894561;115.696583, 39.909211;115.739215, 39.915328;115.754994, 39.925561;115.774026, 39.931911;115.77817, 39.92848;115.804268, 39.929135;115.813436, 39.92593;115.820309, 39.919903;115.832261, 39.917719;115.83689, 39.909022;115.844006, 39.908264;115.851834, 39.902862;115.872773, 39.910963;115.878554, 39.921229;115.882286, 39.92;115.896339, 39.925034;115.907931, 39.921095;115.948718, 39.923302;115.952103, 39.908885;115.943066, 39.905376;115.929017, 39.892363;115.932384, 39.882133;115.953852, 39.879176;115.960086, 39.873465;115.966835, 39.873533;115.974349, 39.87821;115.976027, 39.875019;115.982282, 39.874661;115.987263, 39.879812;116.003291, 39.881523;115.999733, 39.873148;115.993512, 39.873087;115.995596, 39.867678;115.99021, 39.856785;115.997036, 39.846353;116.007626, 39.850279;116.01222, 39.855575;116.022505, 39.855664;116.024996, 39.84645;116.038246, 39.852055;116.060452, 39.852314;116.066515, 39.85984;116.06999, 39.857209;116.071776, 39.860556;116.076684, 39.859606;116.073513, 39.872018;116.076807, 39.874628;116.084896, 39.876347;116.093556, 39.871985;116.102273, 39.874836;116.107895, 39.873363;116.11003, 39.879466;116.117558, 39.878682;116.146718, 39.890631;116.157161, 39.890453;116.160624, 39.895539;116.169036, 39.893538;116.173838, 39.895537;116.157974, 39.908798;116.14728, 39.928622;116.135277, 39.93273;116.131339, 39.940888;116.126733, 39.938261;116.118878, 39.948913;116.120227, 39.954072;116.12669, 39.956051;116.121463, 39.963716;116.127774, 39.967015;116.129973, 39.973315;116.123488, 39.977956;116.120457, 39.987295;116.125963, 39.992095;116.151628, 39.995892;116.167804, 40.006381;116.179676, 40.007247;116.182703, 40.012638;116.164319, 40.027556;116.155357, 40.028917;116.144993, 40.035981;116.107208, 40.039888;116.092141, 40.037016;116.085314, 40.039136;116.075555, 40.058363;116.078539, 40.068341;116.072308, 40.073843;116.071468, 40.079457;116.063413, 40.083336;116.056474, 40.092332;116.043644, 40.091152;116.041152, 40.08699;116.037831, 40.088883;116.029549, 40.082715;115.996854, 40.090471;115.989381, 40.090099;115.974803, 40.082563;115.974442, 40.089054");

mapMap.put("110107_shijinshan_bj","116.25948, 39.923721;116.259497, 39.927929;116.238498, 39.922;116.213391, 39.923814;116.213491, 39.930676;116.222384, 39.933733;116.220405, 39.939699;116.225593, 39.94995;116.209915, 39.962145;116.208046, 39.967038;116.192751, 39.976711;116.191454, 39.992044;116.185431, 39.994544;116.185043, 39.988499;116.175724, 39.983666;116.174553, 39.993657;116.16467, 39.990209;116.157626, 39.999989;116.150944, 39.995682;116.125963, 39.992095;116.120457, 39.987295;116.123488, 39.977956;116.129973, 39.973315;116.127774, 39.967015;116.121463, 39.963716;116.126675, 39.956231;116.120227, 39.954072;116.118878, 39.948913;116.123569, 39.941159;116.126733, 39.938261;116.131339, 39.940888;116.135277, 39.93273;116.14728, 39.928622;116.162003, 39.903971;116.190577, 39.886765;116.206242, 39.889109;116.214799, 39.880066;116.218901, 39.880592;116.217259, 39.884172;116.224868, 39.882421;116.226217, 39.887366;116.234483, 39.889278;116.234411, 39.89479;116.240775, 39.895463;116.244157, 39.899681;116.264751, 39.901361;116.265713, 39.903332;116.25952, 39.903235;116.259455, 39.921458;116.25575, 39.921998;116.25948, 39.923721");

mapMap.put("110111_fangshan_bj","116.131546, 39.768804;116.128509, 39.772494;116.12792, 39.768454;116.124423, 39.777118;116.127281, 39.776305;116.127152, 39.779628;116.123971, 39.780286;116.129824, 39.786123;116.131317, 39.783576;116.141971, 39.78709;116.137819, 39.790999;116.127687, 39.791932;116.126981, 39.796911;116.122399, 39.797641;116.121125, 39.795265;116.115005, 39.795307;116.115718, 39.792642;116.110568, 39.792665;116.110369, 39.78959;116.108873, 39.792459;116.107431, 39.78888;116.097615, 39.788216;116.095629, 39.797104;116.092023, 39.799239;116.091005, 39.818077;116.095381, 39.823038;116.090663, 39.825264;116.0946, 39.82529;116.095644, 39.835118;116.093187, 39.836506;116.090487, 39.832231;116.091293, 39.838849;116.089112, 39.833674;116.078763, 39.844895;116.054574, 39.853172;116.038246, 39.852055;116.024996, 39.84645;116.022505, 39.855664;116.01222, 39.855575;116.007626, 39.850279;115.994371, 39.847549;115.99021, 39.856785;115.995596, 39.867678;115.993512, 39.873087;115.999733, 39.873148;116.003291, 39.881523;115.987263, 39.879812;115.982282, 39.874661;115.976027, 39.875019;115.974349, 39.87821;115.966835, 39.873533;115.960086, 39.873465;115.953852, 39.879176;115.932384, 39.882133;115.929017, 39.892363;115.943066, 39.905376;115.952103, 39.908885;115.948718, 39.923302;115.907931, 39.921095;115.896339, 39.925034;115.882286, 39.92;115.878554, 39.921229;115.872773, 39.910963;115.851834, 39.902862;115.844006, 39.908264;115.83689, 39.909022;115.832261, 39.917719;115.820309, 39.919903;115.813436, 39.92593;115.804268, 39.929135;115.77817, 39.92848;115.774026, 39.931911;115.754994, 39.925561;115.739215, 39.915328;115.696583, 39.909211;115.682465, 39.894561;115.662994, 39.891128;115.643584, 39.878649;115.636125, 39.879196;115.62907, 39.875319;115.600735, 39.829583;115.590698, 39.822091;115.575643, 39.819741;115.57307, 39.811205;115.558665, 39.801297;115.550738, 39.802418;115.519505, 39.794138;115.513357, 39.788984;115.498847, 39.802132;115.490144, 39.804462;115.466597, 39.789538;115.446208, 39.789696;115.443016, 39.782414;115.4537, 39.755596;115.475508, 39.746881;115.489207, 39.748202;115.498946, 39.744467;115.494841, 39.737957;115.498926, 39.707306;115.506367, 39.69717;115.495458, 39.687104;115.49821, 39.674617;115.485294, 39.661638;115.485203, 39.656314;115.513505, 39.65776;115.522393, 39.648146;115.528856, 39.645963;115.525992, 39.618943;115.539326, 39.617612;115.552049, 39.625147;115.575098, 39.604458;115.580881, 39.602542;115.57802, 39.598252;115.592675, 39.595736;115.606081, 39.605443;115.624996, 39.609891;115.640839, 39.603874;115.640124, 39.60979;115.648167, 39.609304;115.650382, 39.605047;115.664199, 39.607415;115.677061, 39.614593;115.687469, 39.602859;115.6977, 39.597042;115.700636, 39.58446;115.698616, 39.572297;115.724345, 39.567191;115.733957, 39.55403;115.744881, 39.549176;115.750469, 39.530171;115.758146, 39.518671;115.769417, 39.52097;115.774597, 39.513389;115.77468, 39.521173;115.803517, 39.516067;115.833646, 39.518631;115.834908, 39.547445;115.852755, 39.549069;115.853237, 39.557078;115.859607, 39.558462;115.872222, 39.553433;115.893877, 39.55684;115.893426, 39.562061;115.89959, 39.562647;115.900299, 39.57279;115.914709, 39.575423;115.918661, 39.579418;115.92096, 39.5894;115.91514, 39.59102;115.913687, 39.602606;115.919764, 39.605797;115.927621, 39.603682;115.927525, 39.600123;115.93517, 39.59979;115.936548, 39.590961;115.950787, 39.582123;115.956732, 39.572271;115.964618, 39.57154;115.983172, 39.576154;115.983491, 39.600071;115.991092, 39.600501;115.998195, 39.599442;115.999942, 39.589146;116.003687, 39.588679;116.001695, 39.582687;116.014635, 39.583917;116.022136, 39.593854;116.043035, 39.57876;116.07333, 39.577713;116.110362, 39.580779;116.111984, 39.576795;116.153802, 39.575452;116.16104, 39.586423;116.200314, 39.588234;116.207352, 39.58384;116.227953, 39.584402;116.233313, 39.599622;116.225057, 39.614221;116.227166, 39.632502;116.222425, 39.647618;116.233061, 39.681297;116.228525, 39.688562;116.235101, 39.695099;116.232517, 39.700565;116.236438, 39.704961;116.236021, 39.713468;116.251844, 39.724818;116.254304, 39.736976;116.250508, 39.747446;116.260067, 39.760394;116.260501, 39.785006;116.25476, 39.811064;116.240731, 39.828792;116.234878, 39.831177;116.220145, 39.829412;116.222484, 39.822667;116.214865, 39.817114;116.215719, 39.812206;116.208419, 39.805525;116.206846, 39.783949;116.194623, 39.788074;116.190902, 39.786516;116.190438, 39.790366;116.175093, 39.791002;116.172405, 39.780018;116.166792, 39.77348;116.152942, 39.776116;116.153328, 39.77254;116.145812, 39.770833;116.144619, 39.774184;116.131546, 39.768804");

mapMap.put("110112_tongzhou_bj","116.633144, 40.01246;116.631801, 40.010677;116.637789, 40.008115;116.641899, 40.010457;116.650181, 40.000167;116.650368, 39.996265;116.646185, 39.996931;116.638861, 39.990305;116.647209, 39.987213;116.651643, 39.95228;116.639218, 39.956666;116.636731, 39.95343;116.639874, 39.946202;116.635922, 39.938225;116.631738, 39.936723;116.637114, 39.9281;116.627765, 39.926694;116.628445, 39.908134;116.62432, 39.905414;116.626103, 39.903931;116.621102, 39.903546;116.622549, 39.895733;116.634324, 39.896696;116.63635, 39.891266;116.626724, 39.874698;116.633199, 39.866868;116.619228, 39.856115;116.611039, 39.855961;116.613401, 39.851335;116.608073, 39.846815;116.606644, 39.831094;116.589616, 39.829271;116.584308, 39.836326;116.563702, 39.840778;116.550184, 39.840563;116.547877, 39.835547;116.540075, 39.838702;116.544843, 39.834524;116.541056, 39.829578;116.546729, 39.829532;116.541229, 39.823766;116.545414, 39.820736;116.548019, 39.809831;116.540702, 39.806449;116.543233, 39.802877;116.536327, 39.798533;116.547537, 39.787008;116.537508, 39.78367;116.544078, 39.776178;116.551247, 39.779949;116.554858, 39.775712;116.545704, 39.774366;116.550335, 39.76952;116.547066, 39.767162;116.534219, 39.768421;116.528427, 39.773925;116.529939, 39.766364;116.525359, 39.756949;116.54035, 39.756615;116.534634, 39.7487;116.547755, 39.748454;116.547969, 39.746464;116.546568, 39.74421;116.539627, 39.744757;116.541676, 39.726222;116.535887, 39.726998;116.533708, 39.723595;116.545338, 39.719243;116.55286, 39.72121;116.579596, 39.720216;116.581503, 39.715533;116.607428, 39.715263;116.607379, 39.719882;116.613074, 39.718513;116.612454, 39.724849;116.619619, 39.728867;116.62283, 39.727838;116.625531, 39.732035;116.634223, 39.734718;116.637961, 39.730287;116.645438, 39.730645;116.645859, 39.722983;116.651277, 39.716906;116.660878, 39.713958;116.660465, 39.708853;116.655871, 39.709855;116.652955, 39.705726;116.659802, 39.694028;116.670488, 39.691879;116.676741, 39.693578;116.677234, 39.686566;116.673469, 39.685993;116.673474, 39.683121;116.710236, 39.679719;116.711539, 39.655313;116.719037, 39.642614;116.72791, 39.643192;116.733155, 39.64067;116.729067, 39.629092;116.732272, 39.622677;116.770397, 39.621126;116.781618, 39.611405;116.786732, 39.600158;116.794329, 39.602738;116.792869, 39.609761;116.798272, 39.610925;116.798806, 39.616774;116.835365, 39.623318;116.847796, 39.629981;116.837352, 39.642124;116.837919, 39.648702;116.857622, 39.661133;116.858348, 39.670383;116.862345, 39.673679;116.890055, 39.681869;116.899041, 39.67916;116.913065, 39.682652;116.912129, 39.692889;116.895367, 39.709769;116.889375, 39.722799;116.896226, 39.731878;116.905895, 39.732316;116.918338, 39.737685;116.915713, 39.755851;116.905956, 39.765245;116.917067, 39.769397;116.926504, 39.785708;116.954922, 39.787312;116.958916, 39.788953;116.957802, 39.793369;116.947889, 39.802187;116.942966, 39.801267;116.941163, 39.807497;116.944047, 39.811272;116.934897, 39.8194;116.934864, 39.836027;116.921582, 39.8546;116.914208, 39.858458;116.910419, 39.856768;116.908704, 39.849417;116.914744, 39.836888;116.906097, 39.838156;116.892248, 39.85166;116.865868, 39.864936;116.858785, 39.876295;116.826594, 39.895721;116.810909, 39.894968;116.798184, 39.891052;116.790891, 39.904278;116.787847, 39.924116;116.790425, 39.947352;116.784383, 39.957745;116.785533, 39.962352;116.781118, 39.966493;116.778104, 39.962551;116.768888, 39.965436;116.766651, 39.963757;116.763082, 39.967772;116.774479, 39.991807;116.782163, 39.999264;116.781842, 40.009146;116.778172, 40.013805;116.779789, 40.021726;116.761005, 40.02195;116.749986, 40.033641;116.739235, 40.031379;116.73945, 40.028032;116.731798, 40.029961;116.726535, 40.025537;116.716783, 40.031842;116.704244, 40.0209;116.693816, 40.021922;116.697176, 40.013753;116.693421, 40.013468;116.690688, 40.019563;116.685256, 40.018524;116.684283, 40.020902;116.674995, 40.020772;116.669176, 40.024935;116.664997, 40.023761;116.667654, 40.027436;116.660131, 40.025943;116.656931, 40.032025;116.642838, 40.026007;116.641375, 40.029991;116.634328, 40.026897;116.627814, 40.029076;116.627362, 40.033818;116.623131, 40.033746;116.623686, 40.037569;116.618833, 40.036731;116.612108, 40.024492;116.604209, 40.021835;116.625897, 40.018101;116.634344, 40.014032;116.633144, 40.01246");

mapMap.put("110113_shunyi1_bj","116.974568, 40.172625;116.970852, 40.177718;116.967128, 40.177014;116.968673, 40.182828;116.958115, 40.181751;116.954093, 40.185111;116.954779, 40.198282;116.948056, 40.200421;116.945795, 40.198124;116.93925, 40.208364;116.936745, 40.216152;116.946821, 40.218353;116.943726, 40.234529;116.937262, 40.235942;116.928113, 40.226902;116.918252, 40.227239;116.913749, 40.229531;116.911751, 40.235913;116.900951, 40.238846;116.907313, 40.244683;116.899967, 40.246834;116.892234, 40.262475;116.881071, 40.274477;116.882844, 40.281232;116.87868, 40.285675;116.877413, 40.297011;116.864002, 40.299136;116.857106, 40.315675;116.852973, 40.318151;116.843873, 40.316714;116.83559, 40.311502;116.830636, 40.291992;116.825103, 40.290767;116.828254, 40.287978;116.818883, 40.288456;116.817826, 40.295504;116.813371, 40.293192;116.804281, 40.296565;116.798597, 40.293611;116.795572, 40.296397;116.790048, 40.279782;116.785965, 40.280989;116.777626, 40.273432;116.774699, 40.276646;116.771471, 40.274564;116.765116, 40.277309;116.761885, 40.281302;116.745041, 40.284704;116.74475, 40.290212;116.718363, 40.262353;116.711019, 40.263345;116.709872, 40.255427;116.703216, 40.254942;116.701766, 40.252392;116.703858, 40.248398;116.696202, 40.246958;116.690525, 40.240519;116.684627, 40.240864;116.682426, 40.24588;116.680819, 40.241481;116.677108, 40.241604;116.67744, 40.250622;116.680856, 40.251771;116.673409, 40.268211;116.663986, 40.268644;116.648873, 40.263408;116.648451, 40.265961;116.64315, 40.26475;116.639846, 40.267824;116.633958, 40.26777;116.628967, 40.256555;116.616349, 40.258083;116.613254, 40.256269;116.605674, 40.270313;116.601111, 40.270154;116.595242, 40.275048;116.590112, 40.272591;116.576676, 40.275301;116.571222, 40.280137;116.572688, 40.283639;116.559623, 40.280272;116.542435, 40.2833;116.545094, 40.274977;116.54288, 40.268986;116.53326, 40.267891;116.530283, 40.271919;116.529654, 40.263733;116.526136, 40.26595;116.523649, 40.262344;116.513487, 40.264792;116.507706, 40.25484;116.502322, 40.257619;116.488313, 40.252547;116.4907, 40.228885;116.486859, 40.230494;116.480214, 40.226625;116.478664, 40.211429;116.494696, 40.196216;116.486349, 40.166616;116.498085, 40.165392;116.496164, 40.158723;116.485488, 40.151475;116.491648, 40.142917;116.499064, 40.115263;116.493272, 40.10509;116.480136, 40.103338;116.471498, 40.098686;116.479918, 40.091193;116.506144, 40.086251;116.518432, 40.077255;116.53681, 40.076275;116.550099, 40.065421;116.554677, 40.068609;116.558534, 40.059865;116.552346, 40.056249;116.554838, 40.05348;116.583812, 40.035202;116.580879, 40.038842;116.585263, 40.038949;116.583423, 40.03384;116.604209, 40.021835;116.612108, 40.024492;116.618833, 40.036731;116.623686, 40.037569;116.627814, 40.029076;116.634328, 40.026897;116.641375, 40.029991;116.642838, 40.026007;116.656931, 40.032025;116.660131, 40.025943;116.667654, 40.027436;116.664997, 40.023761;116.669176, 40.024935;116.674995, 40.020772;116.684283, 40.020902;116.685256, 40.018524;116.690688, 40.019563;116.693421, 40.013468;116.697176, 40.013753;116.693816, 40.021922;116.704244, 40.0209;116.716783, 40.031842;116.726535, 40.025537;116.731798, 40.029961;116.73945, 40.028032;116.739235, 40.031379;116.749986, 40.033641;116.761005, 40.02195;116.779789, 40.021726;116.78286, 40.030961;116.79169, 40.04063;116.808115, 40.035326;116.812623, 40.039475;116.829879, 40.034153;116.830104, 40.053132;116.856134, 40.058213;116.856655, 40.06071;116.862424, 40.059915;116.879125, 40.046781;116.887003, 40.052001;116.897445, 40.05203;116.91645, 40.058756;116.921103, 40.058581;116.924633, 40.052961;116.929155, 40.052608;116.937167, 40.060357;116.945078, 40.053844;116.949071, 40.054797;116.953609, 40.047448;116.970747, 40.058862;116.969598, 40.068388;116.974971, 40.070695;116.979314, 40.069023;116.982206, 40.07275;116.986756, 40.071552;116.990826, 40.081689;116.985784, 40.083256;116.989014, 40.092185;116.986115, 40.096129;116.990047, 40.096512;116.990042, 40.099707;116.975142, 40.10806;116.977411, 40.111934;116.980515, 40.110877;116.982775, 40.119378;116.977599, 40.122952;116.977993, 40.131576;116.972607, 40.135304;116.975886, 40.146855;116.982682, 40.156876;116.985784, 40.156932;116.978738, 40.162229;116.974568, 40.172625");

mapMap.put("110113_shunyi2_bj","116.611518, 40.089243;116.614595, 40.060438;116.613176, 40.052734;116.610901, 40.057342;116.606683, 40.056851;116.611527, 40.05258;116.60502, 40.047993;116.599209, 40.04918;116.594003, 40.075123;116.589296, 40.07539;116.588382, 40.070354;116.580796, 40.114407;116.585946, 40.108489;116.587888, 40.09704;116.606215, 40.099813;116.607309, 40.108764;116.611518, 40.089243");

mapMap.put("110114_changpin_bj","115.883057, 40.151437;115.887284, 40.147657;115.907548, 40.14707;115.908386, 40.14421;115.914174, 40.147163;115.928728, 40.142455;115.945038, 40.128915;115.955111, 40.114708;115.951767, 40.110934;115.962661, 40.103405;115.963911, 40.108494;115.970185, 40.108082;115.966852, 40.099507;115.974382, 40.090151;115.974803, 40.082563;115.989381, 40.090099;115.996854, 40.090471;116.029549, 40.082715;116.037831, 40.088883;116.041152, 40.08699;116.043644, 40.091152;116.056474, 40.092332;116.063592, 40.103311;116.077221, 40.111653;116.081711, 40.121954;116.085391, 40.121436;116.092164, 40.126375;116.10376, 40.127436;116.108368, 40.122302;116.113567, 40.124048;116.120823, 40.121343;116.137391, 40.121312;116.141183, 40.127954;116.177839, 40.130436;116.174848, 40.134699;116.179721, 40.13387;116.176745, 40.143174;116.171412, 40.146314;116.176031, 40.145915;116.176081, 40.148902;116.181289, 40.148843;116.188151, 40.153554;116.190154, 40.164269;116.197998, 40.161694;116.201798, 40.166439;116.209906, 40.167109;116.214447, 40.146781;116.223719, 40.147867;116.239751, 40.142021;116.254817, 40.141222;116.251428, 40.118582;116.246619, 40.114369;116.263369, 40.110845;116.264818, 40.118596;116.269771, 40.117429;116.271527, 40.110243;116.265798, 40.10745;116.280513, 40.097876;116.286401, 40.086145;116.296905, 40.089609;116.310228, 40.066449;116.313008, 40.068525;116.325006, 40.067249;116.335378, 40.06064;116.34552, 40.064731;116.346675, 40.060861;116.349949, 40.061113;116.353507, 40.069364;116.376853, 40.075298;116.379795, 40.071643;116.386902, 40.07159;116.389271, 40.067308;116.378836, 40.063911;116.379802, 40.060106;116.373823, 40.058809;116.376082, 40.05295;116.383805, 40.051522;116.383996, 40.049258;116.399738, 40.047768;116.40177, 40.042853;116.413296, 40.046726;116.415819, 40.06182;116.431517, 40.066402;116.431355, 40.070731;116.455298, 40.064534;116.466889, 40.067011;116.466416, 40.080005;116.47402, 40.091723;116.471647, 40.099089;116.480136, 40.103338;116.487773, 40.102667;116.497395, 40.108927;116.498913, 40.117381;116.485426, 40.153289;116.496164, 40.158723;116.498085, 40.165392;116.486349, 40.166616;116.494696, 40.196216;116.491168, 40.202283;116.478804, 40.210692;116.480214, 40.226625;116.486859, 40.230494;116.4907, 40.228885;116.488313, 40.252547;116.502322, 40.257619;116.507706, 40.25484;116.51162, 40.263267;116.516455, 40.265129;116.494839, 40.272556;116.493572, 40.281946;116.488395, 40.28536;116.480531, 40.285397;116.469937, 40.292329;116.458282, 40.290749;116.457636, 40.303363;116.452201, 40.306928;116.464441, 40.321834;116.452182, 40.328403;116.447157, 40.337971;116.442769, 40.334446;116.423988, 40.335352;116.41422, 40.341222;116.402071, 40.340693;116.396981, 40.344148;116.388953, 40.344325;116.380551, 40.342802;116.382056, 40.337901;116.372839, 40.336757;116.376281, 40.348597;116.37201, 40.353735;116.376726, 40.361695;116.36827, 40.364201;116.355849, 40.361166;116.360343, 40.368736;116.36621, 40.370219;116.364937, 40.372552;116.361203, 40.376377;116.3527, 40.377408;116.332876, 40.391342;116.321341, 40.39417;116.303827, 40.390088;116.301689, 40.397886;116.296986, 40.398024;116.299213, 40.387402;116.293387, 40.380608;116.280782, 40.387389;116.26457, 40.387183;116.260403, 40.380147;116.257195, 40.380038;116.252741, 40.384948;116.251093, 40.382363;116.24065, 40.38042;116.234725, 40.386218;116.221207, 40.38673;116.214762, 40.379096;116.199505, 40.377259;116.199092, 40.375032;116.189468, 40.372643;116.186534, 40.375879;116.176307, 40.370733;116.159665, 40.367393;116.155746, 40.356247;116.165206, 40.347129;116.160332, 40.340202;116.1552, 40.340236;116.155754, 40.352516;116.146032, 40.351712;116.147909, 40.327823;116.151431, 40.323087;116.151021, 40.319726;116.144401, 40.316807;116.130551, 40.316488;116.118115, 40.334339;116.093983, 40.334173;116.090636, 40.340597;116.084567, 40.343559;116.066734, 40.340911;116.060519, 40.330885;116.062405, 40.323996;116.054598, 40.319981;116.047756, 40.321124;116.045314, 40.316911;116.041366, 40.316898;116.035337, 40.330418;116.023531, 40.338866;116.018568, 40.338612;116.009893, 40.332541;116.003269, 40.336743;115.983352, 40.324311;115.985753, 40.311457;115.99905, 40.306349;115.990751, 40.304363;115.985594, 40.296473;115.989218, 40.289274;115.984274, 40.277214;115.973017, 40.271346;115.974803, 40.269453;115.96956, 40.263582;115.939616, 40.261757;115.925633, 40.254556;115.917889, 40.241488;115.905256, 40.241696;115.890773, 40.22004;115.894544, 40.215076;115.878751, 40.193072;115.86747, 40.19034;115.850978, 40.173889;115.860319, 40.154894;115.869017, 40.157034;115.883057, 40.151437");

mapMap.put("110116_huairou_bj","116.756375, 40.898257;116.743541, 40.903681;116.737051, 40.903223;116.732415, 40.909594;116.720191, 40.915779;116.722334, 40.924405;116.73105, 40.935302;116.724433, 40.941791;116.712821, 40.939941;116.697791, 40.956023;116.693814, 40.967528;116.684172, 40.977679;116.684106, 40.982014;116.691199, 40.988235;116.691729, 41.007364;116.698209, 41.014096;116.697524, 41.018573;116.702854, 41.021883;116.704409, 41.031402;116.696054, 41.050272;116.690283, 41.047187;116.643934, 41.067187;116.637532, 41.066884;116.632524, 41.061892;116.622608, 41.059055;116.624713, 41.054896;116.620421, 41.04299;116.628376, 41.0337;116.62829, 41.022061;116.622062, 41.0105;116.621672, 40.992318;116.606371, 40.981254;116.592437, 40.985128;116.580618, 40.993771;116.566631, 40.998804;116.56466, 40.994409;116.554092, 40.993979;116.547776, 40.996659;116.525911, 40.987794;116.523141, 40.981751;116.499718, 40.984453;116.492126, 40.988346;116.480946, 40.983933;116.470491, 40.990227;116.462585, 40.984177;116.454523, 40.960213;116.468624, 40.938999;116.474211, 40.93707;116.481905, 40.917902;116.483361, 40.905498;116.480853, 40.903074;116.443685, 40.90498;116.437039, 40.909232;116.421842, 40.906839;116.408434, 40.911863;116.398376, 40.92057;116.377851, 40.949215;116.372863, 40.949316;116.366048, 40.941941;116.347659, 40.936639;116.341021, 40.9254;116.340967, 40.91152;116.388424, 40.869752;116.396076, 40.868438;116.397954, 40.861524;116.411794, 40.847151;116.412806, 40.839748;116.444768, 40.824186;116.449148, 40.812842;116.458652, 40.803974;116.465447, 40.802591;116.472163, 40.77826;116.479047, 40.775288;116.487134, 40.775957;116.495639, 40.76789;116.501937, 40.764644;116.507865, 40.765187;116.508445, 40.75139;116.519119, 40.746993;116.51662, 40.729421;116.510482, 40.72457;116.511896, 40.717068;116.50682, 40.70844;116.507983, 40.703846;116.493699, 40.696229;116.48936, 40.685753;116.49125, 40.680443;116.506126, 40.676475;116.511398, 40.679999;116.52103, 40.677158;116.525876, 40.67027;116.52505, 40.665619;116.530183, 40.665339;116.537921, 40.658973;116.540136, 40.662848;116.547204, 40.660506;116.555007, 40.648637;116.56967, 40.641917;116.578244, 40.641827;116.579816, 40.636518;116.576781, 40.630162;116.569945, 40.633613;116.545066, 40.631336;116.538749, 40.616021;116.541625, 40.605488;116.537353, 40.597802;116.529927, 40.588353;116.525992, 40.590414;116.527197, 40.586278;116.514309, 40.578503;116.513667, 40.57324;116.502225, 40.560815;116.491044, 40.558954;116.486781, 40.548922;116.468487, 40.530284;116.481625, 40.519586;116.503598, 40.524057;116.50867, 40.515031;116.525036, 40.503059;116.523415, 40.496121;116.512893, 40.489074;116.502321, 40.487233;116.466079, 40.493222;116.463033, 40.492165;116.461828, 40.484138;116.450407, 40.485623;116.433907, 40.482722;116.424705, 40.486963;116.413542, 40.48679;116.398976, 40.477473;116.392426, 40.481771;116.394534, 40.491126;116.388451, 40.489657;116.384629, 40.491579;116.384654, 40.50247;116.362518, 40.507199;116.355274, 40.503843;116.330591, 40.505419;116.311589, 40.491523;116.300319, 40.489986;116.300634, 40.480989;116.312258, 40.470604;116.300354, 40.457606;116.296709, 40.445508;116.303933, 40.426586;116.301636, 40.423423;116.294018, 40.423574;116.297059, 40.413335;116.291037, 40.401862;116.293233, 40.39866;116.301689, 40.397886;116.303827, 40.390088;116.321341, 40.39417;116.341232, 40.387607;116.3527, 40.377408;116.361203, 40.376377;116.36621, 40.370219;116.360343, 40.368736;116.355849, 40.361166;116.36827, 40.364201;116.376726, 40.361695;116.37201, 40.353735;116.376281, 40.348597;116.372839, 40.336757;116.382056, 40.337901;116.380551, 40.342802;116.388953, 40.344325;116.396981, 40.344148;116.402071, 40.340693;116.41422, 40.341222;116.423988, 40.335352;116.442769, 40.334446;116.447157, 40.337971;116.452182, 40.328403;116.464441, 40.321834;116.452201, 40.306928;116.457636, 40.303363;116.458282, 40.290749;116.469937, 40.292329;116.480531, 40.285397;116.488395, 40.28536;116.493572, 40.281946;116.494839, 40.272556;116.523649, 40.262344;116.523772, 40.265804;116.529654, 40.263733;116.530283, 40.271919;116.53326, 40.267891;116.54288, 40.268986;116.545094, 40.274977;116.542435, 40.2833;116.559623, 40.280272;116.572688, 40.283639;116.571222, 40.280137;116.576676, 40.275301;116.590112, 40.272591;116.595242, 40.275048;116.601111, 40.270154;116.605674, 40.270313;116.613254, 40.256269;116.616349, 40.258083;116.628967, 40.256555;116.633958, 40.26777;116.639846, 40.267824;116.64315, 40.26475;116.648451, 40.265961;116.648873, 40.263408;116.663986, 40.268644;116.673409, 40.268211;116.680856, 40.251771;116.67744, 40.250622;116.677108, 40.241604;116.680819, 40.241481;116.682426, 40.24588;116.684627, 40.240864;116.690525, 40.240519;116.696202, 40.246958;116.703858, 40.248398;116.701766, 40.252392;116.703216, 40.254942;116.709872, 40.255427;116.711019, 40.263345;116.718363, 40.262353;116.74846, 40.294164;116.75203, 40.303117;116.776517, 40.32141;116.756179, 40.339547;116.753096, 40.338463;116.745826, 40.344165;116.737939, 40.341587;116.737369, 40.345506;116.730753, 40.345501;116.735172, 40.361307;116.732222, 40.362567;116.732577, 40.367401;116.724918, 40.368343;116.726405, 40.374672;116.714248, 40.379383;116.721101, 40.388201;116.718189, 40.389762;116.720417, 40.397849;116.712541, 40.396794;116.718878, 40.402838;116.715549, 40.407609;116.721357, 40.405423;116.729365, 40.409596;116.730366, 40.413127;116.747853, 40.419313;116.739669, 40.420977;116.740701, 40.424673;116.73056, 40.422553;116.729092, 40.438527;116.723285, 40.443547;116.725833, 40.445195;116.731158, 40.441763;116.725277, 40.459191;116.727828, 40.46281;116.722115, 40.465609;116.721236, 40.463242;116.715691, 40.463376;116.704978, 40.473149;116.700187, 40.473643;116.698234, 40.485461;116.708481, 40.484663;116.699784, 40.49128;116.698863, 40.495713;116.703866, 40.498408;116.702595, 40.505124;116.707155, 40.51423;116.71629, 40.521352;116.721253, 40.530522;116.706682, 40.55103;116.683564, 40.556545;116.68304, 40.559246;116.67633, 40.559361;116.67235, 40.555751;116.67046, 40.558983;116.671719, 40.56152;116.682552, 40.562009;116.686433, 40.567713;116.699067, 40.569968;116.711245, 40.568565;116.718294, 40.57577;116.720202, 40.580826;116.714273, 40.596008;116.714929, 40.605908;116.710662, 40.609072;116.712468, 40.61371;116.703822, 40.62135;116.705528, 40.625417;116.710412, 40.625667;116.707835, 40.637745;116.716271, 40.647531;116.718, 40.681266;116.72919, 40.689109;116.730017, 40.693604;116.751547, 40.701345;116.76003, 40.709983;116.766921, 40.71105;116.781546, 40.705204;116.792126, 40.706499;116.796839, 40.71939;116.796235, 40.738739;116.788224, 40.755495;116.789199, 40.76041;116.791496, 40.762127;116.805806, 40.751674;116.813229, 40.751496;116.823815, 40.75567;116.835059, 40.754111;116.84634, 40.765655;116.843309, 40.777548;116.85603, 40.780956;116.857797, 40.784844;116.871529, 40.789728;116.870623, 40.799778;116.876437, 40.799851;116.882249, 40.805333;116.887238, 40.803135;116.892819, 40.807389;116.88808, 40.809295;116.888235, 40.820112;116.881718, 40.827765;116.867501, 40.831665;116.862506, 40.841264;116.844057, 40.847245;116.829961, 40.848436;116.827445, 40.853933;116.819235, 40.853821;116.812193, 40.846273;116.799457, 40.870228;116.77733, 40.887135;116.764859, 40.889985;116.765735, 40.896678;116.756375, 40.898257");

mapMap.put("110117_pingu_bj","117.396814, 40.233095;117.360068, 40.242128;117.348757, 40.25027;117.343034, 40.283717;117.30242, 40.284012;117.300909, 40.298824;117.294971, 40.307248;117.280908, 40.31483;117.277872, 40.331475;117.281586, 40.338248;117.268763, 40.343838;117.248206, 40.376793;117.233105, 40.375358;117.230104, 40.381682;117.221831, 40.383987;117.210265, 40.379297;117.189117, 40.383831;117.169536, 40.37756;117.162, 40.379591;117.151549, 40.374347;117.146128, 40.36741;117.122999, 40.359552;117.118639, 40.358967;117.113802, 40.36414;117.104539, 40.365744;117.078097, 40.347411;117.065225, 40.342551;117.059528, 40.349086;117.042467, 40.352515;117.025103, 40.340508;117.021191, 40.333186;117.015917, 40.331673;117.011752, 40.323393;117.015933, 40.312512;117.008022, 40.305841;117.006391, 40.296795;116.997078, 40.29615;116.995789, 40.292626;116.977992, 40.288182;116.976979, 40.282491;116.970782, 40.281096;116.9585, 40.267715;116.957167, 40.263336;116.981706, 40.253792;116.963395, 40.238065;116.958044, 40.242922;116.94318, 40.237979;116.946821, 40.218353;116.936745, 40.216152;116.945795, 40.198124;116.948056, 40.200421;116.954779, 40.198282;116.954093, 40.185111;116.958115, 40.181751;116.968673, 40.182828;116.967128, 40.177014;116.970852, 40.177718;116.978738, 40.162229;116.985784, 40.156932;116.982682, 40.156876;116.975886, 40.146855;116.972607, 40.135304;116.977993, 40.131576;116.977599, 40.122952;116.982775, 40.119378;116.980515, 40.110877;116.977411, 40.111934;116.975142, 40.10806;116.990042, 40.099707;116.990047, 40.096512;116.986115, 40.096129;116.989014, 40.092185;116.985784, 40.083256;116.990826, 40.081689;116.986756, 40.071552;116.982206, 40.07275;116.979314, 40.069023;116.974971, 40.070695;116.969598, 40.068388;116.968858, 40.057487;116.97638, 40.054388;116.979592, 40.047527;116.9842, 40.045447;117.01239, 40.038834;117.03162, 40.038702;117.045767, 40.055848;117.069942, 40.067923;117.088476, 40.070829;117.095952, 40.076216;117.119763, 40.078627;117.142575, 40.070338;117.16233, 40.075069;117.167983, 40.081988;117.183281, 40.07842;117.191574, 40.091165;117.219451, 40.102784;117.230842, 40.100735;117.230798, 40.104818;117.256558, 40.125811;117.264635, 40.118738;117.27204, 40.117447;117.282491, 40.119351;117.296318, 40.128671;117.303002, 40.12713;117.318401, 40.145199;117.351763, 40.148592;117.364739, 40.166702;117.360039, 40.179331;117.371849, 40.184583;117.399607, 40.184615;117.413437, 40.191759;117.410394, 40.194931;117.395854, 40.193333;117.386786, 40.198355;117.387165, 40.205991;117.394824, 40.209093;117.395258, 40.212225;117.385567, 40.214483;117.38483, 40.223684;117.399491, 40.227136;117.396814, 40.233095");

mapMap.put("110229_yanqing_bj","116.50798, 40.705039;116.511896, 40.717068;116.510482, 40.72457;116.51662, 40.729421;116.519745, 40.745879;116.508445, 40.75139;116.507865, 40.765187;116.501937, 40.764644;116.495639, 40.76789;116.487134, 40.775957;116.479047, 40.775288;116.472163, 40.77826;116.460539, 40.771806;116.445402, 40.772914;116.422367, 40.768351;116.416833, 40.785757;116.401677, 40.78488;116.373736, 40.776837;116.328394, 40.778196;116.320514, 40.77693;116.314111, 40.769582;116.317666, 40.760475;116.314075, 40.758484;116.294132, 40.770103;116.280562, 40.769739;116.275753, 40.781289;116.254416, 40.797832;116.241679, 40.789088;116.242438, 40.781394;116.236838, 40.768522;116.240245, 40.764807;116.221101, 40.750547;116.219936, 40.746062;116.226137, 40.739108;116.216877, 40.727078;116.209974, 40.72149;116.193057, 40.724782;116.18734, 40.718765;116.177616, 40.702363;116.180134, 40.699151;116.171808, 40.674123;116.164609, 40.669972;116.148927, 40.673475;116.138716, 40.661807;116.120445, 40.654743;116.118173, 40.649776;116.126964, 40.631189;116.117788, 40.62193;116.068027, 40.615224;116.037281, 40.603575;116.026374, 40.604705;116.01256, 40.594188;116.00943, 40.581671;115.988979, 40.584777;115.979101, 40.607208;115.96029, 40.607401;115.950341, 40.617487;115.934286, 40.619091;115.916134, 40.624756;115.894762, 40.602501;115.834129, 40.593641;115.82805, 40.569572;115.820068, 40.563255;115.805593, 40.563806;115.797891, 40.567662;115.767764, 40.545073;115.761164, 40.545717;115.742637, 40.510394;115.752305, 40.498003;115.783837, 40.492361;115.775733, 40.468534;115.778708, 40.455699;115.788186, 40.444804;115.803563, 40.436957;115.811505, 40.426348;115.824703, 40.392614;115.839213, 40.384772;115.855604, 40.38265;115.87134, 40.368466;115.882848, 40.364071;115.895453, 40.367279;115.910131, 40.366321;115.91565, 40.373277;115.92271, 40.373176;115.930506, 40.348471;115.929014, 40.342954;115.93938, 40.324907;115.949202, 40.320196;115.950679, 40.31592;115.946689, 40.310072;115.952985, 40.294974;115.95687, 40.293726;115.962316, 40.28308;115.967807, 40.28117;115.973017, 40.271346;115.988726, 40.282779;115.985594, 40.296473;115.990751, 40.304363;115.99905, 40.306349;115.985753, 40.311457;115.983352, 40.324311;116.003269, 40.336743;116.009893, 40.332541;116.018568, 40.338612;116.028496, 40.337671;116.035337, 40.330418;116.037781, 40.320843;116.045314, 40.316911;116.047756, 40.321124;116.054598, 40.319981;116.062405, 40.323996;116.060519, 40.330885;116.066734, 40.340911;116.084567, 40.343559;116.090636, 40.340597;116.093983, 40.334173;116.118115, 40.334339;116.130551, 40.316488;116.139854, 40.316025;116.151021, 40.319726;116.146032, 40.351712;116.155754, 40.352516;116.1552, 40.340236;116.160332, 40.340202;116.165206, 40.347129;116.155746, 40.356247;116.159665, 40.367393;116.176307, 40.370733;116.186534, 40.375879;116.189468, 40.372643;116.199092, 40.375032;116.199505, 40.377259;116.214762, 40.379096;116.221207, 40.38673;116.234725, 40.386218;116.24065, 40.38042;116.251093, 40.382363;116.252741, 40.384948;116.257195, 40.380038;116.260403, 40.380147;116.26457, 40.387183;116.280782, 40.387389;116.293387, 40.380608;116.299213, 40.387402;116.296986, 40.398024;116.291037, 40.401862;116.297059, 40.413335;116.292771, 40.420787;116.294018, 40.423574;116.301636, 40.423423;116.303933, 40.426586;116.296709, 40.445508;116.302541, 40.461811;116.306617, 40.462313;116.312258, 40.470604;116.300634, 40.480989;116.300319, 40.489986;116.311589, 40.491523;116.330591, 40.505419;116.355274, 40.503843;116.362518, 40.507199;116.384654, 40.50247;116.384629, 40.491579;116.388451, 40.489657;116.394534, 40.491126;116.392426, 40.481771;116.398976, 40.477473;116.413542, 40.48679;116.424705, 40.486963;116.433907, 40.482722;116.450407, 40.485623;116.461828, 40.484138;116.463033, 40.492165;116.466079, 40.493222;116.502321, 40.487233;116.512893, 40.489074;116.523415, 40.496121;116.525036, 40.503059;116.50867, 40.515031;116.503598, 40.524057;116.481625, 40.519586;116.468487, 40.530284;116.486781, 40.548922;116.491044, 40.558954;116.502225, 40.560815;116.513667, 40.57324;116.514309, 40.578503;116.527197, 40.586278;116.525992, 40.590414;116.529927, 40.588353;116.537353, 40.597802;116.541625, 40.605488;116.538749, 40.616021;116.545066, 40.631336;116.569945, 40.633613;116.576781, 40.630162;116.579816, 40.636518;116.578244, 40.641827;116.56967, 40.641917;116.555007, 40.648637;116.547204, 40.660506;116.540136, 40.662848;116.537921, 40.658973;116.530183, 40.665339;116.52505, 40.665619;116.525876, 40.67027;116.52103, 40.677158;116.511398, 40.679999;116.506126, 40.676475;116.49125, 40.680443;116.48936, 40.685753;116.493699, 40.696229;116.50798, 40.705039");

mapMap.put("110228_miyun_bj","117.512283, 40.673448;117.501618, 40.68091;117.486462, 40.683865;117.471233, 40.679811;117.427458, 40.691901;117.413032, 40.691963;117.368422, 40.681015;117.352677, 40.680053;117.343188, 40.672822;117.343163, 40.669474;117.332062, 40.666479;117.298595, 40.665641;117.284975, 40.672219;117.267992, 40.687306;117.248559, 40.682887;117.237938, 40.691027;117.21279, 40.700633;117.189813, 40.703272;117.185509, 40.699216;117.173492, 40.704884;117.159189, 40.703082;117.123309, 40.706232;117.11851, 40.713341;117.090641, 40.708002;117.056273, 40.706007;117.037346, 40.698128;117.010825, 40.702995;116.971399, 40.715332;116.972824, 40.719631;116.951579, 40.733725;116.947612, 40.745358;116.933105, 40.750454;116.929846, 40.757856;116.934815, 40.762214;116.930179, 40.779446;116.904581, 40.783162;116.901081, 40.788008;116.9026, 40.800071;116.892819, 40.807389;116.887238, 40.803135;116.882249, 40.805333;116.876437, 40.799851;116.870623, 40.799778;116.871529, 40.789728;116.857797, 40.784844;116.85603, 40.780956;116.843309, 40.777548;116.84634, 40.765655;116.835059, 40.754111;116.823815, 40.75567;116.813229, 40.751496;116.805806, 40.751674;116.791496, 40.762127;116.788224, 40.755495;116.796235, 40.738739;116.796839, 40.71939;116.792126, 40.706499;116.781546, 40.705204;116.766921, 40.71105;116.76003, 40.709983;116.751547, 40.701345;116.730017, 40.693604;116.72919, 40.689109;116.718, 40.681266;116.716271, 40.647531;116.707835, 40.637745;116.710412, 40.625667;116.705528, 40.625417;116.703822, 40.62135;116.712468, 40.61371;116.710662, 40.609072;116.714929, 40.605908;116.714273, 40.596008;116.720202, 40.580826;116.718294, 40.57577;116.711245, 40.568565;116.699067, 40.569968;116.686433, 40.567713;116.682552, 40.562009;116.671719, 40.56152;116.67046, 40.558983;116.67235, 40.555751;116.67633, 40.559361;116.68304, 40.559246;116.683564, 40.556545;116.706682, 40.55103;116.721253, 40.530522;116.71629, 40.521352;116.707155, 40.51423;116.702595, 40.505124;116.703866, 40.498408;116.698863, 40.495713;116.699784, 40.49128;116.708481, 40.484663;116.698234, 40.485461;116.700187, 40.473643;116.704978, 40.473149;116.715691, 40.463376;116.721236, 40.463242;116.722115, 40.465609;116.727828, 40.46281;116.725277, 40.459191;116.731158, 40.441763;116.725833, 40.445195;116.723285, 40.443547;116.729092, 40.438527;116.73056, 40.422553;116.740701, 40.424673;116.739669, 40.420977;116.747853, 40.419313;116.730366, 40.413127;116.729365, 40.409596;116.721357, 40.405423;116.715549, 40.407609;116.718878, 40.402838;116.712541, 40.396794;116.720417, 40.397849;116.718189, 40.389762;116.721101, 40.388201;116.714248, 40.379383;116.726405, 40.374672;116.724918, 40.368343;116.732577, 40.367401;116.732222, 40.362567;116.735172, 40.361307;116.730753, 40.345501;116.737369, 40.345506;116.737939, 40.341587;116.745826, 40.344165;116.753096, 40.338463;116.756179, 40.339547;116.776517, 40.32141;116.75203, 40.303117;116.74475, 40.290212;116.745041, 40.284704;116.761885, 40.281302;116.771471, 40.274564;116.774699, 40.276646;116.775956, 40.273128;116.785965, 40.280989;116.790048, 40.279782;116.795572, 40.296397;116.798597, 40.293611;116.804281, 40.296565;116.813371, 40.293192;116.817826, 40.295504;116.818883, 40.288456;116.827035, 40.287319;116.825103, 40.290767;116.830636, 40.291992;116.83559, 40.311502;116.843873, 40.316714;116.852973, 40.318151;116.857106, 40.315675;116.864002, 40.299136;116.877413, 40.297011;116.87868, 40.285675;116.882844, 40.281232;116.881071, 40.274477;116.892234, 40.262475;116.899967, 40.246834;116.907313, 40.244683;116.900951, 40.238846;116.913321, 40.234789;116.913749, 40.229531;116.928113, 40.226902;116.931841, 40.233121;116.948507, 40.238066;116.953899, 40.242563;116.958044, 40.242922;116.963395, 40.238065;116.981706, 40.253792;116.957167, 40.263336;116.9585, 40.267715;116.970782, 40.281096;116.976979, 40.282491;116.977992, 40.288182;116.995789, 40.292626;116.997078, 40.29615;117.006391, 40.296795;117.008022, 40.305841;117.015933, 40.312512;117.011752, 40.323393;117.015917, 40.331673;117.021191, 40.333186;117.025103, 40.340508;117.042467, 40.352515;117.059528, 40.349086;117.065225, 40.342551;117.078097, 40.347411;117.104539, 40.365744;117.113802, 40.36414;117.118639, 40.358967;117.122999, 40.359552;117.146128, 40.36741;117.151549, 40.374347;117.162837, 40.379896;117.169536, 40.37756;117.189117, 40.383831;117.210265, 40.379297;117.221831, 40.383987;117.230104, 40.381682;117.235062, 40.392322;117.241661, 40.395752;117.243127, 40.400548;117.246722, 40.40068;117.24604, 40.405045;117.238857, 40.410209;117.240581, 40.42306;117.256385, 40.435421;117.263364, 40.436067;117.26993, 40.447321;117.241196, 40.464298;117.242267, 40.475311;117.232341, 40.484311;117.234676, 40.48752;117.223574, 40.501212;117.215835, 40.502724;117.21653, 40.512643;117.220225, 40.518656;117.239555, 40.519506;117.245336, 40.523751;117.253813, 40.518445;117.266702, 40.525486;117.256848, 40.54366;117.259649, 40.547985;117.256124, 40.554638;117.272602, 40.564079;117.302711, 40.572713;117.317146, 40.582207;117.340905, 40.582418;117.356706, 40.586185;117.372601, 40.582034;117.382658, 40.572888;117.395929, 40.567374;117.410574, 40.579774;117.426571, 40.574504;117.436606, 40.584657;117.42995, 40.58783;117.420328, 40.612091;117.429118, 40.643382;117.478347, 40.653361;117.485398, 40.64184;117.507621, 40.642461;117.509516, 40.659031;117.513171, 40.660949;117.512283, 40.673448");

for ( String key : mapMap.keySet())

{

String points = mapMap.get(key);

String []poss = points.split(";");

double [][]results = new double [poss.length][2];

int i=0;

for (String pos :poss)

{

String []temp = pos.split("\\,");

results[i][0] =Double.valueOf(temp[0]);

results[i][1] =Double.valueOf(temp[1]);

i++;

}

mapPoints.put(key, results);

}

}

public static boolean IsPtInPoly(double ALon, double ALat ,double [][]APoints)

{

boolean bRet=false;

int iSum = 0;

double dLon1, dLon2, dLat1, dLat2, dLon;

int iCount = APoints.length;

for (int i = 0; i < iCount; i++) {

if (i == iCount - 1) {

dLon1 = APoints[i][0];

dLat1 = APoints[i][1];

dLon2 = APoints[0][0]; 

dLat2 = APoints[0][1]; 

} else { 

dLon1 = APoints[i][0];

dLat1 = APoints[i][1];

dLon2 = APoints[i + 1][0];

dLat2 = APoints[i + 1][1];

}

if (((ALat >= dLat1) && (ALat < dLat2)) || ((ALat >= dLat2) && (ALat < dLat1))) {  

if (Math.abs(dLat1 - dLat2) > 0) {  

dLon = dLon1 - ((dLon1 - dLon2) * (dLat1 - ALat)) / (dLat1 - dLat2);

if (dLon < ALon) iSum++;

}

}

}

if (iSum % 2 != 0)

bRet=true;

return bRet;

}

public static String getDistrict(double ln, double la)

{

String sRet="";

for ( String key : mapPoints.keySet())

{

if (IsPtInPoly(ln, la, mapPoints.get(key)))

{

sRet=key.substring(0, key.indexOf("_"));

break;

}

}

return sRet;

}

public static void main(String args[])

{

System.out.println("从百度地图中随机选取坐标, 测试");

System.out.println("顺义, " +getDistrict(116.649269,40.154532));

System.out.println("海淀, " +getDistrict( 116.309207,39.973302));

System.out.println("石景山, "+getDistrict(116.181576,39.919314));

System.out.println("西城, "+getDistrict(116.387395,39.9202));

System.out.println("通州, "+getDistrict(116.689801,39.804115));

System.out.println("丰台, "+getDistrict(116.280461,39.864397));

System.out.println("密云, "+getDistrict(116.935002,40.387062));

System.out.println("大兴,  "+getDistrict(116.360949,39.756206));

System.out.println("从北京数据对接日志中随机选取坐标, 测试");

System.out.println("海淀区.西三旗,  "+getDistrict(116.33561,40.04739));

System.out.println("丰台区万泉寺北路10号院,  "+getDistrict(116.34218,39.86652));

System.out.println("车公庄-H口,  "+getDistrict(116.353271,39.931912));

 

}

}

 

posted @ 2017-04-25 23:49  问道大数据  阅读(1303)  评论(1编辑  收藏  举报