Timezone from latitude and longitude in stata - geolocation

I have found this informative question but the answers address only implementations using programing languages I am not familiar with.
Does there exist a prewritten script from SSC or similar to get the timezone from lon and lat coordinates in stata?
EDIT:
I see. Thank you for the answer and sorry for wasting your time.

There is a very handy tool called google. It's amazing! you can find all sorts of things!
http://www.stata.com/support/faqs/graphics/spmap-and-maps/

Related

NUTS Regions to UK Postcodes

I was just wondering if anybody had a reliable way to convert UK postcodes to their respective NUTS region/code?
I managed to find a .csv on eurostat's website, but their data appears to be a bit inaccurate (i.e classifying Dudley as in Scotland and using the old NUTS regions for London).
I've searched endlessly online for anything like this, but as I've only just heard of NUTS today, I'm unsure whether I'm even looking for the right thing.
The title of your question says NUTS to UK postcodes but in the body you mention UK postcodes to NUTS. I'm not sure whether you are interested in both.
There is a simple way to turn UK postcode to NUTS (both names and codes) using R:
devtools::install_github("erzk/PostcodesioR")
library(PostcodesioR)
# both will work:
postcode_query("EC1Y8LX")
postcode_lookup("EC1Y8LX")
This will return a list with geographic information about the postcodes.
Disclaimer: I'm the author of the PostcodesioR package.

How to create a regional google heatmap

For a real estate project I need to demonstrate the property rates by regional(not markers) on google map by means of geochart/intensitymap/ drilldown highchart. I found that geochart is not capable to show states. The map I need is of Australian suburbs not the five states.
Any advice is appreciated.
I am afraid at this point in time the answer is: Google's GeoChart for Oz doesn't offer suburb level imagery.
Early last year I went to a networking function in Brisvegas where someone was pitching http://viewdata.io/ which looked interesting, but I didn't investigate very thoroughly because Google's state&territory map was good enough for my project.
Furthermore, there is a pile of urls being thrown around over at this aussie whirlpool thread: http://forums.whirlpool.net.au/archive/2184431 "Creating a Heatmap using Postcodes".
Good luck.

what is the number used by apple geolocation

Whenever we use the geolocation api we get a number like 3.234345 for latitude and longitude which basically describes our position.
Is the number in radians ? what exactly is this number and what does it mean.
Sorry I tried searching a lot of places but could not find an answer,
Would appreciate it if some one can help me understand
I finally figured it out. It is called Decimal Degrees and is used by Apple , Google maps etc.
http://en.wikipedia.org/wiki/Decimal_degrees

How to calculate sunrise and sunset time for current date with Delphi

I need to determine sunrise and sunset times (local time) for the current day given a specific latitude and longitude and using Delphi (I am using XE2). I've found this article and used the SysTools library but the results do not agree with published tables for the UK.
Has anyone seen a pascal algorithm for this?
Some random sites:
SunTime Component
Torry's Delphi Pages
Here you can find some implementations in c, c++, pascal and others:
http://www.sci.fi/~benefon/stuff.html
For the pascal one you can go here:
http://www.sci.fi/~benefon/SUNDAY.PAS
Also, are you taking into account the daylight saving time?
Another link you could find helpfull is:
http://www.delphiarea.com/products/delphi-components/suntime/
It's a component to calculate sunrise and sunset times.
Hope this helps you.
What kind of times do you need? There are several defintions for "rise" and "sunset" (i.e. civil, nautical, astronomical). When comparing to published tables, you also need to know how those tables were calculated (geocentric position or not, standard time or true local time, and so on) and what result the used algorithms gives you. There are also some approximated algorithms using just a few terms and more precise one using much more. Also, be aware of the IEEE floating point issues, in some situations they can decrease precision a lot.
One of the best sources for such algorithms is Jean Meeus' Astronomical Algorithms (1998), 2nd edition

Guessing the time zone from an arbitrary "location" string?

I'm trying to run some statistics over the Stack Overflow data dump, and for that I would like to know the time zone for each user. However, all I have to go on is the completely free-form "location" string.
I'll stress that I'm only looking for an approximation of the time zone; of course, in general this is an unsolvable problem. However, many people fill out their country, state and/or city, which should give a pretty good indication. It's okay if it fails for other cases. It doesn't have to be reliable, it doesn't have to be accurate, it doesn't have to cover all bases.
I don't want to waste too much time on this, so I'm wondering if there is some code out there that can make a reasonable guess. Any language, platform, API or library goes. Any ideas?
Check this discussion for information on how to get the lat/lon from an arbitrary location string.
Once you have the lat/lon, you can use the web services at GeoNames to retrieve the time zone.

Resources