Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getAddress(String path) {
- ArrayList<XMLInfo> xmlInfos = readXMLFile(path);
- if (!xmlInfos.isEmpty()) {
- String address = "http://maps.google.com/maps?daddr=" + xmlInfos.get(0).getLatitude() + "," + xmlInfos.get(0).getLongitude();
- for (XMLInfo s : xmlInfos) {
- if (s != null) {
- address += "+to:" + s.getLatitude() + "," + s.getLongitude();
- }
- }
- return address;
- }else return "http://maps.google.com";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement