Variable for the Location Power Up?
Asked by Hal Atkins:

Was wondering if there is a variable that can contain the information its the Location Power Up? We'd like to use that in a report.

Thanks!


Answers:
author: milynnus
body: [@Hal Atkins](/t5/user/viewprofilepage/user-id/2399899) Do you mean Map? I investigate it a bit when looking at using it to show to and from locations. I seem to be able to have 1 location per card. Changing the location fields via a program does not change the map. The location data can be access but not with some development. I can probably expose it the same way I did for custom fields. See my demo <https://youtu.be/YsOEdbsdgn0>

I ran out on my Butler quota so I would not be able to demonstrate it like I did above. It would be a good Butler Add on.   

Update: something must have changed since i las work in maps. The plugin data for location appears to be now hidden.

comments: author: Iain Dooley
body: [@milynnus](/t5/user/viewprofilepage/user-id/3947182) yep, can confirm that pluginData is returning nothing for Map


author: milynnus
body: [@Iain Dooley](/t5/user/viewprofilepage/user-id/1416112) Tested this morning and I could not find the pluginData. I used to be able to get it via a simple card.plugin_data using py-trello. This was our conversation on the same subject.

<https://community.atlassian.com/t5/Trello-questions/API-for-Map-Power-Up/qaq-p/1393572>


author: milynnus
body: Information still via webhook with trigger on the platform I am using. Using webhook, you can get the initial coordinates and also name and coordinate changes

![Screen Shot 2020-08-04 at 7.55.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/105442i28AEFCB63A184FAF/image-size/large?v=v2&px=999 "Screen Shot 2020-08-04 at 7.55.35 PM.png")

![Screen Shot 2020-08-04 at 8.10.30 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/105449i6A061E8FB638F4A8/image-size/large?v=v2&px=999 "Screen Shot 2020-08-04 at 8.10.30 PM.png")


author: milynnus
body: ```
[{'id': '........', 'data': {'old': {'coordinates': {'latitude': 1.2988889, 'longitude': 103.8555556}}, 'card': {'coordinates': {'latitude': 1.3196178, 'longitude': 103.865015}, ......... 'data': {'old': {'address': '200 Victoria St, Singapore 188021'}, 'card': {'address': '994 Bendemeer Rd, Singapore 339943', ..........
```

Here's from using

\`card.fetch_actions(action_filter='updateCard', since=None, before=None, action_limit=50)\`


author: Hal Atkins
body: Fetching the address is really helpful, if that is possible in a Butler rule.


author: milynnus
body: [@Hal Atkins](/t5/user/viewprofilepage/user-id/2399899) Since pluginData is not available you will need to have a different way of exposing the location information. Based on the above, the first step is to get a webhook or trigger program to extract the information and update some custom fields on the card. Set it up such that it can also handle changes after the initial setup. Once you have them on custom fields you can use it in Butler. There is a limitation in using lookup cards for custom field. You might need to use an add on that I have. See video below.   
[https://youtu.be/YsOEdbsdgn0](https://youtu.be/YsOEdbsdgn0?)

let's get connected should you want to work through this.