Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


plambrechtsen

1948 posts

Uber Geek
Inactive user


#74568 2-Jan-2011 16:37
Send private message

Just posted this on the NZ Open GPS Web site about how to download and have offline the NZ Open GPS Mapset onto an Android phone for full turn by turn driving.

http://gwprojects.org/forum/viewtopic.php?f=3&t=1703
Thought others might find this useful Smile

Create new topic
Jizah
236 posts

Master Geek


  #423432 2-Jan-2011 16:58
Send private message

Will give this a go. Cheers.



dpw

dpw
843 posts

Ultimate Geek

ID Verified
Trusted

  #423460 2-Jan-2011 18:45
Send private message

Looks good but I can't seem to run the python script. A quick peek at the script seems to expect "input.mp" as input file name? I renamed the downloaded Canterbury.mp to input.mp. That didn't seem to help either. I keep getting this error:


File "mp2osm_linz_jr_pl.py", line 268
print 'ptang missing 0x%x poi:%s line:%s poly:%s sufi:%s' % (typecode, poi, polyline, polygon, sufi)
^
SyntaxError: invalid syntax




Android user, software developer, a semi-typical (not a gamer) geek, and a Bernese Mountain Dog nut!

http://savitarbernese.com | https://nz.linkedin.com/in/danywu


Jizah
236 posts

Master Geek


  #423463 2-Jan-2011 18:50
Send private message

Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.



dpw

dpw
843 posts

Ultimate Geek

ID Verified
Trusted

  #423466 2-Jan-2011 18:54
Send private message

Jizah: Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.


What do you mean by "...seemed to work"? I get the exact same error before and after I renamed the input file. 




Android user, software developer, a semi-typical (not a gamer) geek, and a Bernese Mountain Dog nut!

http://savitarbernese.com | https://nz.linkedin.com/in/danywu


siimo2005
68 posts

Master Geek


  #423491 2-Jan-2011 19:58
Send private message

That free app isn't worth the hassle, its bloated and slow, I deleted it after trying it for a few days.

I would recommend http://www.appbrain.com/app/navdroyd/com.osa.android.navdroyd for an offline only solution. NavDroyd is cheap for only $9.25 NZ and will work in every single country in the world using OSM. It provides turn-by-turn guidance and regular map updates too. The guidance is good, it even says street names just like Google Navi does.

The biggest pitfall is that OSM maps are lacking sometimes. But I have used them around Auckland and have been just fine for my needs. At least map updates are regular.

NavDroyd map data is much smaller than that OSMAnd thing, I think NZ was around 9MB only. And it is from the same source OSM so their compression/vector format must be superior.

BarTender
3606 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #423524 2-Jan-2011 21:18
Send private message

dpw:
Jizah: Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.


What do you mean by "...seemed to work"? I get the exact same error before and after I renamed the input file. 


You probably need a newer version of Python, I used 2.7 and it worked fine.

If you're logged into the NZ Open GIS site you can download my modified version of the python, it's an attachment at the bottom of the post...


siimo2005: That free app isn't worth the hassle, its bloated and slow, I deleted it after trying it for a few days.

I would recommend http://www.appbrain.com/app/navdroyd/com.osa.android.navdroyd for an offline only solution. NavDroyd is cheap for only $9.25 NZ and will work in every single country in the world using OSM. It provides turn-by-turn guidance and regular map updates too. The guidance is good, it even says street names just like Google Navi does.

The biggest pitfall is that OSM maps are lacking sometimes. But I have used them around Auckland and have been just fine for my needs. At least map updates are regular.

NavDroyd map data is much smaller than that OSMAnd thing, I think NZ was around 9MB only. And it is from the same source OSM so their compression/vector format must be superior.


Ahh that's why I am not using OSM Data, I am using the NZ Open GIS data.  Which does give you turn by turn based off the solid efforts of the NZ folks who have taken the LINZ data and made it great.  I havn't found OsmAnd bloated or slow, it renders on my wifes flipout in a few seconds and works completely offline.  We'll be taking it for a good test when I go for a large drive in a few weeks.  But so far around town it's been great... With the NZ Open GIS data rather than OSM which is still somewhat lacking in NZ.

dpw

dpw
843 posts

Ultimate Geek

ID Verified
Trusted

  #423529 2-Jan-2011 21:27
Send private message

BarTender:
dpw:
Jizah: Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.


What do you mean by "...seemed to work"? I get the exact same error before and after I renamed the input file. 


You probably need a newer version of Python, I used 2.7 and it worked fine.

If you're logged into the NZ Open GIS site you can download my modified version of the python, it's an attachment at the bottom of the post...


I was already using the script from the NZ Open GIS site. Interestingly I needed an older version of Python. I was using 3.1.2 when it failed - tried it with 2.7 and it worked fine. 




Android user, software developer, a semi-typical (not a gamer) geek, and a Bernese Mountain Dog nut!

http://savitarbernese.com | https://nz.linkedin.com/in/danywu


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
Jizah
236 posts

Master Geek


  #423716 3-Jan-2011 13:05
Send private message

dpw:
Jizah: Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.


What do you mean by "...seemed to work"? I get the exact same error before and after I renamed the input file. 


I said it seemed to work because it gave me an output file, but I wasn't actually sure if it was complete. Thought maybe it was why I couldn't get past the next step without errors.

BarTender
3606 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #423717 3-Jan-2011 13:08
Send private message

Jizah: I said it seemed to work because it gave me an output file, but I wasn't actually sure if it was complete. Thought maybe it was why I couldn't get past the next step without errors.


If you run it through Osmosis then you will know if it's a valid OSM XML File or not.

4.1) (Optional) Use Osmosis to convert from a OSM XML file into a OSM PBF Binary file. using "osmosis --rx input.osm --write-bin input.osm.pbf omitmetadata=true". This also checks it's a valid XML file you're working with.

But if the Python exits successfully and returns a sane set of totals... Then it should have worked fine.

siimo2005
68 posts

Master Geek


  #424037 4-Jan-2011 20:06
Send private message

BarTender:
dpw:
Jizah: Yeah I hit a hurdle too. Did the same as you, renamed files to input.mp which seemed to work, but got an error on the next step.


What do you mean by "...seemed to work"? I get the exact same error before and after I renamed the input file. 


You probably need a newer version of Python, I used 2.7 and it worked fine.

If you're logged into the NZ Open GIS site you can download my modified version of the python, it's an attachment at the bottom of the post...


siimo2005: That free app isn't worth the hassle, its bloated and slow, I deleted it after trying it for a few days.

I would recommend http://www.appbrain.com/app/navdroyd/com.osa.android.navdroyd for an offline only solution. NavDroyd is cheap for only $9.25 NZ and will work in every single country in the world using OSM. It provides turn-by-turn guidance and regular map updates too. The guidance is good, it even says street names just like Google Navi does.

The biggest pitfall is that OSM maps are lacking sometimes. But I have used them around Auckland and have been just fine for my needs. At least map updates are regular.

NavDroyd map data is much smaller than that OSMAnd thing, I think NZ was around 9MB only. And it is from the same source OSM so their compression/vector format must be superior.


Ahh that's why I am not using OSM Data, I am using the NZ Open GIS data.  Which does give you turn by turn based off the solid efforts of the NZ folks who have taken the LINZ data and made it great.  I havn't found OsmAnd bloated or slow, it renders on my wifes flipout in a few seconds and works completely offline.  We'll be taking it for a good test when I go for a large drive in a few weeks.  But so far around town it's been great... With the NZ Open GIS data rather than OSM which is still somewhat lacking in NZ.


Oh fair enough, i thought NZ open maps was same as OSM.   I have found OSM pretty sufficient, only thing it lacked was like this semi-private road when I went down to coromandel during christmas, otherwise it has been find around auckland and efficient and yes OSMAnd works it is pretty slow when compared to NavDroyd atleast for me.  Also I didn't feel like going through that hassle of setting it all up.  But I will give it another go sometime. 

Antzzz
190 posts

Master Geek


  #425575 9-Jan-2011 22:34
Send private message

Bother, not working for me - python script explodes with an error. Have posted error on the NZOGPS forum...

plambrechtsen

1948 posts

Uber Geek
Inactive user


  #425596 10-Jan-2011 01:35
Send private message

Antzzz: Bother, not working for me - python script explodes with an error. Have posted error on the NZOGPS forum...


And posted fix on NZ Open GPS site.. you need the old \n to escape the crfl at the end of the line to use line ==...

Antzzz
190 posts

Master Geek


  #425937 10-Jan-2011 22:36
Send private message

Cheers for that, working now!

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.