MCPcopy Index your code
hub / github.com/clips/pattern / geocode

Function geocode

pattern/web/locale/__init__.py:384–392  ·  view source on GitHub ↗

Returns a (latitude, longitude, language code, region)-tuple for the given city (mostly capitals).

(location)

Source from the content-addressed store, hash-verified

382}
383
384def 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

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…