Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Dependent Country, State and City

No security coverage Under active development 9 sites

This module allows you to manage countries, states, and cities, including their associated pin codes or areas. It provides APIs to retrieve this location data, and you can add, edit, or delete entries as needed.

Dependent Country State City modules extend your site functionality and provide feature to add/edit/delete Country State City and pincode/area as per your need. This module also provide API for fetching data from Database.

Go To Main Navigation -> Configuration -> Country, state and city
1. Country List
2. State List
3. City List
4. Pincode List

Country.

By Default all country added by module or you can add/edit/delete as per your need. Also provide API to fetch the data in json format. Below are the API details.

End Point: admin/city-state-city/api/get-country
query parameter with id : admin/city-state-city/api/get-country?id=103
query parameter with name : admin/city-state-city/api/get-country?country_name=India

State.

By Default all india states added by module or you can add/edit/delete as per your need. Also provide API to fetch the data in json format. Below are the API details.

End Point: /admin/city-state-city/api/get-state/103
here 103 mean country ID:

query parameter with name : /admin/city-state-city/api/get-state/103?state_name=Delhi

City.

There is no default data added by module but you can add/edit/delete as per your need. Also provide API to fetch the data in json format. Below are the API details.

End Point: /admin/city-state-city/api/get-city/32
here 32 mean state ID:

query parameter with name : /admin/city-state-city/api/get-city/32?city_name=Delhi

Pincode.

There is no default data added by module but you can add/edit/delete as per your need. Also provide API to fetch the data in json format. Below are the API details.

End Point: /admin/city-state-city/api/get-areapincode/2
here 2 mean city ID:

query parameter with name : /admin/city-state-city/api/get-areapincode/2?pincode_area=11

Note: Make sure to give right performission to right to role to access API feature.

PLACING MODULE IN THIS DIRECTORY
------------------------------------

You may create custom directory inside /web/module if already is not created, and place this module in web/module/custom directory, to organize your module.

ENABLE MODULE
-----------------------
You can enabled it using drush en dependent_country_state or from User Interface (admin/modules) search your module name and click on checkbox then click on install.

HOW TO CONFIGURE.
----------------
Default configuration is given by module, if you want to change then.
1. clear cache for better result.

Drupal 9–10 · not 11

Ask your assistant about Dependent Country, State and City

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jan 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.6 Stable 9–10 Jan 16, 2023
1.0.5 Stable 9–10 Jan 16, 2023
1.0.4 Stable 9–10 Jan 16, 2023