Browse Source

Merge branch 'dev' of http://192.168.1.220:10080/Amoy2/wlyy2.0 into dev

liubing 4 years ago
parent
commit
cabf97a5cf

+ 4 - 4
svr/svr-cloud-care/pom.xml

@ -216,11 +216,11 @@
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-commons</artifactId>
            <version>1.3.2</version>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <!--缩略图-->
        <dependency>

+ 27 - 0
svr/svr-cloud-care/src/main/test/com/yihu/jw/test/LatTest.java

@ -0,0 +1,27 @@
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();
        }
    }
}