GeoJSON file : 

https://drive.google.com/file/d/1kUcxiMabv4jYkgoWowmu_uPX6UclmHbl/view    usp=sharing


  1. Search for the city name in the above file. E.g. Munger

  2. From the JSON that matches the search copy from "geometry":{"type":"MultiPolygon","coordinates":[ 
    Excluding 
    {"type":"Feature" from beginning and "properties":{ from end

  3. Use the below API to add a city to GeoService

POST

curl --location --request POST 'geoservice.prod.jumbotail.com:80/geo' \
--header 'userId: rahul.soni@jumbotail.com' \
--header 'Content-Type: application/json' \
--data-raw '{
    "geoEntityId": "CITY-137321",
    "geoName": "GTM-Ghaziabad",
    "description": "GTM-Ghaziabad City",
    "ownerId": "rahul.soni@jumbotail.com",
    "geoEntityType": "CITY",
    "geometry": {
        "type": "Multipolygon",
        "coordinates": 
        [
            
        ]
    }
}'


  1. This will add city to GeoService. We can verify that by using the below API    
    GET
    URL : 
    http://geoservice.prod.jumbotail.com/geo/entity-id?geoEntityId=CITY-139745
    This API returns GEO id and other details.

curl --location --request GET 'http://geoservice.prod.jumbotail.com/geo/entity-id?geoEntityId=CITY-139934'

 

Pasting the entire JSON in https://geojson.io , we can see which city we added.


In Case if we are unable to find the city in an above-downloaded file in step 1, use https://geojson.io  to get the Lat and Long list to use in the API.