Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: pinpointing on map

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default pinpointing on map

    hi everybody,

    i am working on my GUI, and i have a map that i need to pinpoint on it. its like a positioning system using wifi. so i have my algorithm to calculate the location but the problem i dont know how to display the result which basically will be a pin on map like in Google maps. any ideas please? some body told me to do grid but i cant find any resources to help in the grid technique. hint** i am not a programmer , i am an engineer

    thanks in advance !!


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,237
    Thanks
    176
    Thanked 817 Times in 760 Posts
    Blog Entries
    5

    Default Re: pinpointing on map

    What sort of GUI are you using (eg Swing)? What sort of context/class is your map represented (eg Image)?

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: pinpointing on map

    hi copeg,

    well i am using netbeans to creat the GUI and the map will be an image ( eg jpg) ...

  4. #4
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Location
    Wales, Bangor & England, Warwickshire
    Posts
    820
    My Mood
    Cynical
    Thanks
    7
    Thanked 104 Times in 90 Posts

    Default Re: pinpointing on map

    In essence you will draw another image of your "peg" at the location tour algoritm works out. IF your algorithm wors out its position is (2, 5) away from the computer or whatever thats where you would draw the peg on the image.
    chris[at]javaprogrammingforums[dot]com

    Prifysgol Bangor University, North Wales

  5. #5
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: pinpointing on map

    You need to have a translation layer which translates the coordinates your alg gives you to the coordinates on the map.

    // Json

  6. #6
    Junior Member
    Join Date
    Sep 2009
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: pinpointing on map

    my algorithm is not calculating coordinates , actually its comparing previously recorded signal strengths at locations with the signal strength with user who will be using the GUI. once the match happens, then the user is at this location ( which is previously known by its signal strength. then the GUI will pinpoint the location of user on the map at this location. i hope i make sense.