Returns a (latitude, longitude, language code, region)-tuple for the given city (mostly capitals).
(location)
| 382 | } |
| 383 | |
| 384 | def geocode(location): |
| 385 | """ Returns a (latitude, longitude, language code, region)-tuple |
| 386 | for the given city (mostly capitals). |
| 387 | """ |
| 388 | if location in GEOCODE: |
| 389 | return GEOCODE[location] |
| 390 | for k, v in GEOCODE.items(): |
| 391 | if location.lower() == k.lower(): |
| 392 | return v |
nothing calls this directly
no test coverage detected
searching dependent graphs…