Announcement

Collapse
No announcement yet.

GPS based location Label plugin/functionality

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPS based location Label plugin/functionality

    Hello all.

    After a long search I'm wondering if exists some type of plugin/functionality of riderunner that allows to put a label indicating the town/street name on some screen of a skin, based on gps coordinates from gps receiver. I remember some similar functionality in old RR version, maybe related to destinator/mapmonkey software?

    In my recent searches on forums I've found something similar based on a text file "zips.dat" but it's limited to US locations. I think that a text file it's a little inefficient in terms of search so maybe a database file (sqlite?) can do a better job! Moreover I'd like to use it in europe so the mentioned zips.dat and related functionality can't help me. I think that geonames.org website could be a good source of informations for every state all over the world.

    So, finally my question: is there a simple way to have the desired result or pheraps it's necessary to write a dedicated plugin?
    My new dash setup with 8.4" LCD!
    Secondary (roof) LCD display
    False floor with mobo, amp and all the electronics
    Power supply and HDD Suspension system detail

  • #2
    Think that also came from using FreeDrive another Destinator 3 based program.


    Could do a spin off from my Fuelprices plugin, but it would need internet connection to get the info.

    Comment


    • #3
      Thank you En4rcer for quick response.

      It's not clear to me the need of internet connection to get the info. I was thinking to some "service" (a RR plugin?) polling the gps lat & lon coordinates then querying a database to find a match. The database, in a basic shape, contains three columns: LAT, LON, CITY.


      EDIT:
      Read your RRFuelPrices description and found the answer by myself! Your plugin uses an online service to convert the coordinates to zip codes.
      Anyway, I think it can be useful to have a local conversion, just to show some information on your current position (city or street name) without the need to open the gps software. In addition, when an internet connection is available, the info on city name can be used to update informations on petrol prices, weather etc...
      Last edited by l1nk; 04-01-2011, 12:22 PM.
      My new dash setup with 8.4" LCD!
      Secondary (roof) LCD display
      False floor with mobo, amp and all the electronics
      Power supply and HDD Suspension system detail

      Comment


      • #4
        Ok, as far as I can see, there's nothing already done here to solve my need. Oh, not exactly a need but just something I'd like to have on RR

        As a simple exercise I've downloaded some data from geonames website and after a little processing I ended up with a db (mysql) populated by about 20k rows of data. Columns on that db are: (`ZIP`, `CITY`, `PROVINCE_TEXT`, `PROVINCE_CODE`, `LAT`, `LON`)

        Tried a simple query based on the haversine formula just to see how fast can be to look up for a ZIP code on a similar db, starting from arbitrary values of lat&long got on google maps. The query returns a (exact!) result really fast

        Next step may be to write a plugin for RR that uses GPSLAT and GPSLON values to periodically query database and fill a label value with city name or zip.... but as I know nothing of the framework, it's not so easy for me!

        Moreover, I've already ported the mysql db to sqlite file but discovered that sqlite engine have no support for trigonometry, so it's impossible to write a geospatial query!!

        Any advice/help/comment is welcome!
        My new dash setup with 8.4" LCD!
        Secondary (roof) LCD display
        False floor with mobo, amp and all the electronics
        Power supply and HDD Suspension system detail

        Comment


        • #5
          My GoogleMapsTrack do that

          Comment


          • #6
            I am also interested in an app such as this. My line of thought was more along the path of porting location info (whether it be suburb or street name etc) and print on an external aux lcd in car (along with other real time data such as obd).

            This idea cam from my dad's merc e320 which displays current street name on lcd in dash (from gps) - very handy when looking of an address or something and increases situational awareness.

            Sorry Pierre, I dont see how your prog does this/ Although I may have missed something
            Last edited by mos33y; 04-19-2011, 09:05 PM.

            Comment


            • #7
              I built this feature into RR a few years back using the zips.dat file, but it was limited to the USA only. I've always wanted to expand it but i dont have a source for the data that is reliable and accessible. If you can find the sources it can be added, even via plugin if need be.
              mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
              Follow Me on Twitter or Facebook
              Live mp3Car Facebook Chat

              Comment


              • #8
                I think that the best way is to use the Google API 'reverse-geocoding' into a plugin or a autoit script :
                geocoding-reverse.html

                Comment


                • #9
                  Originally posted by pierrotm777 View Post
                  I think that the best way is to use the Google API 'reverse-geocoding' into a plugin or a autoit script :
                  geocoding-reverse.html
                  that requires an internet connection. For this to work well it should only be dependent on gps connection.
                  mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
                  Follow Me on Twitter or Facebook
                  Live mp3Car Facebook Chat

                  Comment


                  • #10
                    I know, but l1nk don't say that he don't wan't use internet for that :-)

                    Comment


                    • #11
                      Doing it locally is always going to be a pain, especially if you want to do it internationally as you would need a whole lot of GPS data for every country.


                      Doing via internet is possible, but you would need continuous internet connection for it to work properly.

                      It might be possible to build your own local DB from the internet one based on previous information (ie when you have travelled that road before), but I am sure that would violate the TOS from any site you get the info from.

                      Comment


                      • #12
                        For just basic usage like how the us zips works, all one/we would need to do is create a zips.day file for whatever area. As long as it is formated the same, it would work right along side the current built in code on rr. It's just that no one has bothered to do it or create it. The only good thing as far as keeping it a txt file is that it's much easier for even a noon to edit if they choose verse going with a db solution.
                        RideRunner...The #1 FE, PERIOD.

                        Current Project: DFXVoice [v1.0 Released]
                        Next in line: RRMedia v2.0

                        DFX 5.1.1 Skin
                        Appstore Link

                        My RideRunner Plugins
                        RRMedia
                        RRExtended
                        DFXVoice

                        "There are no bugs - only undocumented features."

                        Comment


                        • #13
                          Originally posted by Enforcer View Post
                          Doing it locally is always going to be a pain, especially if you want to do it internationally as you would need a whole lot of GPS data for every country.


                          Doing via internet is possible, but you would need continuous internet connection for it to work properly.

                          It might be possible to build your own local DB from the internet one based on previous information (ie when you have travelled that road before), but I am sure that would violate the TOS from any site you get the info from.
                          what if data/zip is cached for specified area, like you can via a 3rd party prog (which I have forgotten the name) and google maps?

                          Comment


                          • #14
                            I work on a script that use the Google API and give that (you can try the original Google Source (reverse_geocoding.html)


                            My script use internet and is not finished!
                            Attached Files

                            Comment


                            • #15
                              Originally posted by pierrotm777 View Post
                              I know, but l1nk don't say that he don't wan't use internet for that :-)
                              I don't want to use internet connection for a task like that, as I don't have a permanent internet connection in car!
                              Apart from that, I think that using online services make sense when we need some kind of fresh and updated infos; translating gps coordinates into some place name have nothing to do with this kind of online use ;-)

                              Association of gps coordinates with place name is something "static" and does not change over time; particular LAT and LON coordinates refers always to the same place, regardless of time or day.

                              Instead, association of gps coordinates with weather informations is something that changes over time and so make sense to ask to some online weather service.
                              I hope I was clear explaining this fact!

                              I think that geonames.org website can be a good source for informations and to build a local database. As I previously said I've already built a mysql version for my area and it was a simple task, so I think it can be easily done for every area of the world.

                              I have little time to dedicate to this at the moment but if anyone interested just post here or pm me! I'm still trying to learn how to write rr plugins!
                              My new dash setup with 8.4" LCD!
                              Secondary (roof) LCD display
                              False floor with mobo, amp and all the electronics
                              Power supply and HDD Suspension system detail

                              Comment

                              Working...
                              X