android Programming Glossary: tolon
J2ME/Android/BlackBerry - driving directions, route between two locations http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations getUrl double fromLat double fromLon double toLat double toLon connect to map web service StringBuffer urlString new StringBuffer.. toLat urlString.append urlString.append Double.toString toLon urlString.append ie UTF8 0 om 0 output kml return urlString.toString.. getUrl double fromLat double fromLon double toLat double toLon then create connection with this url and get InputStream. Then..
J2ME/Android/BlackBerry - driving directions, route between two locations http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations url with start and destination locations public static String getUrl double fromLat double fromLon double toLat double toLon connect to map web service StringBuffer urlString new StringBuffer urlString.append http maps.google.com maps f d hl en.. urlString.append daddr to urlString.append Double.toString toLat urlString.append urlString.append Double.toString toLon urlString.append ie UTF8 0 om 0 output kml return urlString.toString Next you will need to parse xml implemented with SAXParser.. so you will have to first form url public static String getUrl double fromLat double fromLon double toLat double toLon then create connection with this url and get InputStream. Then pass this InputStream and get parsed data structure public..
|