Skip to content

Instantly share code, notes, and snippets.

@dsandip
Created January 17, 2019 09:23
Show Gist options
  • Save dsandip/e0aef9a2911bae62127b59ead3c1a83f to your computer and use it in GitHub Desktop.
Save dsandip/e0aef9a2911bae62127b59ead3c1a83f to your computer and use it in GitHub Desktop.
Custom functions: Example custom PostGIS function query response
{
"data": {
"search_landmarks_near_user": [
{
"user_id": 3,
"location": {
"type": "Point",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:EPSG::4326"
}
},
"coordinates": [
12.9406589,
77.6185572
]
},
"nearby_landmarks": [
{
"id": 3,
"name": "blue tokai",
"type": "coffee shop",
"location": "0101000020E61000004E74A785DCF22940BE44060399665340"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment