PHP/Javascript/HTML Great Circle Distance Tutorial

PHP/Javascript/HTML Great Circle Distance Tutorial

PHP/Javascript/HTML Great Circle Distance Tutorial

Here is a tutorial that calculates Great Circle Distances on Earth via the entry of Latitude and Longitude. The calculations are not true geodesic calculations and so, we will show the result to the nearest metre. We assume the radius of the Earth is 6371000 metres, but Land Surveyors will tell you this is a pretty simplistic assumption, for the reason that 6371000m could be improved upon, and because the Earth is not a true sphere, and, as is a real issue in the tutorial’s example, no account is taken of the Z co-ordinate, and methinks a walk down from the top of Mt Everest is worth a few metres, and a few beers, maybe?! Of course, if you get into all this, it is a very interesting area, and here is a link to a Wikipedia page that may lead you to further research, if you want more detail.

The Javascript embellishments in this tutorial mainly revolve around:

The use of window.open can sometimes be blocked by web browsers depending on their settings and you can read a bit more about such issues here.

Useful tutorials that helped, and we give thanks to, were:

Here is a link to a live run. (The way it changed on 1/12/2013 to have a dropdown of placenames as extra functionality will be explained in a tutorial called PHP/Javascript/HTML Geographical Placename Integration Tutorial on 3/12/2013.)

Here is a link to some downloadable PHP programming source code which you may want to rename to distance.php

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Land Surveying, Trips, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

17 Responses to PHP/Javascript/HTML Great Circle Distance Tutorial

  1. Thanks , I have lately been searching for info approximately this topic for any when and yours could be the finest I’ve discovered out so far. Even so, what concerning the bottom line? Are you positive about the supply?

  2. Merely wanna input which you have a very good internet site , I really like the pattern it actually stands out.

  3. Perfect piece of work you might have done, this web site is truly cool with fantastic info .

  4. restaurants in Nairobi says:

    This can be the correct weblog for anybody who hopes to locate out about this subject. You recognize an incredible deal its nearly tough to argue with you (not as well I just would want…HaHa). You surely place a fresh spin making use of a topic thats been revealed for a long time. Great stuff, just great!

    https://justpaste.it/su17

  5. Thank you, I’ve just been searching for information about this subject for a while and yours is the best I’ve discovered till now. But, what in regards to the conclusion? Are you sure about the source?

  6. persuade says:

    I‘¦ll immediately take hold of your rss as I can’t to find your e-mail subscription link or e-newsletter service. Do you have any? Kindly let me realize so that I may subscribe. Thanks.

  7. Very well written post. It will be helpful to anybody who employess it, including myself. Keep doing what you are doing – looking forward to more posts.

  8. finance says:

    Anyways thanks for your concepts. I appreciate it. Please make more short articles associated with this

  9. Hi there, just became aware of your weblog via Google, and found that it really is truly informative. I’m going to watch out for brussels. IÒ€ℒll be grateful in the event you continue this in future. Numerous people is going to be benefited from your writing. Cheers!

  10. kind says:

    Adoring the weblog.. all the best Particularly advantageous perception, many thanks for posting.. of course, study is paying off. sure, research is paying off.

  11. Smashing says:

    Get pleasure from the admission you provided.. of course, research is paying off. Wonderful thoughts you’ve got here.. Isn’t it fantastic whenever you discover a good article?

  12. Amelia Ross says:

    It can be near unattainable to encounter well-qualified visitors on this subject, nevertheless you seem like you understand the things you’re talking about! With Thanks

  13. May I just say what a comfort to uncover someone who really knows what they’re discussing online. You definitely understand how to bring a problem to light and make it important. More people must read this and understand this side of your story. I was surprised you’re not more popular given that you surely have the gift.

  14. Grace Bell says:

    You need to properly layout your site for easy navigation. Network Marketing has become a successful concept that helps ordinary people to turn into successful entrepreneurs and finally into Millionaires. Taking action is extremely important, but taking effective action is even more important.

  15. Jack Bower says:

    Good post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It’s always useful to read content from other authors and use a little something from their sites.

  16. I know this web site offers quality dependent articles and additional information, is there any other web page which offers these kinds of stuff in quality?|

  17. In fact when someone doesn’t understand after that its up to other users that they will assist, so here it takes place.|

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>