# Tip: How to add geoCoordinates data

**URL:** <https://forum.weaviate.io/t/tip-how-to-add-geocoordinates-data/1039>\
**Category:** Support\
**Created:** [November 29, 2023, 10:34am UTC](https://forum.weaviate.io/t/tip-how-to-add-geocoordinates-data/1039 "2023-11-29T10:34:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [November 29, 2023, 10:34am UTC](https://forum.weaviate.io/t/tip-how-to-add-geocoordinates-data/1039/1 "2023-11-29T10:34:05Z")

</div>

FYI, I’ve seen some questions come up recently regarding formatting geo coordinate data. They take a form like this, where they are nested under the property name.

So, in your collection (class) definition, you would have the property name, with datatype `geoCoordinates`. Then, you can add the data objects like this (e.g. Python):

```python
import weaviate

client = weaviate.Client("http://localhost:8080")

data_obj = {
  "name": "Elsevier",
  "headquartersGeoLocation": { # Your property name
    "latitude": 52.3932696,
    "longitude": 4.8374263
  }
}

data_uuid = client.data_object.create(
  data_obj,
  "Publication", # Collection name
  uuid="df48b9f6-ba48-470c-bf6a-57657cb07390", # optional, if not provided, one is going to be generated
)

```

References:

> **[Data types | Weaviate - vector database](https://weaviate.io/developers/weaviate/config-refs/datatypes#datatype-geocoordinates)**
>
> \- Configuration: Schema

> **[REST - /v1/objects | Weaviate - vector database](https://weaviate.io/developers/weaviate/api/rest/objects#with-geocoordinates)**
>
> List data objects

---

<div class="post-metadata">

**Author:** ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)\
**Post date:** [February 15, 2024, 5:32pm UTC](https://forum.weaviate.io/t/tip-how-to-add-geocoordinates-data/1039/2 "2024-02-15T17:32:47Z")

</div>

We’ve added new examples on how to filer with GeoCoordinates:

> **[Filters | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/search/filters#by-geo-coordinates)**
>
> Filters let you include, or exclude, particular objects from your result set based on provided conditions.

Here is a python example with the new Python client:

```python
response = publications.query.fetch_objects(
    filters=(
        wvc.query.Filter
        .by_property("headquartersGeoLocation")
        .within_geo_range(
            coordinate=wvc.data.GeoCoordinate(
                latitude=52.39,
                longitude=4.84
            ),
            distance=1000 # In meters
        )
    )
)

```
