This is really easy if you use your own server.
Simply store lat/long values for the points you'd like.
To get points near another point construct a lat/long perimeter around it.
Basically, like a rectangle you'll have a start x,y lat/long pair and an
end lat/long pair.
You can then query your database to pull points within that perimeter.

I suck at math so I used:
http://search.cpan.org/~asp/Geo-Calc-0.04/lib/Geo/Calc.pm
Some APIs may offer something like this.

FYI, as other have pointed out.  This has little to nothing to do with
Android.  Everyone has given you good tips, but come back with Android
specific questions plz.


On Fri, Dec 2, 2011 at 4:53 AM, cellurl <[email protected]> wrote:

> some api's return the accuracy, closeness to the point.
> I would dig in google-map-api or ask on their group.
>
> -cellurl
> Speederaser: No more tickets
> http://goo.gl/iIKqD
>
>
>
> On Dec 2, 3:00 am, PaulH <[email protected]> wrote:
> > Roads don't necessarily travel in a straight line between two points.
> >
> > On Dec 2, 1:10 am, TreKing <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Thu, Dec 1, 2011 at 5:49 AM, PaulH <[email protected]> wrote:
> > > > how can I check if my current location is in the zone if I have only
> the
> > > > start point and end point?
> >
> > > If you're saying you have a set of points that define these "zoned
> roads",
> > > than some basic math will allow you to find the nearest points to your
> > > location and the distance to the line formed by those points. This of
> > > course has nothing to do with Android specifically.
> >
> > >
> ---------------------------------------------------------------------------
> ----------------------
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to