/    Sign up×
Community /Pin to ProfileBookmark

Booking form based on Geo location

Hi,
Im looking to develop a booking form which allows a user to put in two separate destinations and then give them a price based on the distance between the two destinations. Is there a simple way of doing this?
Thanks in advance

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@BelrickFeb 23.2011 — Simple?

I doubt it.

As a suggestion have a database of locations that the dropdown box is filled from. With those locations you will also have their logitude and latitude locations stored.

Then you can use an equation to work out the distance.

http://www.movable-type.co.uk/scripts/latlong.html

Ajax all the way to.
×

Success!

Help @ospromotions spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...