geo.py
1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from floraconcierge.shortcuts import get_apiclient
def get_cities_list(
country_id=None,
region_id=None,
limit=None,
offset=None,
with_not_delivered=None,
popular=None):
return get_apiclient().services.geo.get_cities_list(
country_id=country_id,
region_id=region_id,
limit=limit,
offset=offset,
with_not_delivered=with_not_delivered,
popular=popular)
def get_city_by_id(id, with_not_delivered=None):
return get_apiclient().services.geo.get_city_by_id(
id, with_not_delivered=with_not_delivered)
def get_continent_by_id(id):
return get_apiclient().services.geo.get_continent_by_id(id)
def get_continents_list(limit=None, offset=None):
return get_apiclient().services.geo.get_continents_list(limit=limit, offset=offset)
def get_countries_list(parent_id=None, limit=None, offset=None):
return get_apiclient().services.geo.get_countries_list(
parent_id=parent_id, limit=limit, offset=offset)
def get_country_by_id(id):
return get_apiclient().services.geo.get_country_by_id(id)
def get_region_by_id(id):
return get_apiclient().services.geo.get_region_by_id(id)
def get_regions_list(country_id=None, limit=None, offset=None):
return get_apiclient().services.geo.get_regions_list(
country_id=country_id, limit=limit, offset=offset)
def get_sub_continent_by_id(id):
return get_apiclient().services.geo.get_sub_continent_by_id(id)
def get_subcontinents_list(parent_id, limit=None, offset=None):
return get_apiclient().services.geo.get_subcontinents_list(
parent_id, limit=limit, offset=offset)
def get_user_ip_info():
return get_apiclient().services.geo.get_user_ip_info()