title: Detect the nearest transit stop from the given location
body: <blockquote>
    <p>I need to get all the nearby public transit information within certain distance from a given location. The type of public transit can be either bus, train, etc..</p>
  </blockquote>
  
  <h2>Here is what I meant:</h2>
  
  <p>If I use Google Map to query <a href="http://maps.google.com/maps?q=transit%20stop%20near%20New%20Bugis%20Street%20Singapore" rel="noreferrer">"Transit Stop near a Location (e.g. Bugis Street Singapore)"</a>, then it will return us all the nearby Transit Stop that I want. Like the one shown in the picture. But I need its API to get those details out. (such as bus service No, bus stop ID, etc. as shown in the picture). But I couldn't found any.</p>
  
  <p><img src="https://i.stack.imgur.com/HrGI8.jpg" alt="Bus Stop"></p>
  
  <h1>Here is what I've tried</h1>
  
  <ol>
  <li><p>I have tried using the <strong><a href="http://code.google.com/apis/maps/documentation/places/#PlaceSearches" rel="noreferrer">Google Map Nearby Place API</a></strong>  to search for a place with the type of <a href="http://code.google.com/apis/maps/documentation/places/supported_types.html" rel="noreferrer">transit_station, bus_station, train_station,etc..</a>. But they all return Zero Result.  I could only use this API to search for Nearby Place of Interest, but not nearby transit.</p></li>
  <li><p>I've also check <strong><a href="https://developers.google.com/transit/" rel="noreferrer">Google Transit API</a></strong>, but I only found API to insert transit data to Google but Not to extract it out. I think Google didn't publicize the transit API yet.</p></li>
  </ol>
  
  <hr>
  
  <h2>Additional Information</h2>
  
  <p>I have check the site <a href="http://gothere.sg" rel="noreferrer">Gothere.sg</a>. And confused How? because they able to detect the nearby transit. Is it only because they specify the direction "From-To".</p>
  
  <p><a href="https://stackoverflow.com/questions/3089772/find-nearest-transit-station-stopover-bus-train-etc-in-google-maps">I have read a pretty similar question on Detecting nearby transit</a>. Perhaps It is not <em>yet</em> possible if we use Google APIs. </p>
  
  <blockquote>
    <p>But nothing is impossible for me</p>
  </blockquote>
  
  <h2>Last Resort</h2>
  
  <p>As Last resort, I also check with the provider, <a href="http://publictransport.sg" rel="noreferrer">publictransport.sg</a>. I hack around with the API. And found out that it can provide me with a transit stop with some coordinate. But it lack a nearby API which found on Google Map. </p>
  
  <p>So one workaround I could think of at the moment, is to use the provider in this case was <a href="http://publictransport.sg" rel="noreferrer">publictransport.sg</a> which give me the Stop ID and its coordinate. To do this, First, I have to translate the location name using the Google GeoCoding API into Coordinate then I have to create my own nearby calculation to find the nearby station by comparing the searched Coordinate against all the station coordinate that the provider have.</p>
  
  <p>Now, it is possible for me, but very painful :-)</p>
  
  <hr>
  
  <h2>Back to the Question:</h2>
  
  <p>Is there a way to retrieve all transit stop data from a given location (either using Google Maps API or Any other API)? and How did u do that?</p>
  
  <hr>
  
  <h2>Thanks</h2>
  
  <p>At least thanks for reading my lengthy question. I appreciate any help from you. Thanks in advance :-)</p>