i2 Google map error

Discussion and support for i2 Standard and i2 Pro applications

Re: i2 Google map error

Postby adrian on Thu Dec 22, 2016 9:06 am

Are you able to send through some data for me to test here?

Also can you go to View>Messages to bring up the messages window and try retrieving the map again. Can you then copy the messages window and send them to me as well.
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: i2 Google map error

Postby ihr on Tue Jan 17, 2017 8:42 am

Hello,

I've been testing i2c v1.1.2.0669-x64 trying to properly setup the Google Account. That information changed from version 542 to version 669. The new version is worst than the new one so I finally opted to roll back to version 542

The point is that I successfully opened a google account with access to the MAP API, I was able to set the key and the secret and all the required information. but unfortunately, I could not check for high resolution images because Google did not want to open an account to an user that will consume just 1000 downloads a year.

At this point I would like to propose some options.

1) use alternative server (not google)
2) setup a server at MOTEC to download images for all users transparently to us. If you setup a cache on the images the number of images should not be that large...
3) roll back to previous mode. In version 542 there is a radio button that says "Update map when needed (Automatically retrieved)" that is no longer available in version 669 and is the source of the pains.

BTW, what exactly is "Business Client ID" in version 542?

Thanks in advance
Ignacio
ihr
 
Posts: 2
Joined: Mon Jan 16, 2017 5:32 am

Re: i2 Google map error

Postby adrian on Tue Jan 17, 2017 10:21 am

At the moment you don't actually need a Google account to get the maps working. According to information from Google this option was being shutdown and the use of an API key was required for all API calls. This hasn't happened yet but we had to make the changes to i2 for when it does.

We looked into getting our own Premium Account and provide access to high resolution maps for users but it is extremely cost prohibitive. We would probably have to charge users for access to cover our costs and we expected very few people would take up this offer so it makes no business sense to provide this service.

We have instead provided a way for customers who wish to pay for a premium account to use their own account details to load high resolution maps.

1) use alternative server (not google)

We looked at other options, nothing really stood out enough to warrant the required code changes at this time.

2) setup a server at MOTEC to download images for all users transparently to us. If you setup a cache on the images the number of images should not be that large...

This is against the terms and conditions of using the Google API, we are not legally allowed to do this.

3) roll back to previous mode. In version 542 there is a radio button that says "Update map when needed (Automatically retrieved)" that is no longer available in version 669 and is the source of the pains.

We removed this because of the way the API's work. If this is enabled you can quite easily use up your daily quota in an hour and then be unable to load a map again for the rest of the day.

BTW, what exactly is "Business Client ID" in version 542?

This is the old way of accessing the high res maps, it no longer does anything. All Google Business account holders had to change over to Client ID and Signing Secret.
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: i2 Google map error

Postby ihr on Mon Feb 06, 2017 1:44 pm

Thanks for the information.

FYI, here is something I saw today:

https://msdn.microsoft.com/es-es/library/ff701724.aspx

It is a REST API to get imaginary data and I believe it is at no cost for anyone of us :ugeek:
ihr
 
Posts: 2
Joined: Mon Jan 16, 2017 5:32 am

Re: i2 Google map error

Postby RacerXph on Thu Feb 01, 2018 2:10 am

I've tried to add a GPS track following the conversation in the thread.
When I tried to retrieve the circuit's map using Google's map retrieve function in MoTec,
a hyperlink with the message "Sorry, we have no imagery here." came out.
Upon checking the longitude and latitude values of the static map, it looked like MoTec is using the wrong values.
I manually corrected it and I was able to obtain retrieve the correct image.

Please see attached files for reference.

However, I can't load it as a background in the GPS track.

My question is how can I set (or override) MoTec to retrieve the correct map using the correct longitude and latitude values?

Please help me.
Attachments
Correct_LatLong.PNG
Correct longitude and latitude values
Correct_LatLong.PNG (1.49 MiB) Viewed 20400 times
No_Imagery.PNG
MoTec default(?) longitude and latitude values
No_Imagery.PNG (41.94 KiB) Viewed 20400 times
RacerXph
 
Posts: 2
Joined: Sat Jan 27, 2018 12:04 am

Re: i2 Google map error

Postby adrian on Thu Feb 01, 2018 10:00 am

Can you please do a test for me.

In i2 go to View>Messages. Now go to the GPS Track properties and reload the image.
Now click on a time/distance graph and press F2. Go back to the properties of the GPS Track Map and reload the image again.

Right click on the messages window and copy to clip board. Then paste the messages here.

Can you also please let me know what version of i2 you are using.
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: i2 Google map error

Postby RacerXph on Fri Feb 02, 2018 1:37 am

Below is the message that came out.

01/02/2018 10:29:40 PM: C:\Program Files\MoTeC\i2\1.1\i2.exe MoTeC Pty Ltd i2 (i2 (x64) v1.1.2.808)
01/02/2018 10:29:40 PM: Data Cache Folder is 'C:\Users\Nandy\AppData\Local\MoTeC\i2\Data Cache'
01/02/2018 10:29:40 PM: Video Database Folder is 'C:\ProgramData\MoTeC\i2\1.1'
01/02/2018 10:29:40 PM: Channel Indexing Database Folder is 'C:\Users\Nandy\AppData\Local\MoTeC\i2\LDB Cache'
01/02/2018 10:29:50 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-16-47 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:29:50 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-16-58 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:29:50 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-17-33 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:29:50 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-18-09 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:30:40 PM: Retrieve Google Map: http://maps.googleapis.com/maps/api/sta ... N3Ik2_Y%20
01/02/2018 10:31:52 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-18-09 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:31:52 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-17-33 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:31:52 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-16-58 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:31:52 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-16-47 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:33:32 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-16-58 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:33:32 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-17-33 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:33:32 PM: C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\LOG\2018-02-01 - 22-18-09 - Sentul International Circuit - P1.ld: Unknown unit '' for 'Beacon' channel. Assuming unitless.
01/02/2018 10:34:07 PM: Retrieve Google Map: http://maps.googleapis.com/maps/api/sta ... N3Ik2_Y%20

Attached also is the image of the MoTec version I'm using.

Hoping to hear from you soon.
Attachments
Capture.PNG
Capture.PNG (115.92 KiB) Viewed 20377 times
RacerXph
 
Posts: 2
Joined: Sat Jan 27, 2018 12:04 am

Re: i2 Google map error

Postby adrian on Fri Feb 02, 2018 9:05 am

Ok, that is interesting. Can you please send me the logging that is giving you this issue. If the file is larger than 5MB you will need to use dropbox/wetransfer or similar. Please send it to support@motec.com.au
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

Re: i2 Google map error

Postby john_r on Thu Jul 05, 2018 1:09 am

I have the same problem with maps.
Version I2Pro 1.1.4.0322 Beta (I also tried to use the latest stable version).

I made the settings in the google account, got the API key, set it in the Option->Analysis->Api Key/Client ID.

If I press the "Retrieve now" button, I get a message "Unable to get image from Google Please check your internet connection".

In the message window:
Code: Select all
04.07.2018 16:59:49:    Retrieve Google Map: http://maps.googleapis.com/maps/api/staticmap?center=50.356174%2C30.270151&zoom=15&scale=2&size=640x640&maptype=satellite&sensor=false&key=<my key here>


If i click this link in Chrome, the picture opens with the map.
I tried to open the link with the help of the curl:
Code: Select all
curl -o map.png "http://maps.googleapis.com/maps/api/staticmap?center=50.356174%2C30.270151&zoom=15&scale=2&size=640x640&maptype=satellite&sensor=false&key=<my key here>"


Everything works, the picture is saved in map.png and displayed correctly.

Why I can't see the map in I2?

PS: every 5 seconds a message appears in the message window
Code: Select all
04.07.2018 17:03:14:    c:\src-i2.release-1.1.4-git\src\i2p.x64\common\ld\src\ld_db.cpp(336): Trying to reset lost directory handle
john_r
 
Posts: 9
Joined: Tue Jul 03, 2018 9:26 pm

Re: i2 Google map error

Postby adrian on Thu Jul 05, 2018 10:46 am

If you remove the key and signing secret completely does it load the map?

The "Trying to reset lost directory handle" issue is most likely unrelated. If you go to Tools|Options|Database do you have any search folders that are no longer accessible? Such as a network drive or external hard drive
adrian
MoTeC
 
Posts: 719
Joined: Mon Apr 13, 2015 5:16 pm

PreviousNext

Return to i2 Data Analysis Software

Who is online

Users browsing this forum: No registered users and 13 guests