Forum Discussion
Segmenting on a custom location field
Hi Malcolm_Murray
If I am understanding this correctly, you have latitude and longitude coordinates stored in your database and you'd like to pass these to Braze and segment using these?
You could pass latitude and longitude over and store each of them in their own custom attribute and potentially segment using these. For example (ignore the export/projects, that is all I had stored as numbers):
The limitation you might be running into is that although Braze can use location, it is not an available data type to store as an attribute.
You could take you latitude and longitude coordinates and convert them to decimals which could then be stored as a number. There is an online converter for this below but I have also posted a Stackoverflow post about how to code this with Javascript which might help you automate the process:
https://www.fcc.gov/media/radio/dms-decimal
javascript - Converting latitude and longitude to decimal values - Stack Overflow
If I have totally missed your question, this was a great learning and problem to solve for me, so thank you. 😆
Related Content
- 2 years ago
- 7 months ago
- 2 years ago