Author Topic: Altitude from Google Earth API  (Read 14207 times)

0 Members and 1 Guest are viewing this topic.

FELIX

  • Bull Frog
  • Posts: 241
Altitude from Google Earth API
« on: September 08, 2014, 11:21:24 PM »
It is possible to get altitude Google Earth API?
OK.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Altitude from Google Earth API
« Reply #1 on: September 09, 2014, 01:45:04 AM »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Altitude from Google Earth API
« Reply #2 on: September 09, 2014, 04:45:06 AM »
http://www.theswamp.org/index.php?topic=33065.msg385105#msg385105
Code: [Select]
(defun vk_GetGEarthElevation (lat lon)
  (atof
    (last
      (assoc "elevation"
     (last
       (assoc "result"
      (last
(assoc "ElevationResponse"
       (vk_ReadXML
(strcat "http://maps.googleapis.com/maps/api/elevation/xml?locations="
(rtos lat 2 16)
","
(rtos lon 2 16)
)
       )
)
      )
       )
     )
      )
    )
  )
)
;;;(vk_GetGEarthElevation 50.747778 25.324444)

FELIX

  • Bull Frog
  • Posts: 241
Re: Altitude from Google Earth API
« Reply #3 on: September 09, 2014, 04:39:48 PM »
Very good, perfect, VovKa.

OK.
OK.

BlackBox

  • King Gator
  • Posts: 3770
Re: Altitude from Google Earth API
« Reply #4 on: September 09, 2014, 05:52:48 PM »
Interested to see how this might be used with VERTCON. :angel:

Cheers
"How we think determines what we do, and what we do determines what we get."

danallen

  • Guest
Re: Altitude from Google Earth API
« Reply #5 on: September 09, 2014, 06:00:02 PM »
wow! what is the smallest resolution in feet or meters that can be obtained from database?

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Altitude from Google Earth API
« Reply #6 on: September 10, 2014, 03:55:10 PM »
wow! what is the smallest resolution in feet or meters that can be obtained from database?
as far as i know +/- 30м

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Altitude from Google Earth API
« Reply #7 on: September 10, 2014, 07:08:37 PM »
Holy crap. I've been playing with google earth to autocad integration, but I had no idea you could access the api via the internet. That's awesome! Thank you, Vovka.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Altitude from Google Earth API
« Reply #8 on: September 11, 2014, 08:43:54 PM »
Holy crap. I've been playing with google earth to autocad integration, but I had no idea you could access the api via the internet. That's awesome! Thank you, Vovka.

http://www.theswamp.org/index.php?topic=45197.msg503894#msg503894

From August 2013...

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Altitude from Google Earth API
« Reply #9 on: September 11, 2014, 08:58:58 PM »
Google API in Action

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Altitude from Google Earth API
« Reply #10 on: September 12, 2014, 05:35:41 AM »
what coordinate system do you guys use in surveying and land development?
i could adapt my program for online maps so one can use it in the US

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Altitude from Google Earth API
« Reply #11 on: September 12, 2014, 12:35:35 PM »
what coordinate system do you guys use in surveying and land development?
i could adapt my program for online maps so one can use it in the US
I primarily use NAD83 Florida State Planes, North Zone, US Foot (FL83-NF). I notice the returned data is UTF-8. What decides this?
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Altitude from Google Earth API
« Reply #12 on: September 12, 2014, 01:24:37 PM »
I primarily use NAD83 Florida State Planes, North Zone, US Foot (FL83-NF).
thank you. i'll have to work on this one
I notice the returned data is UTF-8. What decides this?
google does

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Altitude from Google Earth API
« Reply #13 on: September 24, 2014, 09:28:42 AM »
I primarily use NAD83 Florida State Planes, North Zone, US Foot (FL83-NF).
Alan, i couldn't find any drawing in FL83-NF to test
can you please check http://www.theswamp.org/index.php?topic=47908.0 ?

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Altitude from Google Earth API
« Reply #14 on: September 24, 2014, 10:13:14 PM »
I primarily use NAD83 Florida State Planes, North Zone, US Foot (FL83-NF).
Alan, i couldn't find any drawing in FL83-NF to test
can you please check http://www.theswamp.org/index.php?topic=47908.0 ?
No dice. It put me in the middle of the ocean. What are you using to set the coordinate base? I've been playing with the ade_* functions, but I know they are only available with some of the vertical autodesk products.
I played around with the google api and was able to get it to download and load an image, but I'm not 100% on the scaling. What are you using for a scaling factor to bring in the image at the correct size? I suppose I should probably be asking these in the other thread.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox