Skip to content

Commit

Permalink
Merge pull request #25 from pravahio/readme_up
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
upperwal authored Sep 18, 2019
2 parents 38f9039 + d4c5c3c commit 9fd6b16
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def main():
m = MeshGTFSR()

feed = m.subscribe([
'/in/delhi'
])
'/in/delhi'
])

for f in feed:
print(f)
Expand Down Expand Up @@ -131,6 +131,10 @@ Now we can start publishing GTFS-Realtime data.
import time
from mesh_gtfsr.mesh import MeshGTFSR

GEOSPACE = [
'/in/delhi'
]

def main():
m = MeshGTFSR()

Expand All @@ -149,8 +153,8 @@ def main():
}]
}

m.registerToPublish()
m.publish(rt)
m.registerToPublish(GEOSPACE)
m.publish(GEOSPACE, rt)

if "__main__" == __name__:
main()
Expand Down

0 comments on commit 9fd6b16

Please sign in to comment.