Skip to content

Instantly share code, notes, and snippets.

@johnhiott
Created October 8, 2015 14:40
Show Gist options
  • Select an option

  • Save johnhiott/56fc77e73b7184879553 to your computer and use it in GitHub Desktop.

Select an option

Save johnhiott/56fc77e73b7184879553 to your computer and use it in GitHub Desktop.
String locationUri = String.format(Locale.getDefault(), "geo:%f,%f?q=%s", ll.latitude, ll.longitude,
(isSite) ? Utils.generateAddressForSite(site) : Utils.generateAddressForSiteContact(siteContact));
String locationUri = "";
if (isSite) {
locationUri = String.format(Locale.getDefault(), "geo:%f,%f?q=%s", ll.latitude, ll.longitude, Utils.generateAddressForSite(site));
}else {
locationUri = String.format(Locale.getDefault(), "geo:%f,%f?q=%s", ll.latitude, ll.longitude, Utils.generateAddressForSiteContact(siteContact));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment