Figure out time by latitude/longitude?

前端 未结 5 540
别跟我提以往
别跟我提以往 2020-12-10 00:13

Here\'s the deal. I have a latitude/longitude set of a location. I need to figure out what the current time is in that location. Here\'s how I was getting it before:

5条回答
  •  春和景丽
    2020-12-10 00:46

    I've written a small Java class to do this, with the data embedded in the code. It could be easily translated to ObjectiveC. The database is embedded in the code itself. It's accurate to 22km.

    https://sites.google.com/a/edval.biz/www/mapping-lat-lng-s-to-timezones

提交回复
热议问题