Use google places automcomplete to calculate distance between two entered places

Закрито Опубліковано %project.relative_time Оплачується при отриманні
Закрито Оплачується при отриманні

On the homepage of [url removed, login to view] there are 2 autocomplete fields powered by Google. Depending on whatever two places the user enters you have to determine the straight distance between those 2 points. If the distance is smaller than a certain treshold there is a javascript action (hiding of some fields).

Some information I found:

[url removed, login to view]

and:

[url removed, login to view]

This function can be used to calculate the distance between two points:

function distance_slc($lat1, $lon1, $lat2, $lon2) {

$earth_radius = "6371"; # in km

$delta_lat = $lat2 - $lat1 ;

$delta_lon = $lon2 - $lon1 ;

$distance = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($delta_lon)) ;

$distance = acos($distance);

$distance = $earth_radius*$distance;

$distance = round($distance, 4);

return $distance;

}

JavaScript PHP

ID Проекту: #6893850

Про проект

22 заявок(-ки) Дистанційний проект Остання активність Jan 28, 2015

22 фрілансерів(-и) готові виконати цю роботу у середньому за $84

entrepreneur2000

Hello, I am ready to implement a function to calculate distance between 2 points. Can you please contact me to discuss the requirements of this project in more detail? My background: I am a professional web devel Більше

$100 USD за 2 дні(-в)
(166 відгуків(и))
8.2
mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks

$185 USD за 6 дні(-в)
(370 відгуків(и))
8.1
nittilegupta

Hi, I would like to fix this issue of Google Places. Would you please invite in on this project? Looking forward for your reply, regards, Nittile Gupta

$84 USD за 0 дні(-в)
(88 відгуків(и))
7.5
psenthilkumar

Hi, I have reviewed the site , description and understood it completely. I can do this job for you :) Please get back to me with your kind reply, I am ready to start immediately and assure you to deliver with in men Більше

$99 USD за 0 дні(-в)
(162 відгуків(и))
7.6
kasianand

Hi, I checked your website www.planetrain.com. I can hide the fields required by you based on the distance between two google autocomplete place fields. I have 3+ years of experience in front end development usin Більше

$55 USD за 1 день
(77 відгуків(и))
7.1
Neferius

Yes Sir, I know how to implement this task, I already faced this problem in many other projects, one was related to filter users in a range on miles and was based on the earth radius distance calculation. So i can im Більше

$255 USD за 1 день
(22 відгуків(и))
6.6
maleo

Hello, I would like to do this project for you, I have done quite a lot of google autocomplete projects and I can do it for you right now.

$83 USD за 3 дні(-в)
(95 відгуків(и))
5.8
Naseem065

Hi there, my name is Naseem and I am experienced with google and bing maps. I have already integrated gogle maps created search functions similar to what you are asking. Will be able to deliver your map within couple o Більше

$100 USD за 1 день
(77 відгуків(и))
5.6
wyvasi

Hello ! I just finished a project using google maps api . And I am also interested in this one!

$45 USD за 1 день
(30 відгуків(и))
4.8
DesignupH

Er is nog geen voorstel voorzien

$55 USD за 1 день
(4 відгуків(и))
3.0
Panchratna

- 4 Years of experience in IT Industry working in accordance with the company’s SDLC to design and develop both new and old enhancements to software applications that meet business specification. - Requirements anal Більше

$100 USD за 5 дні(-в)
(0 відгуків(и))
0.0
lecoleda

Hi, I am a software engineer with knowledge in geomatics. I have been using the Google Maps API for several years. My current job is in a company which is a Google Partner for geospatial solutions. The Google Maps Більше

$45 USD за 1 день
(0 відгуків(и))
0.0
dartdl

I am a web developer with 8 years of experience on web application, using javascript html5 and css3 like principal based on my work, also having experience with some 3dt party library like Jquery , backbone, Angularjs Більше

$55 USD за 1 день
(0 відгуків(и))
0.0