I need to use googlemaps in my java application, but after some researches I found some informationen such as the googlemaps api for java is deprecated. However, some people said that it is not allowed to use googlemaps outside the browser, what the fact, that I cannot find any api for java on the google docs, just supports.
Anyways, people were recommending services from microsoft and nasa.
Does anybody know how to use googlemaps in java, if there is actually a real api and i was just to stupid to find it ? Has ever somebody used a map api in java ? If so could you recommend me any?
I am looking forward to receiving your answer.
All the best
Richard
Google maps can only be used within the browser. If you want to build a mapping application with Java, then I suggest you take a look at the SwingX components. One of the components is the JXMapKit, it basically allows you to show any part of the world on a special JPanel. This special JPanel takes care of stitching all the tiles together and offers other functionality like converting GPS coordinates to X-Y coordinates and vice versa.
The SwingX component uses OpenStreetMap, which is an open source project. Unfortunately, it doesn’t offer satellite images. Google where deciding wheather to allow direct access to their tile servers, however they changed their mind (Link to issue here).
Here is a link to a pretty good tutorial on how you can use the SwingX components.