API key for TSRE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GokuMK
    Senior Member

    • Oct 2015
    • 729
    • Poland

    #46
    Originally posted by cnwfan
    I still have no map even WITH THE copy and paste of the NEW URL and NO SPACES , good key.. [ATTACH=CONFIG]75273[/ATTACH]

    That said while I want to use TSRE- I will not use a broken map layer of the program until we have a updated version with fixed map layer. Again I express that this has become very frustrating when I see other people that can use their copy fine and others have reported similar problems with map layer and still we have no fixes.
    If you get Grey image, then TSRE does all good. In case of TSRE failure you would get text message error, not image error ...
    You have error from Google on your image. It says "This site can't load Google Maps correctly" and there is error type below.
    Just save the image on disk, open the file and read your error message ...

    Comment

    • cnwfan
      1000 Post Veteran

      • Oct 2005
      • 1250

      #47
      Originally posted by GokuMK
      If you get Grey image, then TSRE does all good. In case of TSRE failure you would get text message error, not image error ...
      You have error from Google on your image. It says "This site can't load Google Maps correctly" and there is error type below.
      Just save the image on disk, open the file and read your error message ...
      How can I read the error message when font size is so little?
      Todd
      Iowa Chicago and Eastern Mason City Sub

      Comment

      • GokuMK
        Senior Member

        • Oct 2015
        • 729
        • Poland

        #48
        Just read my message above one time more. Or more until you see how.

        Just save the image on disk, open the file and read your error message ...

        Comment

        • MSTS lifer
          Senior Member

          • Dec 2012
          • 523

          #49
          Here's the text of that error message.This site can't load Google Maps correctly.Do you own this website?g.co/saticmaperror/signature

          I use TS/RW but Todd is a friend so I tried to help him out. I'm getting the same error message he did. API key correct and all arranged properly in the URL. If you take a API and copy/paste using notepad, you'll see what the actually letters and numbers are. I talked a little about that yesterday. From notepad, copy and past that on to the page with TSRE settings where it asks for the imageMapsUrl.

          http://maps.googleapis.com/maps/api/staticmap?center={lat},{lon}&zoom={zoom}&size={res }x{res}&maptype=satellite&key= Paste API Key copied from notepad.


          So, the error... Is this on my end, Googles or whatever website Goku is using, or none of the above??
          Last edited by MSTS lifer; 10-05-2018, 16:11.

          Comment

          • cnwfan
            1000 Post Veteran

            • Oct 2005
            • 1250

            #50
            Originally posted by GokuMK
            Just read my message above one time more. Or more until you see how.
            Why I asked was because the font is too small to read even when it was blown up ! That said MSTS lifer and others have been kind enough to help me try to figure this out.
            Todd
            Iowa Chicago and Eastern Mason City Sub

            Comment

            • MSTS lifer
              Senior Member

              • Dec 2012
              • 523

              #51
              Well, best I can tell, a API Key from google WILL NOT work unless a NON prepaid credit card is used.....

              Another friend tried TSRE with his API got the same results as myself as Todd. Went to check to see if his API was enabled. It wasn't. He enabled it and the billing info page came up. He says Google wanted the $200 and wouldn't enable the key until receipt of payment. Of Course he said screw that!!

              I tried. Exact same thing EXCEPT mine was REJECTED because I have a prepaid card. Well it's not a prepaid card so why it says that I don't know. But what seems to be very clear is a "NO PAY, NO PLAY!!" attitude on Googles part.I'm really up the creek if DTG ever decides not to make the API a built in feature of TS. The 2019 version is coming. I have not looked into weather or not it will be still built in on the 2019 version.
              Last edited by MSTS lifer; 10-05-2018, 17:44.

              Comment

              • MSTS lifer
                Senior Member

                • Dec 2012
                • 523

                #52
                Originally posted by MSTS lifer
                Here's the text of that error message.This site can't load Google Maps correctly.Do you own this website?g.co/saticmaperror/signature I use TS/RW but Todd is a friend so I tried to help him out. I'm getting the same error message he did. API key correct and all arranged properly in the URL. If you take a API and copy/paste using notepad, you'll see what the actually letters and numbers are. I talked a little about that yesterday. From notepad, copy and past that on to the page with TSRE settings where it asks for the imageMapsUrl. http://maps.googleapis.com/maps/api/staticmap?center={lat},{lon}&zoom={zoom}&size={res }x{res}&maptype=satellite&key= Paste API Key copied from notepad. So, the error... Is this on my end, Googles or whatever website Goku is using, or none of the above??
                I get the 404 error when I click on the link for g.co/saticmaperror/signature

                Google URL Shortener URL Shortener404: Page not found – the page http://g.co/saticmaperror/signature does not exist.If you typed in or copied/pasted this URL, make sure you included all the characters, with no extra punctuation.

                1. Is it a link?
                2. I may have not read it right. As Todd said, it's in a very, very small font. Maybe 2-3 point type......

                Comment

                • cnwfan
                  1000 Post Veteran

                  • Oct 2005
                  • 1250

                  #53
                  Originally posted by MSTS lifer
                  Well, best I can tell, a API Key from google WILL NOT work unless a NON prepaid credit card is used.....

                  Another friend tried TSRE with his API got the same results as myself as Todd. Went to check to see if his API was enabled. It wasn't. He enabled it and the billing info page came up. He says Google wanted the $200 and wouldn't enable the key until receipt of payment. Of Course he said screw that!!

                  I tried. Exact same thing EXCEPT mine was REJECTED because I have a prepaid card. Well it's not a prepaid card so why it says that I don't know. But what seems to be very clear is a "NO PAY, NO PLAY!!" attitude on Googles part.I'm really up the creek if DTG ever decides not to make the API a built in feature of TS. The 2019 version is coming. I have not looked into weather or not it will be still built in on the 2019 version.
                  Again why we need a fix of the OSM thats built into TSRE! with out this I along with others that are in the same boat have no choice but to go back to old ways or stop building routes.
                  Todd
                  Iowa Chicago and Eastern Mason City Sub

                  Comment

                  • Vince
                    6500 Post Veteran

                    • Nov 1999
                    • 6961
                    • Mohave

                    #54
                    Originally posted by cnwfan
                    Again why we need a fix of the OSM thats built into TSRE! with out this I along with others that are in the same boat have no choice but to go back to old ways or stop building routes.
                    Respectfully it's probably because TSRE is still a WIP, is still in testing and author GokuMK has a life too. I donated and I'm well satisfied with his work so far. I'm suer he'll get to the bugs / requests when he has the time.

                    regards,
                    ............Vince ..............
                    ...... Author NECv4 .......
                    .... LIRR BUILD PHOTOS ....
                    ...... Eschew Obsfucation ......

                    On the The Statue of Liberty in New York Harbor there is a Tablet. On it is written:
                    "Give me your tired, your poor, your huddled masses yearning to breathe free,
                    the wretched refuse of your teeming shore, send these, the homeless, tempest-tossed to me,
                    I lift my lamp beside the golden door!"

                    Comment

                    • Hannes44
                      Senior Member
                      • Nov 1999
                      • 133
                      • Austria.

                      #55
                      After testing my API key with the link GOKU provided (thank you for that) and finding, it was not valid for maps, I gave the billing information again on the Google website (reluctantly) and got a new API key, that works. If I understood correctly, use of the key is free up to a value of 200$ per month. I'm still quite uneasy about using this new key because the Google website is very convoluted and confusing with a clear pitch for website-owners integrating maps on their sites, and I surely don't want to pay for a handful of maps.

                      Comment

                      • GokuMK
                        Senior Member

                        • Oct 2015
                        • 729
                        • Poland

                        #56
                        Originally posted by MSTS lifer
                        I get the 404 error when I click on the link for g.co/saticmaperror/signature

                        Google URL Shortener URL Shortener404: Page not found – the page http://g.co/saticmaperror/signature does not exist.If you typed in or copied/pasted this URL, make sure you included all the characters, with no extra punctuation.
                        Just paste the link into google and you will find this:

                        And then this:


                        It says that you need to have not only API key but also signature. Don't know why. It says that for standard key signature is only optional. Maybe you made different key or premium key. Or maybe google has some suspicions to you. Don't know.
                        Anyway, just follow the steps on google site, add your signature in settings.txt URL and it should work.

                        Google assumes that this feature is used by experienced software developers, so it is not as easy as using google services for ordinary users.

                        Comment

                        • cnwfan
                          1000 Post Veteran

                          • Oct 2005
                          • 1250

                          #57
                          You know-Too much work trying to get this to work, I’m ready to throw in the towel despite some help. Five weeks of trying to make this api key work gets old, when I could be laying track and roads! Thank you to all who helped, consider case closed.
                          Todd
                          Iowa Chicago and Eastern Mason City Sub

                          Comment

                          • MSTS lifer
                            Senior Member

                            • Dec 2012
                            • 523

                            #58
                            Originally posted by GokuMK
                            Just paste the link into google and you will find this:https://developers.google.com/maps/d...error-messagesAnd then this:https://developers.google.com/maps/d...ital-signatureIt says that you need to have not only API key but also signature. Don't know why. It says that for standard key signature is only optional. Maybe you made different key or premium key. Or maybe google has some suspicions to you. Don't know. Anyway, just follow the steps on google site, add your signature in settings.txt URL and it should work.Google assumes that this feature is used by experienced software developers, so it is not as easy as using google services for ordinary users.
                            After posting about the 404 error yesterday, I did go and tend to all that Goku. In my case a correct API with a signature won't work because Google Cloud Platform does not accept pre paid cards. And even with a valid method of payment, it looks like the API won't be enabled until one gives Google that $200 weather you go over the limit or not. This goes for anyone using a API for other projects as well as Train simulator platforms. There are many reports saying "NO PAY NO PLAY".Me, I could care less at the moment. As I said, I'm using a different sim with a built in API by DTG. It works. At some point it maybe subject that changes. I tried to help my friend. Only way to do that was to learn a little about you editor on the fly. But the API issue is not you fault as I see it. It's how Google now dictates use of the API keys. From what I read last night, Googles policy is such now that you just can't get a free API of any kind. Google seems to think users are going to over the limit so often they feel they need that $200 up front. A deposit if you will. Only thing I'll add Goku is if this is as easy as you suggest, please explain in a lot more detail.

                            Comment

                            • MSTS lifer
                              Senior Member

                              • Dec 2012
                              • 523

                              #59
                              Originally posted by cnwfan
                              You know-Too much work trying to get this to work, I’m ready to throw in the towel despite some help. Five weeks of trying to make this api key work gets old, when I could be laying track and roads! Thank you to all who helped, consider case closed.
                              I don't see that this is all on Goku. It's been hashed out about the extra space that's not needed. I think everyone now understands that. It's not that TSRE has a bug, or no longer works, or that Goku does not want to help. I think it comes down to Google and their current policies for all their API keys. One could do all the stuff correctly that Goku has said to do and it won't matter. That API won't kick in until Google gets their money. So if what I'm saying regarding Google and the policy and my interpretation of it is way off base, by all means kindly point that out and offer up what is being done wrong or any other alternatives to get the Google API without Google putting the arm on you for $$$$$. If ANYONE has recently got a API from Google WITHOUT having to either outright pay, or make some sort of other financial arrangements for payments (Got it for free like it used to be) please explain how you did that.

                              Comment

                              • GokuMK
                                Senior Member

                                • Oct 2015
                                • 729
                                • Poland

                                #60
                                Originally posted by MSTS lifer
                                It's how Google now dictates use of the API keys. From what I read last night, Googles policy is such now that you just can't get a free API of any kind.
                                Yes. Google saw that more and more app developers were requesting users to make their own free keys instead of buying commercial key for their app. So, they were earning no money on this business. That's why they made it so difficult to obtain ... to force the app developers to buy the keys for their projects. But at the same time the prices went so high that many devs are running away from google to OSM. But for satellite imagery there is almost no alternative.

                                Comment

                                Working...