Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

how to show geofencing in blackberry

Hi,

 

      I have a requirement to show geofencing (like survey area) by using current location GPS data...

please check the screen shots...

 

      can any one tell me how  an i get my exact requirement is it possible with google maps ??

 

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: how to show geofencing in blackberry

hi all,

 

         just tell me my requirement is  possible or not in blackberry?

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: how to show geofencing in blackberry

have you got any solution for this.

 

please reply

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: how to show geofencing in blackberry

Hi,

 

I developed the same thing using  Javascript in Android because our client needs it in android, i haven't yet get any solution in blackberry.

 

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: how to show geofencing in blackberry

could you please tell me, which javascript api you are using for your android app..

 

thanx

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: how to show geofencing in blackberry

 

 

Just go throught the below link

 

http://geojason.info/demos/line-length-polygon-area-google-maps-v3/

 

here u need to add points mannually then u will get area between selected points

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: how to show geofencing in blackberry

Thanx kiran_b for replying me..

 

if i send my current lat and lon parameter to this api..

 

then this api can tell us that currently my location is under this region or outer from the region ?

 

if yes then how can i do that ?

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: how to show geofencing in blackberry

 

Hi,

 

Using the below api you can get area between selected points...

Regular Contributor
Posts: 55
Registered: ‎05-30-2011
My Device: blackberry torch 9800
My Carrier: Airtel

Re: how to show geofencing in blackberry

yes i'm able to get area of this region

 

but i want to get that my current lat lon is coming under this area or outer from it.

 

 

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: how to show geofencing in blackberry

 

 

You can get current location longitude and lat values by using GeoLocation class check below link to get current long and lat values

 

http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949

 

once if you get these values just pass current coordinates then you will get area of current selected region.

 

(In detail in just create one button and in  a button click get current cooridnates of first point then move to other place then again press the button then you will get coordinates with that you can calculate area)