Hi,
I imported a GPX track into a map component and I drew the track LineString.
I need to click on a point of the LineString to get some informations : LAT, LON and ID of the point clicked.
Through the ID I could retrive other data like altitude ( I imported altitude data from GPX in a list).
There is no standard method to do this with LineString component.
Is there a way/extension/workaround to do this ?
Thanks
SteveJG
November 3, 2025, 12:25pm
2
A LineString is just a list of coordinates. What you can do with it is described here> Maps
You might find
How to import, create and use gpx and kml track files to App Inventor Map
GPX / KML File Reader/Creator provides a way to import map route displays made with Garman GPS devices or Web pages that publish kml hiking routes (hiking tracks etc.). App Inventor uses a LineString to display a similar track. A gpx or kml file can be 'converted' to a set of location 'points' and loaded to a LineString and saved so it can be used for future use in the device's Documents folder.
[testgpx] (gpx file f…
useful and
How to import, create and use gpx and kml track files using App Inventor Map Part II .. Use SAF extension (Storage Access Framework) to select kml/gpx files stored in your Documents folder.
[icon]
This advanced tutorial:
builds an app that displays kml and gpx tracking files like these that you might download :
[selectkmlgpxbutton] [viewkml2]
shows how to place kml and gpx tracking files into the Android Documents folder
[DocumentsFile]
shows how to place the tracking files you loa…
and
The distanceLineString Procedure calculates the sum of all the LineString segments (or legs if you will) in your trak LineString. The procedure can be built using calls to either the distanceBetweenLocationsMiles Procedure or the distanceBetweenLocationsKilometers Procedure (depending on whether you want the distance in miles or kilometers).
The Map1.DoubleTapAtPoint builds an example linestring. It is there only to demonstrate how the calculation of distance works in the demonstration…
I am aware of one GPX extension that might help you get the information you need
from Gemini:
GPX (GPS Exchange Format) and KML (Keyhole Markup Language) are both file formats used for geographic data:
GPX: Primarily used for storing waypoints, tracks, and routes recorded by GPS devices. It's common for sharing hiking trails, cycling routes, or geocaching locations. It focuses on the raw GPS data.
KML: Used for displaying geographic data in applications like Google Earth. It can store points, lines, and polygons, along with richer content like descriptions, images, and 3D…
Thank you
I already checked theese links.
So there is no way to click a Linestring point and to get info about that point..........
TIMAI2
November 6, 2025, 11:26am
4
Use can enable the infobox, and set/get information for the infobox.
RaYzZz
November 6, 2025, 11:39am
5
As in the Django example, you can add a marker for each coordinate with the information for that specific point.
ok, but I can't get info clicking a point on the lineString
This could work.
I need to check how many times needed to draw almost 500 markers.......
Thanks to all gave me an answer
system
Closed
November 20, 2025, 12:22pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.