Changes

Jump to: navigation, search

Teams Winter 2011/team1/BlackBerry/Add Mapping Option

117 bytes added, 13:16, 7 April 2011
no edit summary
{
String address = student.getAddress();
//start coordinates
Coordinates co = new Coordinates(45.423488, -75.697929, 0);
Landmark[] landm = Locator.geocode(address, co);
//Get latitude and longitude
double lon = landm[0].getQualifiedCoordinates().getLongitude()*100000.0 ;
double lat = landm[0].getQualifiedCoordinates().getLatitude()*100000.0;
//create XML document
StringBuffer document = new StringBuffer("<location-document><location lon='");
document.append(lon).append("' lat='").append(lat).append("' label='").append(address);
1
edit

Navigation menu