|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Google maps
hey guys i need to make a small application the remembers my start adresse and when i put a go to adresse it tels me the km and time?
is that possible |
|
#2
|
||||
|
||||
|
Yes, it's absolutely possible.
But you'll need more information than "an address". You need location information, something that tells you the precise point at location A and location B... Then you can use maths to work out the distance between the two points. You can either get a measuring tape and begin to plot your local area by hand, or you can buy this information from those reselling geographical data such as post-codes, addresses, etc. Some such services will sell you a bulk load of data, whereas others will allow you to pay-per-lookup. We have address data for our local area that includes the lattitude and longitude, and so we're able to work out distances between two addresses. Hope this helps.
__________________
PHP Code:
If you found what I've said helpful, I'm interested in reputation points! |
|
#3
|
|||
|
|||
|
so ya i would put as default my address then we would just need to put the destination address.
but when i ment google can't we use googles api to do this? |
|
#4
|
||||
|
||||
|
Sorry about the huge delay in getting back to you.
The answer is yes, the Google API will allow you to do geographical lookups... All the information you need is here, http://code.google.com/apis/maps/do....html#Geocoding Hope you got on with this okay. |
|
#5
|
|||
|
|||
|
thx for the reply i wil check it out.
cause on the google exaple it shows pre determind addresss. to go to. i need to imbed my address and a field to input anither address then it tels me the distance between my address and the address in the input box. |
|
#6
|
||||
|
||||
|
important distinctions - is that as the crow flies, or as a car drives ... can have serious implications for mileage algorithms ...
__________________
--Ax without exception, there is no rule ... Heavy Haulage Ireland Targeted Advertising Cookie Optout (TACO) extension for Firefox The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Google maps |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|