{"_id":"@simpleview/sv-geo-client","_rev":"40-da641b5b0d5c8514cceed61d483b8383","name":"@simpleview/sv-geo-client","dist-tags":{"latest":"2.3.1"},"versions":{"1.0.1":{"name":"@simpleview/sv-geo-client","version":"1.0.1","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/sv-geo-client@1.0.1","maintainers":[{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"seanmalbert","email":"smabert@gmail.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"}],"homepage":"https://github.com/simpleviewinc/sv-geo-client#readme","bugs":{"url":"https://github.com/simpleviewinc/sv-geo-client/issues"},"dist":{"shasum":"ebea6d3f7ed67c1dff7b3d0cd31339feff7ba9bc","tarball":"https://registry.npmjs.org/@simpleview/sv-geo-client/-/sv-geo-client-1.0.1.tgz","fileCount":6,"integrity":"sha512-9wosTKzncDELvMmov0h21ScPP+cF264gVmsVCrD/uthA5NyTa+P8s6ucfgN4R3wcqDKWr/RSTtgbksgRNEpILA==","signatures":[{"sig":"MEYCIQCO54hzW253Ri+FknL/VbRzn4mqe0KksUGbjJqJqx7CuwIhAKdV3wlAJmi9/g0gYWLBUOnnCnBsS04JHfxQuMbfgsMf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczN4DCRA9TVsSAnZWagAAfsEP/jXl6RavnCqFflqR9I9Y\nEn0Zbscf3NHddc0om/rAFWhBkeFZhS4PhdxW24qb6ODyn8eImKqLSTcCCoG5\npog3zTEtvsJupg7ryU5g4EhcstuLN8Q5hxtpWYu6a5BmnhtEjeuh0a6UpUWl\nde1iJ6VDeRDCMh0XBkcCQIt5bidrE9F8epTt3ostosyhL22/7I4aGASncgVq\nipUmBewqV99T15MHVjNXFm9MU8D3XUzNyiFUHbvIqOFMYUYTGFZU3VQgQoES\n/n1bAX5fk3CsqqNDU1Oyx3mvSk3L5Hrg8OGSd0Ff+dqGzDJS8112CUntTVgn\nsco5LLpG1tOjI4wza7GYrM5W2pNzStqNEIzVqHRZji2o5Lqnm2GZ024o1qFs\nCDpYGB1JGivhO0MAOLuu+2/zAji19KRXNkQeCoc97ITIOg/pGsbsQp/KMD38\nZP8UsJYn0G24f5eetO3PazSSZw83bLmc7Pf8DQ5hPHp8+GWPpomh8/hRH2YZ\nyT0cM2cmix2XD3+UXxUaS/ohRU3G89d/RWj9wlN+T1p5TNWP45vNflADWbg7\nDKCt+rNRgT2q5RarGK3XdeicYFJ4iDFBEHnP0lVhKHnXRWXRdBjFhw8GGS67\nrbU3QSMf2oh8bcYa/QxkaeRKaLfH4LXC3BQsXAnUysXndF2Lwv9Qbw48FQCd\nas+L\r\n=XKFs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","browser":"src/browser.js","gitHead":"d027375c1b127cbbdd716b26a3cc499b55b9c811","scripts":{"docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"owenallenaz","email":"owenallenaz@gmail.com"},"repository":{"url":"git+https://github.com/simpleviewinc/sv-geo-client.git","type":"git"},"_npmVersion":"5.6.0","description":"Client for communicating with sv-geo","directories":{},"_nodeVersion":"8.11.3","dependencies":{"graphql":"14.2.1","graphql-tools":"4.0.4","@simpleview/sv-graphql-client":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sv-geo-client_1.0.1_1556930050396_0.4349315383668435","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@simpleview/sv-geo-client","version":"1.0.2","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/sv-geo-client@1.0.2","maintainers":[{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"homepage":"https://github.com/simpleviewinc/sv-geo-client#readme","bugs":{"url":"https://github.com/simpleviewinc/sv-geo-client/issues"},"dist":{"shasum":"ee12fae2cd5ee633d69aa7e94eac61f02ad0792d","tarball":"https://registry.npmjs.org/@simpleview/sv-geo-client/-/sv-geo-client-1.0.2.tgz","fileCount":6,"integrity":"sha512-0rm5zun8PCpEMsA3FXdPZurBFI2VhFswKT3r5+yMOZPlR2ShdQ98oPfgzShH1lF9NRf9wANuMOi6djM76GEk/A==","signatures":[{"sig":"MEQCIH2gCgUl7AMqiDqR6TX+TJ0RKrqexrP52JwIu0WRO94SAiBLpXErcqOAgi5ng1FTpRQ4QVUi7rwqEbOmUSzKo9NbjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilmRHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyRA//fZusZAIPknzwKQ3IvM2JDO9az9vWlKUSflcjFS6+SL9RgVjH\r\npIiicml3KUPR4owd6ixCdvfM6gqHQi2wXbkywdT00PS2RmpxPQwGwkOKiwoe\r\nUjS3JHPytHWYZDCDNSUSwnaPyJdf0nIfAhx/Kj1Uom4H+POtDxem36PnnRjj\r\nN/duq6ON/nVe1En3xIEglLznasi7EPpqBYZDSxVyHziknFFtxxYAAxbU2Shc\r\nvhiQYylhO0YTBPM5Hvs+zjgCMpq8u7oloUonZRlbYQWt1ZRlJdIp1F7vUfYM\r\nx42ZyMX9mi4G72GS0OTHdmRmAATcWyQgj96TQ9+BiIvy/l/lvJ2Ihlfo8RHd\r\np5kHqMFElii3z5px8WN9VoNnyfe3u7RnO/9hM4s6uWVzsfJFGwfa+1ry3csA\r\nKXiEQqOWM2nuHUWoM624+nD8n98iMtid6Skfgbw2Zs6dPsJwLHvgPclxt3CM\r\nk1UJIXMvteLpK1BLTJJbhT8oy4MyRJb6L4MAobzW5ZTFks2fcLqvQgL+wawh\r\nBGVlOhc0wH41MUNRoN6zOQLkCdbpRKpgoC1vd8nTby7/BWQBh7wcTa6K84RR\r\nZ38D2TPSP/0WtTwg9lzVii1fgkGkcZZ8MCB0AYhWzIR0irqeQXS/trajQmcZ\r\nwy0tjL9qunkrh83c8fkeIW9fd80yGVGOknU=\r\n=ezR1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","browser":"src/browser.js","gitHead":"a2a1fc50a98b325eb110a8b3c79139048a1a07ab","scripts":{"docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"owenallenaz","email":"owenallenaz@gmail.com"},"repository":{"url":"git+https://github.com/simpleviewinc/sv-geo-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client for communicating with sv-geo","directories":{},"_nodeVersion":"12.14.1","dependencies":{"graphql":"14.2.1","graphql-tools":"4.0.4","@simpleview/sv-graphql-client":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sv-geo-client_1.0.2_1654023239426_0.037467172046465214","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@simpleview/sv-geo-client","version":"1.0.5","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","_id":"@simpleview/sv-geo-client@1.0.5","maintainers":[{"name":"korychinn_sv","email":"kory.chinn@simpleviewinc.com"},{"name":"sv-mikael","email":"mikael.ramirez@simpleviewinc.com"},{"name":"actionawesome","email":"ed.downard@simpleviewinc.com"},{"name":"arkmuntasser","email":"amir.muntasser@simpleviewinc.com"},{"name":"leandrodalmassoglb","email":"leandro.dalmasso@globant.com"},{"name":"kristian.gonzalez","email":"Kristian.Gonzalez@simpleviewinc.com"},{"name":"davidlpons","email":"david.pons@simpleviewinc.com"},{"name":"mauriciodeleonc","email":"mauricio.deleon@globant.com"},{"name":"mpcarolin","email":"mpcarolin.dev@gmail.com"},{"name":"csarantidessv","email":"Chris.Sarantides@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"}],"homepage":"https://github.com/simpleviewinc/sv-geo-client#readme","bugs":{"url":"https://github.com/simpleviewinc/sv-geo-client/issues"},"dist":{"shasum":"4c8e7869d7247ccca9c029cb322c569b9db34b6f","tarball":"https://registry.npmjs.org/@simpleview/sv-geo-client/-/sv-geo-client-1.0.5.tgz","fileCount":6,"integrity":"sha512-i/De/cDgH6WIXm+WFP59D/PpgDRR6G5ad07+mwsI7DHnCfUHRNZ5M/PMcptFXuJ7OG3kUBvNuiLIijN3HTDcJQ==","signatures":[{"sig":"MEYCIQCfm/EMpAkDDtJ7tc6+NKeTmUVQ0cA1cLIjkgZcrqK7nQIhAJx+M7J6bs0KHaCsVKAjiUoSFiKdBsiGznAlT19aRRtN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4SlSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0/w/9H8pusWB7pNHbsQNB/xOkRD+CvCJgtGuYf2ki3//hKGnCzosh\r\nDZSZFIlNaxnkKAYprNeIzg2n9a9jH560K9Se9rAn/4qvSIJq/NSuYwm3vIYx\r\nKe0O/PjGtY/NSuDyo0OPG3Ometm3wHtADQkgTUjVArDwIgTws7nIjMaN2fbG\r\n08t7IUjJiVsHmy00MxRVu2lsn6spexLR9TIE7oJQQgOW0PESPbX2NH6MRQ65\r\nHkr0u07yxzD/P1RtDGyd4PSO7E/2/X5mS6O/hHjUehzKcdDZmV7SNF2QhxNX\r\nDdQnk5ekubE/VFJRKAddmOTYaL1hN/uxtYZD0Jrf00yny80d0Po2kYiSqVA4\r\nLD5RqPj7q1OZCuMkk8TJRaeXZKtrzR4o765pyjbo8XaVX4DRCpv41M1JqAiY\r\nfs0wLqZ/crZev/mlt3lrl28r0soxmhLT06Z469Ew+U/v34c10wmCtx/iNjnu\r\n+6HEEz6Fjd039+AqcuypyihsMmevwJ08UH1cWhqB8pRcMvfO1sxMi18kV8LV\r\nxw4iBP6Jv17XfRbSsdgtjq1jPmtjvXiDSy0hvOQ7OkC+eXCcoubah0i+g45E\r\nbjzLbpKgtBCcc7FussOYa2rMvaYfLMZTx3XHU+F1PxB+EwOJmxkKPTWcOBiB\r\nJPhhYKFDgRwj1e0E3zXzu15r9Z78p2ZTf58=\r\n=tZEb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","browser":"src/browser.js","gitHead":"34c06b1ffb5eff063e942da7379961df44a401a0","scripts":{"docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"_npmUser":{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},"repository":{"url":"git+https://github.com/simpleviewinc/sv-geo-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client for communicating with sv-geo","directories":{},"_nodeVersion":"12.14.1","dependencies":{"graphql":"14.2.1","lru-cache":"7.14.1","graphql-tools":"4.0.4","@simpleview/sv-graphql-client":"*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sv-geo-client_1.0.5_1675700562458_0.32058480911461884","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@simpleview/sv-geo-client","version":"2.3.1","description":"Client for communicating with sv-geo","author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"dependencies":{"@simpleview/sv-graphql-client":"*","graphql":"14.2.1","graphql-tools":"4.0.4","lru-cache":"7.14.1"},"main":"src/index.js","browser":"src/browser.js","scripts":{"docker":"./dev/build && ./dev/run || true","publish":"./dev/publish"},"repository":{"type":"git","url":"git+https://github.com/simpleviewinc/sv-geo-client.git"},"license":"MIT","_id":"@simpleview/sv-geo-client@2.3.1","gitHead":"5ade6071a88f87d52d6ec0ec80d905c09f2401c9","bugs":{"url":"https://github.com/simpleviewinc/sv-geo-client/issues"},"homepage":"https://github.com/simpleviewinc/sv-geo-client#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-D6+JzV82W34xPBLrFOiVvB3zK1Q/kaoMaHsZ9qGAl9n4fLbEePz5ORk/UQrwFp3oY8rc+7PbKbF+vuvb5mLb5A==","shasum":"962f9fd8b1ad817fdaf207e2a504773cee7502a5","tarball":"https://registry.npmjs.org/@simpleview/sv-geo-client/-/sv-geo-client-2.3.1.tgz","fileCount":6,"unpackedSize":9360,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChxUc5lyN8YxCcW0rbmMJ5mMryLOqTD9ty4Oy/7fZm1wIgPUqAfx88jrUGR+3/UanPaQeGne5k2DTvJAqNHRwjX5k="}]},"_npmUser":{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},"directories":{},"maintainers":[{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"georgeyb-sv","email":"george.batt@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"kristian.gonzalez","email":"Kristian.Gonzalez@simpleviewinc.com"},{"name":"paul.riding","email":"paul.riding@simpleviewinc.com"},{"name":"arkmuntasser","email":"amir.muntasser@simpleviewinc.com"},{"name":"actionawesome","email":"ed.downard@simpleviewinc.com"},{"name":"mcutshall","email":"mcutshall0@gmail.com"},{"name":"sv-mikael","email":"mikael.ramirez@simpleviewinc.com"},{"name":"korychinn_sv","email":"kory.chinn@simpleviewinc.com"},{"name":"dlford","email":"dan-npmjs@dlford.io"},{"name":"sloutrel","email":"s.loutrel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sv-geo-client_2.3.1_1763653999550_0.7345624574866962"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-04T00:34:10.227Z","modified":"2025-11-20T15:53:20.092Z","1.0.1":"2019-05-04T00:34:10.743Z","1.0.2":"2022-05-31T18:53:59.574Z","1.0.5":"2023-02-06T16:22:42.599Z","2.3.1":"2025-11-20T15:53:19.738Z"},"bugs":{"url":"https://github.com/simpleviewinc/sv-geo-client/issues"},"author":{"name":"Owen Allen","email":"owenallenaz@gmail.com"},"license":"MIT","homepage":"https://github.com/simpleviewinc/sv-geo-client#readme","repository":{"type":"git","url":"git+https://github.com/simpleviewinc/sv-geo-client.git"},"description":"Client for communicating with sv-geo","maintainers":[{"name":"owenallenaz","email":"owenallenaz@gmail.com"},{"name":"qman33","email":"gotshogi@gmail.com"},{"name":"svjoshua","email":"jmoor@simpleviewinc.com"},{"name":"georgeyb-sv","email":"george.batt@simpleviewinc.com"},{"name":"mkes99","email":"mike@formativewebsolutions.com"},{"name":"colin.booen","email":"colin.booen@simpleviewinc.com"},{"name":"ssmith_sv","email":"sean.smith@simpleviewinc.com"},{"name":"aglazebrook","email":"aglazebrook@simpleviewinc.com"},{"name":"rmaynes","email":"rmaynes@simpleviewinc.com"},{"name":"mikesan789","email":"Michael.Harrington@simpleviewinc.com"},{"name":"kristian.gonzalez","email":"Kristian.Gonzalez@simpleviewinc.com"},{"name":"paul.riding","email":"paul.riding@simpleviewinc.com"},{"name":"arkmuntasser","email":"amir.muntasser@simpleviewinc.com"},{"name":"actionawesome","email":"ed.downard@simpleviewinc.com"},{"name":"mcutshall","email":"mcutshall0@gmail.com"},{"name":"sv-mikael","email":"mikael.ramirez@simpleviewinc.com"},{"name":"korychinn_sv","email":"kory.chinn@simpleviewinc.com"},{"name":"dlford","email":"dan-npmjs@dlford.io"},{"name":"sloutrel","email":"s.loutrel@gmail.com"}],"readme":"# sv-geo-client\r\n\r\nClient for communication with the `sv-geo` GraphQL system.\r\n\r\nIt is built in JavaScript and has one peer dependency of `@simpleview/sv-graphql-client`.\r\n\r\n## OS Support\r\n\r\nThe expectation is that this application will be installed in Linux using [sv-kubernetes](https://github.com/simpleviewinc/sv-kubernetes/).\r\n\r\n## Prerequisites\r\n\r\n* [sv-graphql-client](https://github.com/simpleviewinc/sv-graphql-client/)\r\n\r\n## Install\r\n\r\nUsing npm:\r\n```bash\r\nnpm install @simpleview/sv-geo-client\r\n```\r\n\r\nUsing yarn:\r\n```bash\r\nyarn install @simpleview/sv-geo-client\r\n```\r\n\r\n## Update\r\n\r\nTo update to the latest version, rerun the install command.\r\n\r\n## Authentication Requirements\r\n\r\nInteractions with `sv-geo` require authentication as a Simpleview user.\r\n\r\nUse a Google Service Account when interacting with the service on behalf of a product.\r\n\r\n```js\r\nconst { AuthPrefix } = require(\"@simpleview/sv-auth-client\");\r\nconst { GraphServer } = require(\"@simpleview/sv-graphql-client\");\r\n\r\nasync function serviceAccountToken() {\r\n\tconst service_account = JSON.parse(SERVICE_ACCOUNT_JSON);\r\n\r\n\tconst { auth } = new GraphServer({\r\n\t\tgraphUrl: AUTH_GRAPHQL_URL,\r\n\t\tprefixes: [AuthPrefix]\r\n\t});\r\n\r\n\t// authorise the service_account return the token\r\n\tconst { token } = await auth.login_service_account({\r\n\t\tinput: {\r\n\t\t\temail: service_account.client_email,\r\n\t\t\tprivate_key: service_account.private_key\r\n\t\t},\r\n\t\tfields: `\r\n\t\t\tsuccess\r\n\t\t\ttoken\r\n\t\t`\r\n\t});\r\n\r\n\treturn token;\r\n}\r\n```\r\n\r\nThe `token` should be added to the `context` for each function call.\r\n\r\n## Implementation & Usage\r\n\r\nTo see the input parameters and output fields of an endpoint, view the Schema in the GraphQL Explorer at https://graphql.simpleviewinc.com/ for the corresponding GraphQL query.\r\n\r\n## GeoPrefix\r\n\r\n`GeoPrefix` can be loaded into the `sv-graphql-client` `GraphServer` to use as a client library for accessing `geo` in GraphQL.\r\n\r\nJavaScript:\r\n```js\r\nconst { GeoPrefix } = require(\"@simpleview/sv-geo-client\");\r\nconst { GraphServer } = require(\"@simpleview/sv-graphql-client\");\r\n\r\nmodule.exports = new GraphServer({ graphUrl: GRAPHQL_URL, prefixes: [GeoPrefix] });\r\n```\r\n\r\nTypeScript:\r\n```ts\r\nimport { GeoPrefix } from \"@simpleview/sv-geo-client\";\r\nimport { GraphServer } from \"@simpleview/sv-graphql-client\";\r\n\r\nexport default new GraphServer({ graphUrl: GRAPHQL_URL, prefixes: [GeoPrefix] });\r\n```\r\n\r\nWhere you are making server requests:\r\n\r\nJavaScript:\r\n```js\r\nconst { geo } = require(\"./geoGraphServer\");\r\n```\r\n\r\nTypeScript:\r\n```ts\r\nimport { geo } from \"./geoGraphServer\";\r\n```\r\n\r\n### GeoPrefix.ip_to_geo\r\n\r\nThis method wraps the `geo.ip_to_geo` GraphQL query.\r\n\r\nReturns the location information based on the passed in IP address. The accuracy is in km, with MaxMind stating that they have a 67% confidence that the location of the end-user falls within the area defined by the accuracy radius and the latitude and longitude coordinates.\r\n\r\nDifferent locations will return different amounts of data. Some queries may be able to return country, region, city, postal, and metro, while others may only be able to return the city.\r\n\r\nResults are cached for 5 minutes with an LRU cache (max 5000 entries).\r\n\r\n```js\r\nconst result = await geo.ip_to_geo({\r\n\tip: \"8.8.8.8\",\r\n\tfields: `\r\n\t\tsuccess\r\n\t\tmessage\r\n\t\tdoc {\r\n\t\t\tcountry_code\r\n\t\t\tcountry_name\r\n\t\t\tregion_code\r\n\t\t\tregion_name\r\n\t\t\tcity_code\r\n\t\t\tcity_name\r\n\t\t\tmetro_code\r\n\t\t\tpostal_code\r\n\t\t\tlatitude\r\n\t\t\tlongitude\r\n\t\t\taccuracy\r\n\t\t}\r\n\t`,\r\n\tcontext: {\r\n\t\ttoken // from serviceAccountToken call\r\n\t}\r\n});\r\n```\r\n\r\n### GeoPrefix.countries\r\n\r\nThis method wraps the `geo.countries` GraphQL query.\r\n\r\nReturns all known countries according to the MaxMind database. Sorted by country name.\r\n\r\n```js\r\nconst result = await geo.countries({\r\n\tfields: `\r\n\t\tcount\r\n\t\tdocs {\r\n\t\t\tid\r\n\t\t\tname\r\n\t\t\tcode\r\n\t\t}\r\n\t`,\r\n\tcontext: {\r\n\t\ttoken // from serviceAccountToken call\r\n\t}\r\n});\r\n```\r\n\r\n### GeoPrefix.regions\r\n\r\nThis method wraps the `geo.regions` GraphQL query.\r\n\r\nReturns all known regions for all countries in the MaxMind database. Sorted by region name.\r\n\r\n```js\r\nconst result = await geo.regions({\r\n\tfields: `\r\n\t\tcount\r\n\t\tdocs {\r\n\t\t\tid\r\n\t\t\tname\r\n\t\t\tcode\r\n\t\t\tcountry_code\r\n\t\t}\r\n\t`,\r\n\tcontext: {\r\n\t\ttoken // from serviceAccountToken call\r\n\t}\r\n});\r\n```\r\n\r\n### GeoPrefix.cities\r\n\r\nThis method wraps the `geo.cities` GraphQL query.\r\n\r\nReturns all known cities for all countries in the MaxMind database. Not all cities will have a region. Sorted by city name.\r\n\r\n```js\r\nconst result = await geo.cities({\r\n\tfields: `\r\n\t\tcount\r\n\t\tdocs {\r\n\t\t\tid\r\n\t\t\tname\r\n\t\t\tcode\r\n\t\t\tcountry_code\r\n\t\t\tregion_code\r\n\t\t}\r\n\t`,\r\n\tcontext: {\r\n\t\ttoken // from serviceAccountToken call\r\n\t}\r\n});\r\n```\r\n\r\n### GeoPrefix.metros\r\n\r\nThis method wraps the `geo.metros` GraphQL query.\r\n\r\nReturns the Nielsen Designated Marketing Areas. These are sub-regions of the US that span across state lines, allowing marketers to target areas like the Washington DC metro area which spans across cities and states. The region_codes represent the states that DMA is valid for. Sorted by metro name.\r\n\r\n```js\r\nconst result = await geo.metros({\r\n\tfields: `\r\n\t\tcount\r\n\t\tdocs {\r\n\t\t\tid\r\n\t\t\tname\r\n\t\t\tcode\r\n\t\t\tcountry_code\r\n\t\t\tregion_codes\r\n\t\t}\r\n\t`,\r\n\tcontext: {\r\n\t\ttoken // from serviceAccountToken call\r\n\t}\r\n});\r\n```\r\n\r\n## Related Documentation\r\n\r\n* [sv-graphql-client](https://github.com/simpleviewinc/sv-graphql-client/)\r\n* [sv-geo](https://github.com/simpleviewinc/sv-geo/)\r\n\r\n## Troubleshooting\r\n\r\nFor any assistance please reach out on the [Microservices Support](https://teams.microsoft.com/l/channel/19%3A78cf02f015c543748f2488a4742290f1%40thread.tacv2/Microservices%20Support?groupId=42dd24e6-f6ae-4520-9092-cc21b3b3b730&tenantId=cc1eb3c2-fc0c-4a83-8e6a-8d886b4faeab) Teams channel.\r\n","readmeFilename":"README.md"}