title: locations read from CSV file using java and locate them into google maps
body: <p>I am facing a problem in finding a way using java through which I can locate location points(Lat,Long) from large CSV file to google map.</p>
  
  <p>I was able to read the locations data from the big dataset but I face a problem in placing the points in streaming way to google maps.</p>
  
  <p>I am not expert in programming but I started with below code:</p>
  
  <pre><code>    JFrame test = new JFrame("Google Maps");
  
      try {
  
          String latitude = "45.714728";
  
          String longitude = "-73.998672";
  
          String imageUrl = "https://maps.googleapis.com/maps/api/staticmap?center="+ latitude+ ","+ longitude+ "&amp;zoom=11&amp;size=612x612&amp;scale=2&amp;maptype=roadmap";
  
          String destinationFile = "image.jpg";
  
          // read the map image from Google
  
          // then save it to a local file: image.jpg
  
  
          URL url = new URL(imageUrl);
  
          InputStream is = url.openStream();
  
          OutputStream os = new FileOutputStream(destinationFile);
  
          byte[] b = new byte[2048];
  
          int length;
  
          while ((length = is.read(b)) != -1) {
  
              os.write(b, 0, length);
  
          }
  
          is.close();
          os.close();
  
      } catch (IOException e) {
          e.printStackTrace();
          System.exit(1);
          }
  
      // create a GUI component that loads the image: image.jpg
      ImageIcon imageIcon = new ImageIcon((new ImageIcon("image.jpg"))
  
              .getImage().getScaledInstance(630, 600,
  
                      java.awt.Image.SCALE_SMOOTH));
  
      test.add(new JLabel(imageIcon));
  
      // show the GUI window
  
      test.setVisible(true);
  
      test.pack();
  </code></pre>
  
  <p>appreciated any help,</p>
  
  <p>Thanks in advance</p>