Services Plugins FAQs

Image Metadata Plugin - combine LatRef/Lat and LongRef/Long

Hello. I’m trying to utilize the Image Metadata Plugin on my Bubble app to allow users to confirm the location of their photo’s metadata location before uploading it to the database. Bubble allows me to show the latitude and longitude by creating a string of text for each of the four elements (LatRef, Lat, LongRef, Long) in a text box.

The problem is that I would also like to use the metadata location information to show approximate formatted addresses. Bubble’s Calculate CoordtoAddress function works fine with just the latitude and the longitude but because the LatitudeRef and LongitudeRef aren’t included, it gives me the wrong address.
image

Is there a way to combine the LatRef/Lat and LongRef/Long before uploading them to the database so I can use this information for the users to confirm the location before submission?

Thanks.

1 Like

Hello @anna.f.harvey,

Thank you for reaching out to us.

Regarding your question, you can actually retrieve the Latitude/Longitude Reference using the plugin, which indicates North/South or East/West. To find this, simply search for “GPS LatitudeRef”:

Could you please try this and let me know how it works for you and if it is what you’re searching for?

Thank you, and I look forward to your reply.

Best regards,
Stefan

Thanks for the response. I don’t have an issue showing the reference. What I need to do is find a way to combine the reference and the latitude/longitude together so that I can use Bubble’s calculation to convert the latitude and longitude to a formatted address. LatitudeRef and LongitudeRef only give me the reference, not the full latitude and longitude.

Hello @anna.f.harvey,

Thank you for the message.

The plugin retrieves metadata from images, including latitude and longitude, if available. You can use these coordinates along with the reference values to obtain the address. Additionally, you can convert the ‘S’ and ‘E’ references to negative values to ensure accuracy. For a practical example, please visit this test page and click on this button to see how it is done.

I hope this information is helpful to you. Please let me know if everything is clear or if you have any further questions.

Thank you again, and have a great day ahead!

Best regards,
Stefan

Thank you. I do understand the information that the plugin is retrieving. What I need is a way to combine the reference and the coordinate into one element so that I can use it as a variable in other calculations and functions of Bubble. The demonstration page does not provide any documentation and the documentation page does not have much information on how to use the plugin. Is there any other documentation available? Thanks!

Hello @anna.f.harvey ,

I hope this message finds you well.

Our plugin, Image Metadata, provides all the states necessary to achieve your desired output. I’ve even created a test page to demonstrate how you can obtain a geographical address using the mentioned states [image].

Unfortunately, while we offer general support for the main functionalities of the plugin, we are unable to assist with customizing your app functionalities.

Thank you for your understanding, and I wish you a great day ahead!

Best regards,
Stefan

Thank you for providing this additional demo page. The demo page that is found on the plugin page via Bubble is not the same as the page you provided me and provides very little information. The documentation found via the Bubble plugin page provides very little information also. The page you provided allowed me to figure out the answer to my problem, however the calculations on your demo page are incorrect for the formatted address. This is what the calculation should look like where the “find & replace” values are as follows: N → 1, S → -1, E → 1, and W → -1. I tried to copy exactly what was on your page and it would not work for me until I made these changes.

Hello @anna.f.harvey ,

Thank you for your message.

Yes, the test page mentioned earlier was designed to demonstrate how you can generate a geographical address from the metadata obtained from an image using the plugin. The demo pages showcase the plugin’s general functionalities and do not cover all potential use cases. In this instance, the plugin simply retrieves metadata from the images you provide.

Nonetheless, I’m glad to hear you found a solution to your question. Please don’t hesitate to reach out if you have any further questions or inquiries.

Have a great day ahead!

Best regards,
Stefan