<commit_before># LatLongToTimezone
Lat/long to timezone mapper in Java and Swift. Does not require web services or data files.

99% of people using this project just need the one file:

(Java)
https://github.com/drtimcooper/LatLongToTimezone/blob/master/Tester/src/TimezoneMapper.java

(Swift)
https://github.com/drtimcooper/LatLongToTimezone/blob/master/Classes/TimezoneMapper.swift

# Usage

On iOS, the code is available as a CocoaPod.  Just add this to your Podspec:

```
pod 'LatLongToTimezone'
```

Then in your code, you can do

```Swift
import LatLongToTimezone

let location = CLLocation(34, -122)
let timeZone: NSTimeZone = TimezoneMapper.latLngToTimezone(location)

```<commit_msg>Fix sample call in README.<commit_after># LatLongToTimezone
Lat/long to timezone mapper in Java and Swift. Does not require web services or data files.

99% of people using this project just need the one file:

(Java)
https://github.com/drtimcooper/LatLongToTimezone/blob/master/Tester/src/TimezoneMapper.java

(Swift)
https://github.com/drtimcooper/LatLongToTimezone/blob/master/Classes/TimezoneMapper.swift

# Usage

On iOS, the code is available as a CocoaPod.  Just add this to your Podspec:

```
pod 'LatLongToTimezone'
```

Then in your code, you can do

```Swift
import LatLongToTimezone

let location = CLLocationCoordinate2D(latitude: 34, longitude: -122)
let timeZone: NSTimeZone = TimezoneMapper.latLngToTimezone(location)

```
{'fraction_non_alphanumeric': 0.09300699300699301, 'fraction_numerical': 0.01048951048951049, 'mean_word_length': 5.168103448275862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2511035', 'n_tokens_mistral': 499, 'n_tokens_neox': 470, 'n_words': 144}