123456789101112131415161718192021222324252627 |
- package com.yihu.jw.test;
- import com.yihu.jw.util.common.LatitudeUtils;
- import org.junit.Test;
- import java.util.Map;
- /**
- * Created with IntelliJ IDEA.
- *
- * @Author: yeshijie
- * @Date: 2021/4/28
- * @Description:
- */
- public class LatTest {
- @Test
- public void testLat(){
- try {
- Map<String, String> json = LatitudeUtils.getGeocoderLatitude("厦门海沧区新阳海新阳光公寓15梯304");
- System.out.println("经度 : " + json.get("lng"));
- System.out.println("纬度 : " + json.get("lat"));
- }catch (Exception e ){
- e.printStackTrace();
- }
- }
- }
|