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 4 of 4

Thread: Map APIs

  1. #1
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Map APIs

    I need to find an API or webservice which will allow me to query and pull a map (geographical map), and I am open to recommendations (open-source/free is a must).

    My initial instinct was the Google Maps API, and I am still investing if I can use it. My needs are a bit odd, since I am not looking for a single address or anything. Specifically, I have a list of coordinates and I need to be able to pull a single map which contains all of the coordinates on it. If it can add markers as points of interest, that is a plus, but not required, since I can probably figure out an algorithm for painting POIs in the correct locations over top of the map at runtime.

    So if anyone knows of any APIs or webservices which can meet my needs, I would appreciate the suggestions.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Map APIs

    This site has free maps: OpenStreetMap
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Map APIs

    There is the Google Static maps API that lets you download the tiles as an image. Free usage is limited by the number of requests per day (25,000 requests/day)

  4. #4
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Map APIs

    I've used OpenStreetMap before. It is my backup plan if nothing better exists.
    I'm looking into the google static maps API now. I don't expect to ever get close to the 25,000 requests/day. It has labels, but the labels only allow single character names (which is stupid in my opinion). Plus when you create the map with labels, you don't know the zoom or center point, so calculating the location of the POIs on the map image is impossible. So I guess I'll have to try to figure out the equations google uses to calculate zoom and what not and try to do it without google's label functionality and implement my own.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

Similar Threads

  1. map app
    By greyhands2 in forum Java Theory & Questions
    Replies: 4
    Last Post: September 18th, 2013, 09:13 PM
  2. Replies: 9
    Last Post: September 1st, 2012, 07:25 AM
  3. will java 1.3 support these APIs
    By HungryCoder in forum Java SE APIs
    Replies: 3
    Last Post: May 24th, 2011, 02:23 PM
  4. Replies: 4
    Last Post: November 14th, 2010, 11:44 AM
  5. Java Source/APIs to create a Fourm
    By softwarebuzz in forum Java Theory & Questions
    Replies: 2
    Last Post: January 9th, 2010, 01:46 AM