Elvas Tower: Making an API work for Google Maps - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Making an API work for Google Maps Rate Topic: -----

#1 User is offline   ATSF3751 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,102
  • Joined: 15-July 08
  • Gender:Male
  • Location:Wayzata, MN
  • Simulator:Open Rails
  • Country:

Posted 19 June 2024 - 11:31 AM

hey everyone,

So I have had a delema ever since I downloaded and installed Erics updated Route Editor. I used to be able to get the google earth maps no problem and now I can't seem to get them to work for the life of me. Can anyone tell me what I am doing wrong here? I already have an API for google earth maps and have it in the settings but it still will not pull up for me as you can see in the screen shots. Any help would be appreciated.

Thanks,

Brandon


Attached File  Screenshot 2024-06-19 142515.jpg (322.04K)
Number of downloads: 20

#2 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,666
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 19 June 2024 - 12:29 PM

You've duplicated the key.

Delete the key after the "key=" in the ImageMapURL field.

#3 User is offline   ATSF3751 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,102
  • Joined: 15-July 08
  • Gender:Male
  • Location:Wayzata, MN
  • Simulator:Open Rails
  • Country:

Posted 19 June 2024 - 12:59 PM

View Posteric from trainsim, on 19 June 2024 - 12:29 PM, said:

You've duplicated the key.

Delete the key after the "key=" in the ImageMapURL field.


Thanks Eric. Still did not work for some reason and giving me the same results as before saying Missing URL in Settings Txt.

#4 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,666
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 19 June 2024 - 01:15 PM

Can't tell now that you removed the image with your settings file, but make sure the // is removed at the beginning of the line if it's still there. Otherwise, it's commented out.

#5 User is offline   ATSF3751 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,102
  • Joined: 15-July 08
  • Gender:Male
  • Location:Wayzata, MN
  • Simulator:Open Rails
  • Country:

Posted 19 June 2024 - 02:00 PM

Hey Eric,

So this is how I currently have it set up and for some reason it still is not working. Not quite sure what I am doing wrong here as it always just worked when I put in the API code.

Brandon

Attached File  Screenshot 2024-06-19 165512.jpg (504.87K)
Number of downloads: 17

#6 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,666
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 19 June 2024 - 02:37 PM

Yeah, you've got it wrong.

////  Image Maps require a valid API key from either Google or MapBox
//
////  Google           

imageMapsUrl = http://maps.googleapis.com/maps/api/staticmap?center={lat},{lon}&zoom={zoom}&size={res}x{res}&maptype=satellite&key=
MapAPIKey = [my api key for Google]

//// MapBox
//// See https://docs.mapbox.com/api/maps/static-images/ for parameter options
//
// imageMapsUrl = https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{lon},{lat},{zoom}/{res}x{res}?access_token=
// MapAPIKey = [my api key for mapbox]
//// MapBox needs this offset setting to be -1:
// imageMapsZoomOffset = -1




#7 User is offline   ATSF3751 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,102
  • Joined: 15-July 08
  • Gender:Male
  • Location:Wayzata, MN
  • Simulator:Open Rails
  • Country:

Posted 19 June 2024 - 02:46 PM

Thank you Eric. I finally got it to work!

#8 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,666
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 20 June 2024 - 06:19 AM

Glad it worked.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users