# How to get organizations based on zip code/city

**URL:** <https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80>\
**Category:** Questions\
**Tags:** litium-6, data-service, feature-request\
**Created:** [May 16, 2018, 10:09am UTC](https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80 "2018-05-16T10:09:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandra](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sandra](https://forum.litium.com/u/Sandra)\
**Post date:** [May 16, 2018, 10:09am UTC](https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80/1 "2018-05-16T10:09:41Z")

</div>

We have a text box where you can add a zip code or city. Based on the value of the text box we want to get all organizations that have that zip code or city on delivery address. Only organizations with a specific template file should be fetched. How do I do that?

I have previously gotten the tip to look at this page: [https://docs.litium.com/documentation/architecture/data-service](https://docs.litium.com/documentation/architecture/data-service). But since address is not a field, how do I modify the data service to fetch organizations based on address values?

Litium version: 6

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [May 17, 2018, 6:21am UTC](https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80/2 "2018-05-17T06:21:49Z")

</div>

Unfortunately it is not possible to query against address with data service.

Workaround could be to also store city and zip in fields directly on the organization to make it searchable.

---

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [May 17, 2018, 6:47am UTC](https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80/3 "2018-05-17T06:47:09Z")

</div>

This will be an issue in many projects. Are there any plans for fixing this?

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [May 17, 2018, 7:25am UTC](https://forum.litium.com/t/how-to-get-organizations-based-on-zip-code-city/80/4 "2018-05-17T07:25:27Z")

</div>

There is no fix for this in the roadmap right now, please submit as a feature request.
