• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does Java supports GPS Maps

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to build an application wherein I have latitude and longitude as input and I want to project that on a map.

So, is this possible in Java. If yes, can someone please let me know how.

Thanks in advance.
Girish
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See my post in https://coderanch.com/t/614820/java/java/Ways-Work-GPS-Technology-Java
 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick response but due to some unknown reason I am not able to access the link mentioned in the post.

Still, since you are an expert in this, can you please answer my one query :

Which java api is used to map the latitude and longitude on a map? If you can tell me the name I can probably google it then try to write a program.

Thanks again.

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The link works fine for me, must be a networking problem on your end that I'm sure you can figure out with the help of your network admin or ISP.

It doesn't make sense to repeat the article's content here. Read it first, and then come back with specific questions.
 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, now I am able to access the link.

I have a problem here, I dont have Netbeans IDE (and I cannot have it also as it is blocked). I have Eclipse Helios IDE and I have downloaded the swingx-ws-1.0.jar. Also I dont have a sample map to test my application.

So can you tell me how to create this swing form and where can I get the sample map so as to test my application.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need any of that. Just download the example code (linked in the "Resources" section, although the link is hosed - you need to enter it manually in your browser) and create a Java app from it. Actually, the download comes with a double-clickable jar file, so the effort required on your part to get started is zero.
 
Girish Kumar Prabhakar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dittmer,

I have been trying hard to download the source code but I am unable to do it. Still I have tried to write a code but it is not working. Seems there is some environmental issues. When i try to run the java class from eclipse it gives the following error :

The project: LatLong which is referenced by the classpath, does not exist.

I have added 2 jars in my build path : swingx-ws-1.0.jar and swingx-all-1.6.4.jar. And here is my sample code :

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that would be a waste of time. The article contains a link to a zip file that contains everything built to run. As I said, you need to copy that link out of the article and paste it in your browser manually, as it's linked there incorrectly. It should be pretty obvious what the correct link is, and it works fine. That will save you a lot of time.
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic