Geo-Location-TimeZoneFinder
view release on metacpan or search on metacpan
TimeZoneFinder.xs view on Meta::CPAN
NV lat = 0.0;
NV lon = 0.0;
I32 i;
const char *key;
SV *value;
shp_point_t location;
AV *time_zones;
SSize_t tz_count, tz_num;
SV **svp;
U8 gimme = GIMME_V;
PPCODE:
if ((items - 1) % 2 != 0) {
warn("Odd-length list passed to %s method",
(ix == 1) ? "time_zone_at" : "time_zones_at");
}
for (i = 1; i < items; i += 2) {
key = SvPV_nolen_const(ST(i));
value = ST(i + 1);
if (strEQ(key, "lat") || strEQ(key, "latitude")) {
latitude = value;
( run in 1.711 second using v1.01-cache-2.11-cpan-5511b514fd6 )