Created
February 20, 2015 15:50
-
-
Save pratamawijaya/8f365cc36b940cde5f62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = getIntent().getExtras(); | |
if (data.getInt("status") == MainActivity.FROM_LOCAL) { | |
// baca db | |
latLngList = readDataFromDB(data.getString("id")); | |
// draw | |
drawDirectionToMap(latLngList); | |
} else { | |
latAwal = data.getDouble("latAwal"); | |
lngAwal = data.getDouble("lngAwal"); | |
latTujuan = data.getDouble("latTujuan"); | |
lngTujuan = data.getDouble("lngTujuan"); | |
tujuan = data.getString("tujuan"); | |
getDirections(getGoogleDirectionsUrl(latAwal, lngAwal, latTujuan, lngTujuan)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment