I'm working on problem where i get a message:
"DateTime:22.10.2019 10.24.15,Longitude:10,3315497,Latitude:63,3504556,Bearing:0" and trying to get location from it and show it on map. But now i have a problem, i am able to get the longitude and the latitude but i dont know how to show them on map. Anyone has any idea ?
This is my script
String s = doc['message.keyword'].value.replace(",",".");
def lon = /(?<=Longitude:)(.)(?=.Latitude:)/.matcher(s);
def lat = /(?<=.Latitude:)(.)(?=.Bearing:)/.matcher(s);
if (lon.find()) {
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.