• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/17

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

17 Cards in this Set

  • Front
  • Back

what can you do with google maps?

- core feature: display a map


- current location


- location of landmarks


- detail info on locations


- draw various graphics


- interactive features

why does the map always appear centred around a certain location?

intersection of equator and prime meridian because it goes to default double values, lat 0.0 and long 0.0

how do you get a reference to map object?

initMap()


- findFragmentByID the map



how to start from location of our choice with the XML way?

in the fragment tag (map):




xmlns:map = "link" (new name space)


map:cameraTargetLat = "1"


map:cameraTargetLng = "1"


map:cameraZoom = "15"

how to start from location of our choice with the Java way? example of the method code?

add constants for lat and lng in code e.g.




public static final double VANCOUVER_LAT = 48.2398




have method:


gotoLocation(double lat, double lng) {


LatLng latlng = new LatLng(lat, lng);


CameraUpdate update =


CameraUpdateFactory.newLatLng(latlng);


mMap.moveCamera(update);


}

what can you do with geocoding? 2 things

pass in lat and lng and get back matching location




pass in city name, postal code, or landmark and get back lat and lng

what are the geocoder methods?

getFromLocation()


getFromLocationName()

what do we implement to find the device's current location in code approach?

Google API Client

what is COARSE_LOCATION and FINE_LOCATION?

coarse = based on proximity to cell phone towers and wireless networks




fine = GPS

how to find the device's current location in non-code approach?

displays a current location button


mMap.setMyLocationEnabled(true);

what's the process of using google maps?

1. get API key


2. add permissions to manifest


3. integrate google play services and add that to the manifest


4. check if google play services is available


5. create new layout file


6. setContentView to activity_map if services OK

what 2 things do you need to add to the manifest for google maps?

permissions


google play services

what is the root element of a map?

fragment

what XML attributes do you use to set the camera in the map fragment?

map:cameraTargetLat


map:cameraTargetLng


map:cameraZoom

how to implement geocoding? explain the method and what's in it

List<Address> list = myGeocoder.getFromLocation(the double lat lng)




list.get(0).getLocality , getLatitude, getLongitude


gotoLocation(getLatitude, getLongitude)

steps to implement current location in code approach

1. implement Google API Client


2. create Location client with the API client


3. showCurrentLocation method

explain the showCurrentLocation method

assign getLastLocation to currentLocation object




CameraUpdate (currentLocation.getLatitude, etc)


map.animateCamera(update)