No commit activity in last 3 years
No release in over 3 years
Get the SEPTA stops closest to a lat/long point for a given bus/trolley route.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 1.11.2
= 10.5.0
= 3.4.0
= 3.0.1
= 1.22.6

Runtime

= 0.3.0
 Project Readme

Build Status

SeptaStopLocator

Get the SEPTA stops closest to a lat/long point for a given bus/trolley route.

SeptaStopLocator leverages the SEPTA stops API.

Usage

require 'septa_stop_locator'

SeptaStopLocator.find(39.9539910, -75.1682170, 34)

=> [{"lng"=>-75.165345,
  "lat"=>39.952672,
  "stopid"=>20659,
  "stopname"=>"15th St Trolley Station",
  "distance"=>935.6262555741262},
 {"lng"=>-75.165369,
  "lat"=>39.952502,
  "stopid"=>31140,
  "stopname"=>"15th St Trolley Station",
  "distance"=>963.389584130993}]

About the stops returned

One stop is typically an inbound stop, while the other is typically an outbound stop.

The stops returned can be used to query the SEPTA Bus/trolley schedules API:

http://www3.septa.org/hackathon/BusSchedules/?req1=<STOP ID>&req2=<ROUTE ID>