From 5a6b0fbdb522eed88d857c127acdbd49b4799e4c Mon Sep 17 00:00:00 2001 From: mmajerni Date: Wed, 13 Mar 2024 10:50:53 +0100 Subject: [PATCH] Update based on changes in Camel 4 --- Transformations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transformations.java b/Transformations.java index ee0ff33..801937a 100755 --- a/Transformations.java +++ b/Transformations.java @@ -110,8 +110,8 @@ public void process(Exchange exchange) throws Exception { } List coordinates = new ArrayList(); - coordinates.add(exchange.getProperty("lat", "").toString()); - coordinates.add(exchange.getProperty("lon", "").toString()); + coordinates.add(exchange.getProperty("lat", String.class)); + coordinates.add(exchange.getProperty("lon", String.class)); Map geometry = new HashMap(); geometry.put("type", "Point");