コード例 #1
0
def stations(city):
    # The city parameter is necessary so that everything works
    url = 'https://tfl.gov.uk/tfl/syndication/feeds/cycle-hire/' + \
          'livecyclehireupdates.xml'
    response = requests.get(url)
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #2
0
def stations(city):
    # The city parameter is necessary so that everything work
    payload = {
        'key': app.config['LACUB_API_KEY'],
        'SERVICE': 'WFS',
        'VERSION': '1.1.0',
        'REQUEST': 'GetFeature',
        'TYPENAME': 'CI_VCUB_P',
        'SRSNAME': 'EPSG:4326'
    }
    response = requests.get('http://data.lacub.fr/wfs', params=payload)
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #3
0
ファイル: decobike.py プロジェクト: 974steph/api.openbikes.co
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get('http://www.decobike.com/playmoves.xml')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #4
0
ファイル: nextbike.py プロジェクト: 974steph/api.openbikes.co
def stations(city):
    payload = {'city': city}
    response = requests.get('https://nextbike.net/maps/nextbike-official.xml',
                            params=payload)
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #5
0
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get('https://www.capitalbikeshare.com/data/stations/bikeStations.xml')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #6
0
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get('http://dynamisch.citybikewien.at/citybike_xml.php')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #7
0
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get('http://minaport.ubweb.jp/stations.php')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #8
0
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get(
        'https://secure.niceridemn.org/data2/bikeStations.xml')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #9
0
def stations(city):
    # The city parameter is necessary so that everything works
    response = requests.get('http://www.velo-libelo.fr/vcstations.xml')
    data = util.load_xml(response.content)
    return normalize(data)
コード例 #10
0
def stations(city):
    url = 'https://{}.bixi.com/data/bikeStations.xml'.format(city)
    response = requests.get(url)
    data = util.load_xml(response.content)
    return normalize(data)