Author Topic: MapThis! GPS enabled map viewer for PSP  (Read 120659 times)

0 Members and 3 Guests are viewing this topic.

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #15 on: August 20, 2006, 09:14:15 PM »
danzel, thanks for that tip about the HW rendering...
Also, I am using the danzeff OSK (hope you don't mind) it's much better than sony's original one..

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #16 on: August 20, 2006, 09:22:05 PM »
Works perfect. I'm going to order me a GPS mouse for this!


How do we download satellite and hybrid maps from Google instead of juts map view?

It would also me nice if you could do a lon/lat lookup via wifi to get the co-ordinates for wifi upload.



use gethybrid.sh cygwin script (read README for details..)

Also, someone just made a C#/.NET program to zoom in and get the maps for MapThis!:
screenshot:
http://homepage.mac.com/f.levin/psp/gmdl.jpg

source and exe (in /bin/debug/):
http://homepage.mac.com/f.levin/psp/gmdl.zip

It's not 100% finished but already working...
Perhaps it's an easier way, than cygwin scripts, to get the maps via PC for letter upload to PSP.... (it does not do hybrids so far though)

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #17 on: August 20, 2006, 09:35:31 PM »
Hello deniska.
To add the attractions does have to be manually? cannot they be download as the maps?
Would be also interesting, if it is possible, for future versions to be able to indicate where to want to go and that it indicates you the pointer like to arrive, or another form.
It is a lot of work but your homebrew it is very well!!

Btw, I believe that I found a bug, upload map for wifi and cancel. Then I try to download another map and it didn't connect wifi, but before connected me.

Thanks a lot :)


re:Atractions - the short answer is yes..but..
I did put in a couple of scripts (in sccripts folder) to get restaurants, gas & movie theatres for most areas in USA (a quick hack of a few vendor sites)
Hopefully people will come up with new sources to get the POI data from...

Re routing: I did not have time to throw in basic route support... hopefully it will be in the next version... I did put in a script to get "directions from MSN".
So it should not be too hard to "import a route", consisting of GPS coordinates and instructions.. so once you get close to the next way point you'll see "MAKE A LEFT TURN ON .... STREET" or something like that...
Of course, I don't have any data to be able to calculate a route on a fly... :-(

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: MapThis! GPS enabled map viewer for PSP
« Reply #18 on: August 20, 2006, 11:51:54 PM »
I'm glad you used the danzeff OSK, thats why I released the source  :-*

Might have to port over some voice synthesis for the route support when it gets added.

Offline Raphael

  • Newbie
  • *
  • Posts: 27
Re: MapThis! GPS enabled map viewer for PSP
« Reply #19 on: August 21, 2006, 01:55:21 AM »
Great stuff, my favorite on the PSP apps section even though I miss to have GPS :)
Props

Offline vibez

  • Newbie
  • *
  • Posts: 17
Re: MapThis! GPS enabled map viewer for PSP
« Reply #20 on: August 21, 2006, 02:58:10 AM »
Quote

use gethybrid.sh cygwin script (read README for details..)

Also, someone just made a C#/.NET program to zoom in and get the maps for MapThis!:
screenshot:
http://homepage.mac.com/f.levin/psp/gmdl.jpg

source and exe (in /bin/debug/):
http://homepage.mac.com/f.levin/psp/gmdl.zip

It's not 100% finished but already working...
Perhaps it's an easier way, than cygwin scripts, to get the maps via PC for letter upload to PSP.... (it does not do hybrids so far though)

Thanks! Any thoughts on resolving the co-orninates (long/lat) from a zip/post code? That way, if we are out in the country and need a new map and we are near an access point, we can grap the map using the psp.

Offline vibez

  • Newbie
  • *
  • Posts: 17
Re: MapThis! GPS enabled map viewer for PSP
« Reply #21 on: August 21, 2006, 06:04:27 AM »
I tried the directions.sh and get this error with the example command line

Code: [Select]
Lee@main ~/sccripts
$ ./getdirections.sh \"195 Broadway, New York, NY\" \"10 market st, san franciscoi,ca\"
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
./getdirections.sh: line 12: strings: command not found

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #22 on: August 21, 2006, 07:25:27 AM »
Sorry, looks like I forgot to include urlencoder....
Well you can either comment it out or dl & use this script:
http://www.shelldorado.com/scripts/cmds/urlencode

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #23 on: August 21, 2006, 07:31:54 AM »
I'm glad you used the danzeff OSK, thats why I released the source  :-*

Might have to port over some voice synthesis for the route support when it gets added.

There might be a problem with voice prompts though...
Looks like you need a head phone jack pluged in in order to enable the serial port... Of course, that will put PSP on MUTE..
I'm sure there is a way around it.. but wanted to keep the wiring simple enough for a "regular Joe" to DIY...

Offline vibez

  • Newbie
  • *
  • Posts: 17
Re: MapThis! GPS enabled map viewer for PSP
« Reply #24 on: August 21, 2006, 08:30:59 AM »
Sorry, looks like I forgot to include urlencoder....
Well you can either comment it out or dl & use this script:
http://www.shelldorado.com/scripts/cmds/urlencode

urlencode.sh was included. I've no idea what the exact problem is.

It just seems like urlencode is just spitting out the default usage instructions, suggesting to me at least that commands you are sending to it are not recognized by the script?
« Last Edit: August 21, 2006, 08:55:34 AM by vibez »

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #25 on: August 21, 2006, 09:16:35 AM »
Sorry, looks like I forgot to include urlencoder....
Well you can either comment it out or dl & use this script:
http://www.shelldorado.com/scripts/cmds/urlencode

urlencode.sh was included. I've no idea what the exact problem is.

It just seems like urlencode is just spitting out the default usage instructions, suggesting to me at least that commands you are sending to it are not recognized by the script?

Don't escape the quotes when you call it:
./getdirections.sh "195 Broadway, New York, NY" "10 market st, san franciscoi,ca"

Offline vibez

  • Newbie
  • *
  • Posts: 17
Re: MapThis! GPS enabled map viewer for PSP
« Reply #26 on: August 21, 2006, 09:22:46 AM »
I still get the same error

Code: [Select]
Lee@main ~/sccripts
$ ./getdirections.sh "195 Broadway, New York, NY" "10 market st, san franciscoi,ca"
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
./getdirections.sh: line 12: strings: command not found

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #27 on: August 21, 2006, 09:29:44 AM »
I still get the same error

Code: [Select]
Lee@main ~/sccripts
$ ./getdirections.sh "195 Broadway, New York, NY" "10 market st, san franciscoi,ca"
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
urlencode.sh - encode URL data, 1.2
usage: urlencode.sh [-l] [file ...]
    -l:  encode line endings (result will be one line of output)

The default is to encode each input line on its own.
./getdirections.sh: line 12: strings: command not found

Hmm, not sure what the problem is (works fine for me).. but you can just comment out urlencoding (change it to this):
#start=`echo $1|./urlencode.sh`
#end=`echo $2|./urlencode.sh`
start=$1
end=$2



If that does not work, you may need to do manual encoding (something like this):
./getdirections.sh "195+Broadway,+New+York,+NY" "10+market+st,+san+franciscoi,ca"

Offline vibez

  • Newbie
  • *
  • Posts: 17
Re: MapThis! GPS enabled map viewer for PSP
« Reply #28 on: August 21, 2006, 09:39:37 AM »
Ok, I've made the changes you suggested in the script and turned on bash debug.

here is the new error

Code: [Select]
Lee@main ~/sccripts
$ bash -x ./getdirections.sh "195+Broadway,+New+York,+NY" "10+market+st,+san+franciscoi,ca"
+ '[' -z 195+Broadway,+New+York,+NY ']'
+ '[' -z 10+market+st,+san+franciscoi,ca ']'
+ start=195+Broadway,+New+York,+NY
+ end=10+market+st,+san+franciscoi,ca
+ wget -t0 -o log -O - 'http://local.live.com/directions.ashx?start=195+Broadway,+New+York,+NY&end=10+market+st,+san+franciscoi,ca&units=mi&mkt=en-us'
+ strings
./getdirections.sh: line 14: strings: command not found
+ head -1
+ sed -e 's/new VE_RouteInstruction(/\n====/g'
+ grep ====
+ read line
+ count=1
+ '[' -n '' ']'

What environment are you using? *nix or windows?

Offline deniska

  • Jr. Member
  • **
  • Posts: 59
Re: MapThis! GPS enabled map viewer for PSP
« Reply #29 on: August 21, 2006, 09:44:03 AM »
Ok, I've made the changes you suggested in the script and turned on bash debug.

here is the new error

Code: [Select]
Lee@main ~/sccripts
$ bash -x ./getdirections.sh "195+Broadway,+New+York,+NY" "10+market+st,+san+franciscoi,ca"
+ '[' -z 195+Broadway,+New+York,+NY ']'
+ '[' -z 10+market+st,+san+franciscoi,ca ']'
+ start=195+Broadway,+New+York,+NY
+ end=10+market+st,+san+franciscoi,ca
+ wget -t0 -o log -O - 'http://local.live.com/directions.ashx?start=195+Broadway,+New+York,+NY&end=10+market+st,+san+franciscoi,ca&units=mi&mkt=en-us'
+ strings
./getdirections.sh: line 14: strings: command not found
+ head -1
+ sed -e 's/new VE_RouteInstruction(/\n====/g'
+ grep ====
+ read line
+ count=1
+ '[' -n '' ']'

What environment are you using? *nix or windows?

I am using cygwin under win xp pro...

looks like your system is missing some required commands: "strings" is one of them