示例#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
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
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)