General questions about the API - What is a geo area and how can I define it?

108 views
Skip to first unread message

Nicholas Smith

unread,
Nov 13, 2014, 7:37:43 PM11/13/14
to transl...@googlegroups.com
I just have a few basic questions about using the API so I can get started.  


What is a geo area and how can I define it?   I know a geo area acts a geographical filter for defining the limits of the scope of transit data I intend to consume.  But are there any online tools I can use to plot out this rectangle, or is there a formula I can write in javascript to define this geo area?

Where do I find a list of Agencies and their ID's?  I have tried the defaults, (12,16), and they work.  But when I change it to say 11, or 26 I get an error.  Where can I find a list of agencies and their identifiers?

Thanks

Stu Zhao

unread,
Nov 14, 2014, 10:24:00 AM11/14/14
to transl...@googlegroups.com
Hi Nicholas,

For the first question, please refer to our API documentation.

For the second question, you can use the "Agencies" end point as shown here.

Thanks,

--
Yanglei (Stu) Zhao
TransLoc, Inc.

--
You received this message because you are subscribed to the Google Groups "TransLoc API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transloc-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DB

unread,
Nov 14, 2014, 11:45:19 AM11/14/14
to transl...@googlegroups.com
Nicholas,

For the geo_area, if you use the rectangle form, it is defined as 
geo_area=NORTHEAST_LAT_LON|SOUTHWEST_LAT_LON

E.g. 
geo_area=35.80176,-78.64347|35.78061,-78.68218


If your bounds are always the same way, you can find the latitude and longitude coordinates of the corners you're interested in by going to Google Maps and right-clicking in the northeast corner of the area you're interested in and selecting "What's here?". The box on Google Maps will then show you the coordinates of that location. Then do the same for the southwest corner.

If you use the point and radius form, you can do the same, except instead of finding the corners right click on the center point of the map.
Reply all
Reply to author
Forward
0 new messages