---
title: Geo Coder API
slug: v2/geo-coder-api
description: Learn how to convert textual addresses into geographic coordinates with this comprehensive introduction to address geocoding. Discover the API's method for calling address geocoding, along with detailed guidelines on required input parameters. Explore cod
createdAt: 2022-09-29T20:00:52.000Z
---

# Introduction

Address geocoding, or simply geocoding, is the process of taking a text-based description of a location, such as an address or the name of a place, and returning geographic coordinates, frequently latitude/longitude pair, to identify a location on the Earth's surface.

The Address Geocoder product takes address and returns back latitude / longitude and vice versa.

## How to call the API

You will need to[ login ](https://docs.signzy.com/sandboxapis)before sending search request. You are required to pass the access token received from the login call, as authorization header in the Address Geocoder request.

## API Input Guidelines

- Select type Task to be performed
  - Address Geocoding
  - Reverse Geocoding
- If task is Address Geocoding, input required is&#x20;
  - Address
  - Latitude / Longitude if distance is required from the given address (Optional)
- If the task is Reverse Geocoding, input required is
  - Latitude and Longitude&#x20;

***

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/matchers",
  "name": "Address Geocoding",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Contains the id parameter returned from the login step"
      },
      {
        "kind": "required",
        "name": "Content-Type",
        "type": "string",
        "children": [],
        "description": "application/json"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "task-geocode responds with the latitude and longitude on any given location on earth surface"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "address",
            "type": "string",
            "description": "Address on which task-geocoder to be performed"
          },
          {
            "kind": "required",
            "name": "latitude",
            "type": "string",
            "description": "Latitude of which distance is required"
          },
          {
            "kind": "required",
            "name": "longitude",
            "type": "string",
            "description": "Longitude of which distance is required"
          }
        ],
        "description": "Contains essential input data"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "k7fpZR4m1yKCj8qckMCJD",
        "code": "{\n    \"essentials\": {\n        \"address\": \"<Address>\",\n        \"latitude\": \" \",\n        \"longitude\": \" \",\n        \"task\": \"geocode\"\n    },\n    \"id\": \"<ID>\",\n    \"patronId\": \"<Patron ID>\",\n    \"task\": \"geocode\",\n    \"result\": {\n        \"address\": \"<Address>\",\n        \"latitude\": \"12.9377446\",\n        \"longitude\": \"77.6270553\",\n        \"confidenceScore\": 0.7,\n        \"city\": \"BENGALURU\",\n        \"state\": \"KARNATAKA\",\n        \"stateCode\": \"KA\",\n        \"country\": \"INDIA\",\n        \"countryCode\": \"IN\",\n        \"zipcode\": \"560095\",\n        \"distanceInKms\": \"1488.02\"\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "k7fpZR4m1yKCj8qckMCJD"
  },
  "examples": {
    "languages": [
      {
        "id": "1-Iheggf0kU0K4UlH_htY",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/matchers' \\\n--header 'Authorization: <Auth Key>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"task\": \"geocode\",\n    \"essentials\": {\n        \"address\": \"<Address>\",\n        \"latitude\": \"<Latitude>\",\n        \"longitude\": \"<Longitude>\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "qqRLQ01bAm5qkzM276O-K",
        "code": "curl --location --request POST 'signzy.tech/api/v2/patrons/<Patron ID>/matchers' \\\r\n--header 'Authorization: <Auth Key>' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"geocode\",\r\n    \"essentials\": {\r\n        \"address\": \"<Address>\",\r\n        \"latitude\": \"<Latitude>\",\r\n        \"longitude\": \"<Longitude>\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "1-Iheggf0kU0K4UlH_htY"
  },
  "description": "Distance in Kms will be given if Latitude / Longitude are provided.",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "address-geocoding",
  "legacyHash": "idsnO7Qn5aFM5hYhoFS98"
}
```
:::

## Response Parameters

| **Parameters Name**  | **Data Type** | **Description**                                                                              |
| -------------------- | ------------- | -------------------------------------------------------------------------------------------- |
| id                   | String        | The access token that was received during login request.                                     |
| patronId             | String        | This parameter is returned as userId parameter of login request.                             |
| task                 | String        | Task-geocode responds with the latitude and longitude on any given location on earth surface |
| result.address       | String        | Address for which geocoding needs to be done                                                 |
| result.city          | String        | Name of the of the address provided                                                          |
| result.state         | String        | State name                                                                                   |
| result.stateCode     | String        | State code                                                                                   |
| result.country       | String        | Name of the country for the address                                                          |
| result.countryCode   | String        | Country code                                                                                 |
| result.zipcode       | String        | Zip code for the address                                                                     |
| result.distanceInKms | String        | Distance of the enquired latitude and logitude from the address provided                     |

##

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/matchers",
  "name": "Reverse Geocoding",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Contains the id parameter returned from the login step"
      },
      {
        "kind": "required",
        "name": "Content-Type",
        "type": "string",
        "children": [],
        "description": "application/json"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Task-reversegeocode responds with the latitude and longitude on any given location on earth surface"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "latitude",
            "type": "string",
            "description": "Latitude of which address is required"
          },
          {
            "kind": "required",
            "name": "longitude",
            "type": "string",
            "description": "Longitude of which address is required"
          }
        ],
        "description": "Contains essential input data"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "k7fpZR4m1yKCj8qckMCJD",
        "code": "{\n    \"essentials\": {\n        \"latitude\": \"23.6677504\",\n        \"longitude\": \"86.0670152\",\n        \"task\": \"reversegeocode\"\n    },\n    \"patronId\": \"<Patron ID>\",\n    \"task\": \"reversegeocode\",\n    \"result\": {\n        \"address\": \"GOVIND MARKET, BALIDIH, BOKARO STEEL CITY, M398+4R2, BALIDIH, BOKARO STEEL CITY, JHARKHAND 827014, INDIA\",\n        \"latitude\": \"23.6677504\",\n        \"longitude\": \"86.0670152\",\n        \"confidenceScore\": 0.7,\n        \"city\": \"BOKARO STEEL CITY\",\n        \"state\": \"JHARKHAND\",\n        \"stateCode\": \"JH\",\n        \"country\": \"INDIA\",\n        \"countryCode\": \"IN\",\n        \"zipcode\": \"827014\",\n        \"distanceInKms\": \"\"\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "k7fpZR4m1yKCj8qckMCJD"
  },
  "examples": {
    "languages": [
      {
        "id": "1-Iheggf0kU0K4UlH_htY",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/matchers' \\\n--header 'Authorization: <Auth Key>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"task\": \"reversegeocode\",\n    \"essentials\": {\n        \"latitude\": \"23.6677504\",\n        \"longitude\": \"86.0670152\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "D_ItBLk1v8Xkqsrhd0NDQ",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<Patron ID>/matchers' \\\r\n--header 'Authorization: <Auth Key>' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"reversegeocode\",\r\n    \"essentials\": {\r\n        \"latitude\": \"23.6677504\",\r\n        \"longitude\": \"86.0670152\"\r\n    }\r\n}'",
        "language": "none",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "1-Iheggf0kU0K4UlH_htY"
  },
  "description": "Provides address from the input Latitude and Longitude",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "reverse-geocoding",
  "legacyHash": "tYBg_9LSq9iwfHY6bIFWj"
}
```
:::

## Response Parameters

| **Parameters Name** | **Data Type** | **Description**                                                                                    |
| ------------------- | ------------- | -------------------------------------------------------------------------------------------------- |
| id                  | String        | The access token that was received during login request.                                           |
| patronId            | String        | This parameter is returned as userId parameter of login request.                                   |
| task                | String        | Task-reversegeocode responds with the address on any given latitude and longitude on earth surface |
| result.address      | String        | Address for which geocoding needs to be done                                                       |
| result.latitude     | String        | latitude for which address is required                                                             |
| result.longitude    | String        | logitude for which address is required                                                             |
| result.city         | String        | Name of the city of the address provided                                                           |
| result.state        | String        | State name                                                                                         |
| result.stateCode    | String        | State code                                                                                         |
| result.country      | String        | Name of the country for the address                                                                |
| result.countryCode  | String        | Country code                                                                                       |
| result.zipcode      | String        | Zip code for the address                                                                           |

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

