Point of Interest -Google maps (*not giving the places*)
Hi friends ,
i go through this code .
im not able to find the problem, just fix it and tell .how to get the point of interests
in the j2me ..wtk.
class PointOfInterest implements Runnable{
PointOfInterest(){
}
public void run(){
try{
// Set criteria for selecting a location provider:
// accurate to 500 meters horizontally
Criteria cr= new Criteria();
cr.setHorizontalAccuracy(500);
// Get an instance of the provider
LocationProvider lp= LocationProvider.getInstance(cr);
// Request the location, setting a one-minute timeout
Location l = lp.getLocation(60);
//Coordinates
Coordinates c = l.getQualifiedCoordinates();
if(c != null ) {
// Use coordinate information
double lat = c.getLatitude();
double lon = c.getLongitude();
try{
StringBuffer sb=new StringBuffer();
sb.append(l);
String loc;
loc=sb.toString();
lm = LandmarkStore.getInstance(loc);
menuActive = false;
clearScreen();
repaint();
}catch (NullPointerException npe){
npe.printStackTrace();
}
if((lm)!=null ){ vLandmarks=lm.getLandmarks();
}
}
}catch(Exception e){
System.out.println("Exception:"+e);
}
}
Re: Point of Interest -Google maps (*not giving the places*)
I'm not actually following ur code...
u get a location, u append this location to a stringbuffer and then u try to get the Landmark with that String ?
Re: Point of Interest -Google maps (*not giving the places*)
[QUOTE=Tiger79;526658]I'm not actually following ur code...
u get a location, u append this location to a stringbuffer and then u try to get the Landmark with that String ?[/QUOTE]
Hello Tiger79,
Thanks for giving reply
is there any better way to find Point of Interests.
in the above code i got errors.
so..if u have any idea...tell me..
and i need what apis required..
(i know the google.maps...site ., i saw there still i did't catch )
thanks advance