Here is a tutorial that presents various functionality via placename lookups of Latitude and Longitude. The inhouse functionality called on include Sun Angles, Moon Angles and Great Circle Distances. Am hoping it can give some pointers to ideas to do with supervision and automation, in that you can have an idea that works well (which is very important) but is not so user-friendly. Sometimes in this scenario a supervisory layer can improve things and make the application easier to use. Asking the question “What would make this easier to use?” is a good thing to step back and ask after you have created an application. And, of course, with all things, there is the “why”? Doing that here made me realise what was needed to improve the application was a data source that linked geographicals to placenames. This led to the creation of the new supervisor and the existing applications were modified to accept improved and more functional calling arrangements. This resulted in a central more functional central application. Not everybody likes this centralization of functionality and for a future tutorial soon we may integrate those “child” applications in another way that doesn’t need a supervisory layer.
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:
- Placename geographicals via cURL
-
- Subsolar Point
- Subsolar Point calculator helper via cURL
- Sun Angle formulae
- Sydney positioning
- CSS Border Radius
- CSS 2D Transformation Rotations
-
- Sublunary Point
- Sublunary Point calculator helper via cURL
- Moon Phase calculator helper via cURL
- Sun Angle formulae applied to the case of the Moon Sublunary Point
- Sydney positioning
- CSS 2D Transformation Rotations
-
- Great Circle Distance formulae
- Javascript rounding
- Javascript commas for thousands
- Katmandu positioning via a Google search
Here is a link to a live run.
Here is a link to some downloadable PHP supervisory “parent” programming source code which you may want to rename to place_latlong.php
Here is a new link to some downloadable PHP “child” programming source code which you may want to rename to distance.php (the methodology behind this link’s workings is explained in days to come).
Here is an old link to some downloadable PHP programming source code which you may want to rename to distance_old.php (for comparison purposes).
Here is a new link to some downloadable PHP “child” programming source code which you may want to rename to sun_angle_now_at.php (the methodology behind this link’s workings is explained in days to come).
Here is an old link to some downloadable PHP programming source code which you may want to rename to sun_angle_now_at_old.php (for comparison purposes).
Here is a new link to some downloadable PHP “child” programming source code which you may want to rename to moon_angle_now_at.php (the methodology behind this link’s workings is explained in days to come).
Here is an old link to some downloadable PHP programming source code which you may want to rename to moon_angle_now_at_old.php (for comparison purposes).
If this was interesting you may be interested in this too.