Feature #710
Normalize Cached Map Data
| Status: | New | Start: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | API/Geocode | |||
| Target version: | 2.2.0 |
Description
When I look at the cached data I see entries like:
troy 45373 USA
Troy 45373 USA
They each have the identical lat and long. It seems like we could convert everything to lowercase to avoid the extra lookup.
Mark
History
Updated by Christoph Koehler over 5 years ago
Fixed for now. Will implement it properly for 1.1.0 or so.
Updated by Christoph Koehler over 5 years ago
Here's what I did:
Capitalize the first letter of every word in the strings, except zip and country.
For zip, upper-case it all because some countries use letters in their zip codes.
Country is checked for length. If it's 3 letters or less, assume it's an abbreviation and upper-case the whole string. If it's more than 3 letters, handle it like all the other strings and capitalize the first letter of every word.