Skip to content

How to query latitude and logitud from a Google Maps field? #23

@aldoalfaro

Description

@aldoalfaro

I have a Google Maps field and I would like to query by the location. My field is called "itemLocation". What should I use as the "key"? Because the following does not work:

metaQuery: {
relation: AND
metaArray: [
{
key: "itemLocation['latitude']",
compare: BETWEEN,
value: [$latitude_start, $latitude_end]
},
{
key: "itemLocation['longitude']",
compare: BETWEEN,
value: [$latitude_start, $latitude_end]
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions