web service api of map, with spring-boot-starter
use RestTemplate
to invoke api of map server provider
<dependency>
<groupId>com.github.myibu</groupId>
<artifactId>spring-boot-starter-map-web</artifactId>
<version>1.0.0</version>
</dependency>
@Autowired
private AmapWebClient amapWebClient;
GpsLocation location = amapWebClient.address2Gps("北京市朝阳区阜通东大街6号");
System.out.println(location);
- support amap api, like address2Gps and so on.