As an FYI, it appears there was a typo in my URL for the geo scoping,
in that it was missing the "lon" variable. May be self-evident but
here's a correct version in case anyone is confused:
http://api.plancast.com/02/plans/query.json?scope=local&lat=37.47&lon=-122.26
Mark
On Mar 6, 9:18 pm, Mark Hendrickson <
m...@plancast.com> wrote:
> The new endpoint for querying by location is ready. I hope to have real
> documentation up for it before too long, but we'll need to migrate off
> Google Groups since they no longer let us edit or add pages. And that'll
> have to wait until at least after SXSW.
>
> To get all plans in a given area, use this:
>
>
http://api.plancast.com/02/plans/query.json?scope=local&lat=37.47&-12...
>
> The scope needs to be set as "local" (vs. "everywhere", or null -- same
> thing). And pass both a "lat" and "lon".
>
> If you want to get only plans that fall within a given category, modify it
> as such:
>
>
http://api.plancast.com/02/plans/query.json?scope=local&lat=37.47&-12...
>
> Notice the "category" param which is the name of the category. And the
> "type" param which specifies we want plans that match a category.
>
> Both of these default to 50 miles of radius. If anybody wants this to be
> flexible, let me know and I can add a param for it.
>
> Mark
>
>
>
>
>
>
>
>
>
> On Sun, Mar 6, 2011 at 12:41 PM, Mike Dierken <
dier...@gmail.com> wrote:
> > Cool!
> > I'm deploying an update now, but without lat/long - just to see how
> > the formatting, etc. all work out.
> >
http://geonote.org/plans
>
> > Here are some sample URL query terms from other services
> > flickr : lat=nnn.nn&lon=nnn.nn&radius=nn
> > geonames : lat=nnn.nn&lng=nnn.nn&radius=nn
>
> > Mike
>
> > On Sun, Mar 6, 2011 at 11:55 AM, Mark Hendrickson <
m...@plancast.com>
> > wrote:
> > > Yep I'll set it up to take a lat/long.
> > > Not 100% sure what the URL format will be like. Will get back to you
> > about
> > > that once I sort it out more.
> > > Mark
>
> > > On Sun, Mar 6, 2011 at 9:41 AM, Mike Dierken <
dier...@gmail.com> wrote:
>
> > >> That sounds great.
> > >> My app currently only has lat/long - will that be supported?
> > >> If so, what would the URL format look like? (I can probably toss that
> > >> in this afternoon if I know the syntax)
>
> > >> Mike
>
> > >> On Sat, Mar 5, 2011 at 5:01 PM, Mark Hendrickson <
m...@plancast.com>
> > >> wrote:
> > >> > Sorry for the delay on this, got pushed back by other things. Good
> > news
> > >> > is
> > >> > that I have time tomorrow to get it place for you guys. Thanks for the
> > >> > nudge!
> > >> > Mark
>
> > >> > On Sat, Mar 5, 2011 at 4:23 PM, Mike Dierken <
dier...@gmail.com>