def destinations(stop):
    """Get destination information."""
    from pyruter.api import Departures

    async def get_destinations():
        """Get departure information."""
        async with aiohttp.ClientSession() as session:
            data = Departures(LOOP, stop, session=session)
            result = await data.get_final_destination()
            print(json.dumps(result, indent=4, sort_keys=True,
                             ensure_ascii=False))
    LOOP.run_until_complete(get_destinations())
def destinations ( stop ) : from pyruter . api import Departures async def get_destinations ( ) : async with aiohttp . ClientSession ( ) as session : data = Departures ( LOOP , stop , session = session ) result = await data . get_final_destination ( ) print ( json . dumps ( result , indent = 4 , sort_keys = True , ensure_ascii = False ) ) LOOP . run_until_complete ( get_destinations ( ) )
Get destination information.