MCPcopy Index your code
hub / github.com/caesarHQ/textSQL / getCities

Function getCities

client/censusGPT/src/utils/utils.js:31–38  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

29 * @returns {object[]} – The zipcodes
30 */
31export const getCities = (result) => {
32 let city_index = result.column_names.indexOf('city')
33 if (city_index == -1 || !result.results) return []
34
35 return result.results.map((x) => {
36 return { city: x['city'], lat: x['lat'], long: x['long'] }
37 })
38}

Callers 2

executeSqlFunction · 0.90
fetchBackendFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected