Đã Đóng

Google Distance Matrix API in JavaScript -- reposted



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.

Kĩ năng: Javascript, jQuery / Prototype, PHP, Kiến trúc phần mềm

Xem nhiều hơn: 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

Về Bên Thuê:
( 15 nhận xét ) Vienna, Austria

ID dự án: #20041525

6 freelancer đang chào giá trung bình €36 cho công việc này


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 Thêm

€30 EUR trong 7 ngày
(56 Nhận xét)
€12 EUR trong 5 ngày
(54 Nhận xét)

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 Thêm

€25 EUR trong 1 ngày
(73 Nhận xét)

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 Thêm

€100 EUR trong 9 ngày
(52 Nhận xét)
€23 EUR trong 1 ngày
(0 Nhận xét)

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 Thêm

€25 EUR trong 7 ngày
(0 Nhận xét)