i m using GPS in my application. i had try lots of for display multiple location on map but till i m not getting any solution. if anybody have solution to overcame my this problem. i had try using this code.
please help me.
Thanx in advance.
StringBuffer document = new StringBuffer();
document.append("<location-document>");
latVec.addElement("19.097971");
longVec.addElement("72.864761");
latVec.addElement("19.066985");
longVec.addElement("72.848969");
addressVec.addElement("abc");
addressVec.addElement("wydj");
for(int j=0;j<latVec.size();j++)
{
double latlong = Double.parseDouble(latVec.elementAt(j).toString());
double lonlong = Double.parseDouble(longVec.elementAt(j).toString());
int lat = (int)latlong*100000;
int lon = (int)lonlong*100000;
String addressString = addressVec.elementAt(j).toString();
document.append("<location lon='"+ lon +"' lat='"+ lat +"'label='"+ addressString +"' description='"+ addressString +"' />");
}
document.append("</location-document>");
String st = new String(document);
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments(MapsArguments.ARG_LOCATION_DOCUMENT, st));
1 Answer