webempoweredchurch / wec_map

Mapping extension for TYPO3 that connects to geocoding databases and Google Maps API.
http://webempoweredchurch.org
6 stars 3 forks source link

Inconsistent return values from cache lookup #5

Closed ckoehler closed 12 years ago

ckoehler commented 12 years ago

In reference to an entry in calendar base bug tracker (http://svn.webempoweredchurch.org/issues/2018):

The cache lookup function generates inconsistent return values, depending if there is a record found in the cache or not.

If yes, the values will have the same precision as they have in the database. (e.g., long=13.823203) If no, they will have the maximum precision returned from the geocoder (e.g., long=13.8232030)

It doesn't matter for the further processing, but with cal base integration, tcemain::checkStoredRecord() function returns an error regarding a "value mismatch with fieldtype".

class.tx_wecmap_cache.php, around line 95, add: $latlong['lat'] = trim($latlong['lat'],'0'); $latlong['long'] = trim($latlong['long'],'0');

JanBartels commented 12 years ago

corrected for V3