Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)