Can anyone plz tell me how to load a .gpx file to my android application? I am using eclipse IDE, I have a osm map in my app, i want to integrate the .gpx file to this osm in the application plz help me

asked 14 Jan '15, 06:18

Mary%20Mathew's gravatar image

Mary Mathew
11224
accept rate: 0%

edited 14 Jan '15, 08:03

scai's gravatar image

scai ♦
31.0k18278434

2

This depends on the framework(s) you are using. Can you give us more details about your application?

(14 Jan '15, 07:57) scai ♦

sir, i'm developing a taxi app where im using an osm map i want t0 integrate .gpx file containing tracks and POI's .My app is android app im using eclipse juno and jars osmdroid4.2 and sl4j 1.5.8.

i want to integrate this .gpx file inside my eclipse code.

plz do help me sir

(14 Jan '15, 08:11) Mary Mathew

Since you are using osmdroid take a look at the osmbonuspack. I'm not familiar with osmbonuspack (nor with osmdroid) but Tutorial 1 describes the steps for displaying a route.

permanent link

answered 14 Jan '15, 09:10

scai's gravatar image

scai ♦
31.0k18278434
accept rate: 23%

But sir i clearly mentioned i want to add or integrate the .gpx file. The tutorial 1 dosent mention anything about .gpx file

(14 Jan '15, 09:20) Mary Mathew

That's correct, as far as I can tell osmdroid + osmbonuspack don't support GPX files directly. But with a little parsing you can extract the coordinates from the GPX file and build the polylines yourself.

(14 Jan '15, 09:54) scai ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×222
×161

question asked: 14 Jan '15, 06:18

question was seen: 3,803 times

last updated: 14 Jan '15, 09:54

powered by OSQA