Fermé

Google Distance Matrix API in JavaScript -- reposted

UNDERTAKE ONLY IF YOU WORKED WITH DISTANCE MATRIX API

AND YOU ARE A GURU OF PROMISES, ASYNC-WAIT OPERATIONS

The project has to be carried out in JavaScript or PHP.

In this JavaScript project, we would like to use the Google Distance Matrix API. We have a valid API key, which is embedded into the code already.

We have a bunch of addresses in an array. We would like to measure the distance among all the origin and destination addresses, so in every possible variations without duplicates.

The problem: the callback function runs on a very different speed, and when we got back data from the callback function, we did not know which response belongs to which query.

We are using IDs to identify the address (startID and endID), but we can not pass that to the callback function, so we loose track: we don't know which distance data belongs to what.

The mission is to push the IDs through the whole process so that we can know which measurement we are getting back.

A good solution here would be async-wait functions and promises but that is high for me.

On the top of the problem we are getting the "Can not read property "value" of undefined. We did not get this error before, this code was giving back distance data.

Compétences : Javascript, jQuery / Prototype, PHP, Architecture Logicielle

en voir plus : calculate distance google maps java api javascript, google distance matrix mysql, Google distance matrix api, google maps distance matrix api example, google maps distance matrix api python, calculate distance between two addresses using google api, google maps javascript api, google distance matrix api example php, google-distance-matrix npm, google distance matrix api pricing, google matrix javascript api, google distance matrix api example, google distance matrix api latitude longitude, google distance matrix api lat, google maps distance matrix api excel, google distance matrix api in c#, google distance matrix api c#, google distance matrix javascript, google maps distance matrix api query limit, google distance matrix api example android

Concernant l'employeur :
( 15 commentaires ) Vienna, Austria

Nº du projet : #20041525

6 freelance font une offre moyenne de €36 pour ce travail

hasanjack

Hi sir I am Hasan Jack and I have been doing PHP/Laravel Development since last 5 years, so because of my relevant experience I really feel my self best fit for this website. Please have a look at link below for my po Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 7 jours
(56 Commentaires)
6.2
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 5 jours
(54 Commentaires)
5.9
manjeet2017

Hello Just to introduce my self ,I have more than 5+ years of experience in design & development. And as a policy we will provide 3 month maintenance "free of cost" for the project done by us. Now coming on this Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(73 Commentaires)
5.5
cobol1962

Hello, I am very expirienced developer with great knowledge of JavaScript, JQuery, AJAX, CSS, Bootstrap. Also i am expert using PHP and ASP.NET. Php framework: CodeIgniter REST API's, getting data or creating API Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 9 jours
(52 Commentaires)
5.7
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% EUR en 1 jour
(0 Commentaires)
0.0
PageOllice

Hello Dear, I have expertise in PHP, JavaScript, Laravel, WordPress and HTML. I have 11+years experience in mobile and web development. I am interested in your project and invite you to discuss in details. Please repl Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% EUR en 7 jours
(0 Commentaires)
0.0