sigitsuryono25

GOOGLE API MAPS AND YOUTUBE

Dec 10th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. -- Google Developer Console --
  2. https://console.developers.google.com/
  3.  
  4. -- API KEY --
  5. AIzaSyAEUZECk3dgHzsQQew8ENrpGzHTv51rASE
  6.  
  7. -- YouTube API JAR --
  8. https://github.com/sigitsuryono25/PariwisataYogya/blob/master/app/libs/YouTubeAndroidPlayerApi.jar
  9.  
  10. -- Youtube Player --
  11. e4YpbLkvR4I
  12.  
  13.  
  14. -- COPY BAGIAN INI KE NOTEPAD--
  15. -- Koordinat wisata di Ternate --
  16.  
  17. LatLng bentengTolukko, pantaiBobaneIci, pantaiJikomalamo;
  18. final Marker markerbentengTolukko, markerpantaiBobaneIci, markerpantaiJikomalamo;
  19.  
  20. bentengTolukko = new LatLng(0.8139152, 127.387834);
  21. markerbentengTolukko = googleMap.addMarker(new MarkerOptions().position(bentengTolukko).title("Benteng Tolukko").snippet("Benteng Tolukko"));
  22. markerbentengTolukko.showInfoWindow();
  23.  
  24.  
  25. pantaiBobaneIci = new LatLng(0.7947089, 127.2940025);
  26. markerpantaiBobaneIci = googleMap.addMarker(new MarkerOptions().position(pantaiBobaneIci).title("Pantai Bobane Ici").snippet("Pantai Bobane Ici"));
  27. markerpantaiBobaneIci.showInfoWindow();
  28.  
  29.  
  30. pantaiJikomalamo = new LatLng(0.8626167, 127.3200885);
  31. markerpantaiJikomalamo = googleMap.addMarker(new MarkerOptions().position(pantaiJikomalamo).title("Pantai Jikomalamo").snippet("Pantai Jikomalamo"));
  32. markerpantaiJikomalamo.showInfoWindow();
Add Comment
Please, Sign In to add comment