Road Maps in Java

混江龙づ霸主 提交于 2019-12-18 09:15:12

问题


I'm creating a simple application in Java and I would like to be able to show some points and paths on a map (a road map, not a satellite one). I have been looking for some API that would let me do this, but Google Maps API isn't available for Java and can be only used for web applications, and WorldWind didn't seem to offer road maps and the size of the API was a bit bigger than I would fancy.

Do you know of any API that would meet my needs? Thanks in advance.


回答1:


Is it a web application? An Eclipse one? A Swing one? These details are good to tell when you're looking for suggestions of an API.

Just a few ideas then...

For rendering you'll probably need:

  • GEF for Eclipse-based apps;
  • Graphics2D for Swing;
  • HTML5 for web or static image generator on the server side;

For geocoding look at GeoTools.

Might be not as simple as you imagine in the end.



来源:https://stackoverflow.com/questions/10400241/road-maps-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!