Primary competition visual

Sendy Logistics Challenge

Helping Kenya
$7 000 USD
Challenge completed ~6 years ago
Prediction
2175 joined
448 active
Starti
Aug 23, 19
Closei
Nov 25, 19
Reveali
Nov 26, 19
if you don't know how to get data from api (try this script)
Notebooks ยท 6 Nov 2019, 22:09 ยท 42

import openrouteservice

from openrouteservice.directions import directions

client = openrouteservice.Client(key='xxxxxxxx') # Specify your personal API key

rootTrain=[]

rootTest=[]

train=train[['Order No', 'Pickup Long','Pickup Lat','Destination Long','Destination Lat']]

test=test[['Order No', 'Pickup Long','Pickup Lat','Destination Long','Destination Lat']]

for i in train.index:

coords=((train.at[i,'Pickup Long'],train.at[i,'Pickup Lat']),(train.at[i,'Destination Long'],train.at[i,'Destination Lat']))

rootTrain.append(directions(client, coords))

train['root']=rootTrain

for i in test.index:

coords=((test.at[i,'Pickup Long'],test.at[i,'Pickup Lat']),(test.at[i,'Destination Long'],test.at[i,'Destination Lat']))

#test.at[i,'route']=directions(client, coords)

rootTest.append(directions(client, coords))

test['root']=rootTest

Discussion 42 answers

You should only loop over unique Pickup/Destinatoin Lat/Long combinations, it'll save you thousands of API requests. No need to get directions multiple times for the same route in this case.

6 Nov 2019, 22:18
Upvotes 0

Thank you belaziz how do you create the personal API key?

7 Nov 2019, 08:43
Upvotes 0
User avatar
Expensya

https://openrouteservice.org/dev/#/signup

1-create an account

2-verify your accountn with email

https://openrouteservice.org/dev/#/home

3-Request a token

4-Good luck

https://openrouteservice.org/dev/#/home For newbies like me follow this link, create an account after that request for a token. It is generated immediately.

I GET ApiError: 500

import openrouteservice from openrouteservice.directions import directions coords = ((-1.3177546999999998,36.8303703),(-1.3004062, 36.829741)) client = openrouteservice.Client(key='my_key goes here') # Specify your personal API key routes =directions(client, coords)

7 Nov 2019, 09:49
Upvotes 0

I GET ApiError: 500

import openrouteservice

from openrouteservice.directions import directions

coords = ((-1.3177546999999998,36.8303703),(-1.3004062, 36.829741))

client = openrouteservice.Client(key='my_key goes here') # Specify your personal API key

routes =directions(client, coords)

7 Nov 2019, 09:50
Upvotes 0
User avatar
Expensya

you can only make 2000 requests per day, so you need to rerun your script, every 24 hours, until you collect all of the data you need or maybe you may try another key from another account. Moreover, I think that with another account, not the free one, you can get what you want.

I got the solution. The longitude needs to come before the latitude.

User avatar
Expensya

of course

line9:coords=((train.at[i,'Pickup Long'],train.at[i,'Pickup Lat']),(train.at[i,'Destination Long'],train.at[i,'Destination Lat']))

has anyone downloaded the data already? Only asking in case it is something you do not mind sharing to save people requesting tokens every day to download the same data?

8 Nov 2019, 07:01
Upvotes 0
User avatar
Expensya

your email !!

its ketuld@gmail.com. Thanks in advance!

christopherajulo@gmail.com. Thank you.

Hello Belaziz, I'm struggling with the errors to retrieve this data, could I have this data please, my mail is: mamadoutive4@gmail.com

chinedulaw62@gmail.com

User avatar
African Institute for Mathematical Sciences

sibrahim1396@gmail.com kindly send me the data too

User avatar
University of khartoum

mmakky1@gmail.com

thanks in advance

User avatar
flamethrower

Please can you send to my email too

damolaoriola@gmail.com

Thanks so much in advance

Pls can you forwarforward the datdata to me

nanabaffourowusu@gmail.com

User avatar
Ciklum

Dear belaziz, could you share the data file here with a link to some file sharing service so anybody in the competition could use it easily? Thanks!

spkibe12@gmail.com

Hi @belaziz. Would you please share the data with me as well? sburger29@gmail.com. Thank in advance!

Please do send me the data too, justenyirimana@gmail.com

9 Nov 2019, 18:20
Upvotes 0

can you please send the data to abhishekpatil0853@gmail.com?

9 Nov 2019, 18:49
Upvotes 0

Pls I am interested in the data

nanabaffourowusu@gmail

ayoub.chebbi3@gmail.com

thxxxxxxxxx

Hi! I'm also interested in the data (cacos1988@gmail.com). :)

10 Nov 2019, 10:01
Upvotes 0

Hi Belaziz! Thanks for sharing. Do you mind to send me the data at igbongba@gmail.com? Appreciate it

10 Nov 2019, 20:32
Upvotes 0

Hi Belaziz, thanks for sharing, mosesbomera@yahoo.com thanks.

11 Nov 2019, 07:16
Upvotes 0

Hi Belaziz!, I greatly appreciate if you could share the dataset with me... my email id is anirudh7873@gmail.com. Thanks!

11 Nov 2019, 15:54
Upvotes 0

Thx for sharing. Can you a copy at papaass07@gmail.com

12 Nov 2019, 12:47
Upvotes 0

Hello @belaziz Kindly email me the dataset, rose.wambui780@gmail.com

Or anyone who has been emailed the dataset can cc:

Hello Belaziz , can you email me the data ?

Thanks.

could anybody possibly send me the file as well?

kand3572@uni.sydney.edu.au

much appreciated!

16 Nov 2019, 02:32
Upvotes 0

Hi Everyone!

Could anybody send me the data file?

archimedeameck@gmail.com

Thanks by anticipation!

Hi All! Could anybody send me the data file?

namestnikov.nikita@gmail.com

Thank you in advance!

16 Nov 2019, 22:27
Upvotes 0

Can anyone please send me the data in "" ibrahima.fall@aims-senegal.org "".

Thanks.

22 Nov 2019, 00:14
Upvotes 0